.at-content-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--at-spacing-2xl);
}

@media (min-width: 1024px) {
    .at-content-wrapper {
        grid-template-columns: 1fr 300px;
    }
}

.at-content-main {
    min-width: 0;
}

.at-content-sidebar {
    display: none;
}

@media (min-width: 1024px) {
    .at-content-sidebar {
        display: block;
    }
}

.at-page-header {
    margin-bottom: var(--at-spacing-2xl);
}

.at-page-title {
    font-size: var(--at-text-3xl);
    margin-bottom: var(--at-spacing-md);
}

.at-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--at-spacing-xl);
}

@media (min-width: 640px) {
    .at-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.at-post-card {
    background: var(--at-white);
    border-radius: var(--at-radius-lg);
    overflow: hidden;
    box-shadow: var(--at-shadow-sm);
    transition: all var(--at-transition-base);
}

.at-post-card:hover {
    box-shadow: var(--at-shadow-lg);
    transform: translateY(-4px);
}

.at-post-card-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.at-post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--at-transition-slow);
}

.at-post-card:hover .at-post-card-image img {
    transform: scale(1.05);
}

.at-post-card-content {
    padding: var(--at-spacing-lg);
}

.at-post-card-meta {
    display: flex;
    align-items: center;
    gap: var(--at-spacing-md);
    font-size: var(--at-text-xs);
    color: var(--at-gray-500);
    margin-bottom: var(--at-spacing-sm);
}

.at-post-card-title {
    font-size: var(--at-text-xl);
    margin-bottom: var(--at-spacing-sm);
    line-height: var(--at-leading-snug);
}

.at-post-card-title a:hover {
    color: var(--at-primary);
}

.at-post-card-excerpt {
    color: var(--at-gray-600);
    font-size: var(--at-text-sm);
    margin-bottom: var(--at-spacing-md);
    line-height: var(--at-leading-relaxed);
}

.at-single-post {
    background: var(--at-white);
    border-radius: var(--at-radius-lg);
    overflow: hidden;
    box-shadow: var(--at-shadow-sm);
}

.at-post-header {
    padding: var(--at-spacing-2xl);
    text-align: center;
    border-bottom: 1px solid var(--at-gray-200);
}

.at-post-categories {
    margin-bottom: var(--at-spacing-md);
}

.at-post-categories a {
    display: inline-block;
    padding: var(--at-spacing-xs) var(--at-spacing-md);
    background: var(--at-primary);
    color: var(--at-white);
    font-size: var(--at-text-xs);
    font-weight: var(--at-font-semibold);
    text-transform: uppercase;
    border-radius: var(--at-radius-full);
    margin: 0 var(--at-spacing-xs);
}

.at-post-title {
    font-size: var(--at-text-3xl);
    margin-bottom: var(--at-spacing-lg);
}

.at-post-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--at-spacing-lg);
    flex-wrap: wrap;
    font-size: var(--at-text-sm);
    color: var(--at-gray-500);
}

.at-post-meta svg {
    vertical-align: middle;
    margin-right: 4px;
}

.at-post-author {
    display: flex;
    align-items: center;
    gap: var(--at-spacing-sm);
}

.at-post-author img {
    border-radius: var(--at-radius-full);
}

.at-post-featured-image {
    width: 100%;
}

.at-post-featured-image img {
    width: 100%;
    height: auto;
}

.at-post-content {
    padding: var(--at-spacing-2xl);
    font-size: var(--at-text-lg);
    line-height: var(--at-leading-relaxed);
}

.at-post-content p {
    margin-bottom: var(--at-spacing-lg);
}

.at-post-content h2,
.at-post-content h3,
.at-post-content h4 {
    margin-top: var(--at-spacing-2xl);
    margin-bottom: var(--at-spacing-md);
}

.at-post-content img {
    border-radius: var(--at-radius-lg);
    margin: var(--at-spacing-lg) 0;
}

.at-post-content a {
    color: var(--at-primary);
    text-decoration: underline;
}

.at-post-content ul,
.at-post-content ol {
    margin: var(--at-spacing-lg) 0;
    padding-left: var(--at-spacing-xl);
}

.at-post-content li {
    margin-bottom: var(--at-spacing-sm);
}

.at-post-content blockquote {
    margin: var(--at-spacing-xl) 0;
    padding: var(--at-spacing-lg) var(--at-spacing-xl);
    background: var(--at-gray-50);
    border-left: 4px solid var(--at-primary);
    font-style: italic;
}

.at-post-footer {
    padding: var(--at-spacing-xl) var(--at-spacing-2xl);
    border-top: 1px solid var(--at-gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--at-spacing-md);
}

.at-post-tags,
.at-post-share {
    display: flex;
    align-items: center;
    gap: var(--at-spacing-sm);
    font-size: var(--at-text-sm);
}

.at-post-tags a,
.at-post-share a {
    color: var(--at-gray-600);
    transition: color var(--at-transition-fast);
}

.at-post-tags a:hover,
.at-post-share a:hover {
    color: var(--at-primary);
}

.at-author-bio {
    display: flex;
    gap: var(--at-spacing-lg);
    padding: var(--at-spacing-xl) var(--at-spacing-2xl);
    background: var(--at-gray-50);
    border-top: 1px solid var(--at-gray-200);
}

.at-author-avatar img {
    border-radius: var(--at-radius-full);
}

.at-author-name {
    font-size: var(--at-text-lg);
    margin-bottom: var(--at-spacing-sm);
}

.at-author-description {
    color: var(--at-gray-600);
    font-size: var(--at-text-sm);
    margin-bottom: var(--at-spacing-md);
}

.at-post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--at-spacing-md);
    padding: var(--at-spacing-xl) var(--at-spacing-2xl);
    border-top: 1px solid var(--at-gray-200);
}

.at-post-nav-prev,
.at-post-nav-next {
    display: flex;
    flex-direction: column;
    padding: var(--at-spacing-md);
    background: var(--at-gray-50);
    border-radius: var(--at-radius-md);
    transition: all var(--at-transition-fast);
}

.at-post-nav-prev:hover,
.at-post-nav-next:hover {
    background: var(--at-primary);
    color: var(--at-white);
}

.at-post-nav-next {
    text-align: right;
}

.at-post-nav-label {
    display: flex;
    align-items: center;
    gap: var(--at-spacing-xs);
    font-size: var(--at-text-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--at-spacing-xs);
}

.at-post-nav-next .at-post-nav-label {
    justify-content: flex-end;
}

.at-post-nav-title {
    font-weight: var(--at-font-semibold);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.at-widget {
    background: var(--at-white);
    border-radius: var(--at-radius-lg);
    padding: var(--at-spacing-lg);
    margin-bottom: var(--at-spacing-lg);
    box-shadow: var(--at-shadow-sm);
}

.at-widget-title {
    font-size: var(--at-text-lg);
    margin-bottom: var(--at-spacing-md);
    padding-bottom: var(--at-spacing-sm);
    border-bottom: 2px solid var(--at-primary);
}

.at-category-list li {
    padding: var(--at-spacing-sm) 0;
    border-bottom: 1px solid var(--at-gray-100);
}

.at-category-list li:last-child {
    border-bottom: none;
}

.at-category-list a {
    display: flex;
    justify-content: space-between;
    color: var(--at-gray-700);
    transition: color var(--at-transition-fast);
}

.at-category-list a:hover {
    color: var(--at-primary);
}

.at-category-list .count {
    color: var(--at-gray-400);
    font-size: var(--at-text-sm);
}

.at-sidebar-product {
    display: flex;
    gap: var(--at-spacing-md);
    padding: var(--at-spacing-sm) 0;
    border-bottom: 1px solid var(--at-gray-100);
}

.at-sidebar-product:last-child {
    border-bottom: none;
}

.at-sidebar-product-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: var(--at-radius-md);
    overflow: hidden;
}

.at-sidebar-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.at-sidebar-product-title {
    font-size: var(--at-text-sm);
    font-weight: var(--at-font-medium);
    margin-bottom: var(--at-spacing-xs);
    line-height: var(--at-leading-snug);
}

.at-sidebar-product-title a:hover {
    color: var(--at-primary);
}

.at-sidebar-product-price {
    font-size: var(--at-text-sm);
    color: var(--at-primary);
    font-weight: var(--at-font-semibold);
}

.at-recent-posts-list li {
    padding: var(--at-spacing-sm) 0;
    border-bottom: 1px solid var(--at-gray-100);
}

.at-recent-posts-list li:last-child {
    border-bottom: none;
}

.at-recent-posts-list a {
    display: block;
    font-size: var(--at-text-sm);
    font-weight: var(--at-font-medium);
    color: var(--at-gray-700);
    margin-bottom: var(--at-spacing-xs);
    transition: color var(--at-transition-fast);
}

.at-recent-posts-list a:hover {
    color: var(--at-primary);
}

.at-recent-posts-list .at-post-date {
    font-size: var(--at-text-xs);
    color: var(--at-gray-500);
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--at-spacing-sm);
    margin-top: var(--at-spacing-2xl);
}

.nav-links .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 var(--at-spacing-sm);
    background: var(--at-white);
    border: 1px solid var(--at-gray-200);
    border-radius: var(--at-radius-md);
    font-weight: var(--at-font-medium);
    color: var(--at-gray-700);
    transition: all var(--at-transition-fast);
}

.nav-links .page-numbers:hover,
.nav-links .page-numbers.current {
    background: var(--at-primary);
    border-color: var(--at-primary);
    color: var(--at-white);
}

.nav-links .page-numbers svg {
    width: 20px;
    height: 20px;
}

.at-no-results {
    text-align: center;
    padding: var(--at-spacing-4xl) var(--at-spacing-lg);
}

.at-no-results h2 {
    margin-bottom: var(--at-spacing-md);
}

.at-no-results p {
    color: var(--at-gray-500);
    margin-bottom: var(--at-spacing-xl);
}

.at-loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.at-loading-spinner .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--at-gray-200);
    border-top-color: var(--at-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.at-quick-view-categories {
    margin-bottom: var(--at-spacing-sm);
}

.at-quick-view-categories a {
    font-size: var(--at-text-xs);
    color: var(--at-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.at-quick-view-categories a:hover {
    color: var(--at-primary);
}

.at-quick-view-actions {
    display: flex;
    gap: var(--at-spacing-md);
    align-items: center;
    margin-bottom: var(--at-spacing-lg);
}

.at-quick-view-meta {
    font-size: var(--at-text-sm);
    color: var(--at-gray-600);
    margin-bottom: var(--at-spacing-md);
}

.at-quick-view-link {
    display: inline-flex;
    align-items: center;
    gap: var(--at-spacing-sm);
    color: var(--at-primary);
    font-weight: var(--at-font-semibold);
    transition: gap var(--at-transition-fast);
}

.at-quick-view-link:hover {
    gap: var(--at-spacing-md);
}

.at-out-of-stock {
    color: var(--at-error);
    font-weight: var(--at-font-semibold);
    padding: var(--at-spacing-md);
    background: rgba(239, 68, 68, 0.1);
    border-radius: var(--at-radius-md);
}

.at-empty-cart {
    text-align: center;
    padding: var(--at-spacing-4xl) var(--at-spacing-lg);
}

.at-empty-cart-icon {
    color: var(--at-gray-300);
    margin-bottom: var(--at-spacing-lg);
}

.at-empty-cart h2 {
    margin-bottom: var(--at-spacing-md);
}

.at-empty-cart p {
    color: var(--at-gray-500);
    margin-bottom: var(--at-spacing-xl);
}

.at-mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: calc(var(--at-z-modal) - 1);
    opacity: 0;
    visibility: hidden;
    transition: all var(--at-transition-base);
}

body.mobile-nav-open .at-mobile-nav-backdrop {
    opacity: 1;
    visibility: visible;
}

body.mobile-nav-open {
    overflow: hidden;
}

.woocommerce-page .at-main-content {
    padding-top: var(--at-spacing-2xl);
    padding-bottom: var(--at-spacing-2xl);
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .woocommerce-page .at-main-content {
        max-width: 100%;
        overflow-x: hidden;
    }
}

.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--at-spacing-md);
    margin: 0;
}

@media (min-width: 640px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--at-spacing-lg);
    }
}

.woocommerce ul.products li.product {
    margin: 0;
    padding: 0;
    width: 100%;
    float: none;
}

.woocommerce ul.products li.product .at-product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.woocommerce ul.products li.product .at-product-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.woocommerce ul.products li.product .at-product-card-footer {
    margin-top: auto;
}

.at-post-comments {
    padding: var(--at-spacing-2xl);
    border-top: 1px solid var(--at-gray-200);
}

.comments-title {
    font-size: var(--at-text-xl);
    margin-bottom: var(--at-spacing-xl);
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment {
    padding: var(--at-spacing-lg) 0;
    border-bottom: 1px solid var(--at-gray-100);
}

.comment-body {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: var(--at-spacing-md);
}

.comment-author img {
    border-radius: var(--at-radius-full);
}

.comment-meta {
    margin-bottom: var(--at-spacing-sm);
}

.comment-author .fn {
    font-weight: var(--at-font-semibold);
}

.comment-metadata {
    font-size: var(--at-text-xs);
    color: var(--at-gray-500);
}

.comment-content {
    grid-column: 2;
}

.comment-content p {
    margin-bottom: var(--at-spacing-sm);
}

.reply {
    grid-column: 2;
}

.reply a {
    font-size: var(--at-text-sm);
    color: var(--at-primary);
}

.comment-respond {
    margin-top: var(--at-spacing-xl);
}

.comment-reply-title {
    font-size: var(--at-text-xl);
    margin-bottom: var(--at-spacing-lg);
}

.comment-form label {
    display: block;
    font-weight: var(--at-font-medium);
    margin-bottom: var(--at-spacing-xs);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: var(--at-spacing-sm) var(--at-spacing-md);
    border: 1px solid var(--at-gray-300);
    border-radius: var(--at-radius-md);
    margin-bottom: var(--at-spacing-md);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--at-primary);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.form-submit input[type="submit"] {
    background: var(--at-primary);
    color: var(--at-white);
    border: none;
    padding: var(--at-spacing-sm) var(--at-spacing-xl);
    border-radius: var(--at-radius-md);
    font-weight: var(--at-font-semibold);
    cursor: pointer;
    transition: background var(--at-transition-fast);
}

.form-submit input[type="submit"]:hover {
    background: var(--at-primary-dark);
}