/* Product Archive Styles - RTL */
.product-archive-main {
    padding: 120px 0 80px;
    background: #f9f9f9;
    color: #000;
}

.archive-header-bg {
    text-align: center;
    padding: 100px 0 50px;
    color: #fff;
    position: relative;
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 300px;
    width: 100%;
    margin-bottom: 0;
}

.archive-header-bg .page-title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 400;
    color: #fff;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

/*.archive-header-bg .page-title::after {*/
/*    content: '';*/
/*    display: block;*/
/*    width: 60px;*/
/*    height: 3px;*/
/*    background: var(--primary-gold);*/
/*    margin: 10px auto 0;*/
/*}*/

.gmc-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    /* Transparent card - content centered/aligned with grid */
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 61.82%;
    aspect-ratio: 275 / 170;
    border-radius: 6px;
}

.product-img {
    position: absolute;
    top: 0;
    right: 0;
    /* RTL Fix */
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-info {
    padding: 15px 0 0 0;
    /* Space between image and text */
    text-align: right;
    /* RTL Fix */
    /* Left align text */
}

.product-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.2;
}

.product-title a {
    color: #000;
    text-decoration: none;
}

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

.product-desc {
    font-size: 15px;
    color: #808080;
    margin-bottom: 16px;
    line-height: 1.4;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-cat-brand-thumb {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 10;
    pointer-events: none;
}

.product-cat-brand-thumb img {
    width: 100px;
    height: 24px;
    object-fit: contain;
    object-position: left bottom;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 60px;
    text-align: center;
}

.nav-links {
    display: inline-flex;
    gap: 10px;
}

.nav-links a {
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #000;
    font-weight: 600;
    transition: all 0.3s;
    background: #fff;
    text-decoration: none;
}

.nav-links a.page-numbers, .nav-links span.page-numbers {
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-direction: row-reverse;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #313131;
    font-weight: 400;
    transition: all 0.3s;
    background: #fff;
    text-decoration: none;
    gap: 5px;
}

.nav-arrow{
    transform: rotate(180deg);
}

.mobile-bottom-bar {
    display: none;
}

.nav-links span.current,
.nav-links a:hover {
    background: var(--primary-gold);
    color: #fff;
    border-color: var(--primary-gold);
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .gmc-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .gmc-product-grid {
        grid-template-columns: 1fr;
    }

    .product-archive-main {
        padding: 80px 0 60px;
    }

    .archive-header-bg .page-title {
        font-size: 32px;
    }
}

/* Layout Grid (Sidebar + Content) */
.product-archive-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* Sidebar Styles */
.sidebar-widget {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.widget-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.clear-all {
    font-size: 16px;
    font-weight: 500;
    color: #808080;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: color 0.3s;
}

.widget-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.filter-list li {
    margin-bottom: 12px;
}

.filter-list label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #808080;
    cursor: pointer;
    line-height: 1.4;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}

.filter-list label:hover {
    color: var(--primary-gold);
}

.filter-list input[type="checkbox"]:checked {
    background-color: var(--primary-gold);
    border-color: var(--primary-gold);
}

.filter-list input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.filter-list input[type="checkbox"]:checked::after {
    content: '\f00c';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 11px;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.color-filter-list {
    display: flex;
    gap: 10px;
}

.color-swatch {
    display: block;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid #ddd;
}

/* Toolbar */
.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 20px;
}

.toolbar-right {
    display: flex !important;
    align-items: center !important;
    gap: 20px;
    height: 100%;
}

.active-filters .category-title {
    font-family: var(--font-heading);
    font-size: 32px;
    margin-bottom: 5px;
}

.sort-dropdown {
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
}

.woocommerce-ordering {
    margin: 0 !important;
    display: inline-block;
    vertical-align: middle;
}

.woocommerce-ordering select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 0 15px 0 40px;
    height: 40px;
    line-height: 38px;
    font-size: 14px;
    font-weight: 500;
    color: #000;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23C38F26' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 15px center;
    transition: all 0.2s ease;
    min-width: 160px;
    margin: 0 !important;
    vertical-align: middle;
}
.mobile-item-count {
    display: none;
}
.item-count {
    color: #999;
    font-size: 14px;
    white-space: nowrap;
    font-family: 'Montserrat', sans-serif;
    margin: 0 !important;
    padding: 0;
    line-height: normal;
    display: block;
}
.active-filters {
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}
.filter-tags {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
    max-width: 100%;
    padding-bottom: 5px;
    margin-bottom: 30px;
}

.filter-tag {
    background: #fff;
    border: 1px solid #ddd;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-tag i {
    font-size: 11px;
    color: #000;
}

/* Mobile Responsive Updates */
@media (max-width: 992px) {
    .product-archive-container {
        grid-template-columns: 1fr;
    }

    /* Initial Mobile Sidebar Hiding */
    .product-sidebar {
        display: none;
        /* In real implementation, show via toggle button */
    }
}

@media (max-width: 768px) {
    .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

.product-sidebar {
    box-shadow: 2px 2px 22px 0px #0000000F;
    padding: 20px;
    border-radius: 8px;
    height: fit-content;
}

body.single-product .site-header {
    position: relative !important;
    background: #fff !important;
    padding: 15px 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}

body.single-product .main-navigation a, body.single-product .header-actions i, body.single-product .search-submit i, body.single-product .menu-toggle, body.single-product .mobile-search-icon {
    color: #333 !important;
}

body.single-product .header-search .search-field:focus {
    border-color: #ddd !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

body.single-product .header-search .search-field {
    border: 1px solid #eee !important;
    background: #fff !important;
    color: #333 !important;
    border-radius: 4px;
    padding: 10px 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.3s;
}
.single-product-page-wrapper {
    padding: 20px 0 80px;
    background: #fff;
    color: #212121;
}
.product-detail-layout {
    display: grid;
    grid-template-columns: 55% 40%;
    gap: 5%;
    align-items: start;
    margin-bottom: 80px;
}
.product-gallery-column {
    width: 100%;
}
.gallery-wrapper {
    position: relative;
    width: 100%;
}
.gallery-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}
.gallery-item-card:nth-child(-n+4) {
    display: block;
}
.gallery-item-card {
    position: relative;
    width: 100%;
    padding-top: 61.7%;
    aspect-ratio: 350 / 216;
    border-radius: 6px;
    overflow: hidden;
    display: none;
}
.gallery-item-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item-card:hover img {
    transform: scale(1.03);
}
.gallery-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}
.gallery-dot.active, .gallery-dot:hover {
    background-color: var(--primary-gold);
}
.gallery-dot {
    width: 30px;
    height: 3px;
    background-color: #ddd;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 2px;
}
.product-subtitle {
    display: block;
    color: var(--primary-gold);
    font-size: 20px;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
}
.product-main-title {
    font-family: 'Quattrocento', serif;
    font-size: 40px;
    font-weight: 400;
    color: #000;
    margin-bottom: 12px;
}
.stock-status-badges {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    background: #FAF7F0;
    padding: 6px 12px;
    border-radius: 6px;
    color: var(--primary-gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.product-short-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    color: #808080;
    margin-bottom: 24px;
}

.product-short-desc p {
    line-height: 1.7;
}

.product-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 24px;
}
.feature-item {
    background: #FAF7F0;
    padding: 20px 10px;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    min-height: 128px;
}
.feature-icon {
    width: 40px;
    height: 40px;
    align-content: end;
}
.feature-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #121A21;
    line-height: 1.4;
}
.product-color-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}
.section-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 500;
    color: #000;
}
.color-display {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.color-card {
    display: inline-flex;
    align-items: center;
    padding: 8px;
    border: 1px solid #D0D0D0;
    border-radius: 6px;
    background: #fff;
    min-width: 180px;
}
.color-preview {
    width: 60px;
    height: 45px;
    background: #ccc;
    border-radius: 6px;
    margin-left: 15px;
    border: 0.5px solid #d0d0d05d;
}
.color-info {
    display: flex;
    flex-direction: column;
}
.color-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #121A21;
    line-height: 1.2;
}
.btn-add-to-query {
    width: 100%;
    background: var(--primary-gold);
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: capitalize;
    box-shadow: 0 4px 10px rgba(195, 143, 38, 0.2);
}
.related-products-section {
    margin-top: 80px;
    border-top: none;
    padding-top: 0;
}
.related-title {
    font-family: 'Quattrocento', serif;
    font-size: 48px;
    font-weight: 400;
    color: #000000;
    margin-bottom: 20px !important;
}

#breadcrumbs, .gmc-breadcrumbs, .breadcrumbs-top {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    width: 100% !important;
    font-size: 16px !important;
    font-family: var(--font-body) !important;
    color: #121A21 !important;
    margin-bottom: 30px;
}

.marquee-swiper .swiper-wrapper {
    transition-timing-function: var(--swiper-wrapper-transition-timing-function, linear) !important;
}

.marquee-img-wrapper {
    width: 100%;
    aspect-ratio: 380 / 235;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.marquee-info {
    padding-right: 10px;
}

.marquee-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    color: #000;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.2;
    text-transform: capitalize;
}

.marquee-desc {
    font-size: 14px;
    color: #888;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.5;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-specifications {
    background-color: #F9F4EA;
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
}

.specifications-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 500;
    color: #000000;
    margin-bottom: 20px;
    line-height: 128%;
    letter-spacing: 0;
}

.specifications-table {
    width: 100%;
    border-collapse: collapse;
}

.specifications-table th.spec-label {
    text-align: right;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #808080;
    padding: 0 0 16px 0;
    width: 45%;
    vertical-align: top;
    line-height: 27px;
    letter-spacing: 0;
}

.specifications-table td.spec-value {
    text-align: right;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #808080;
    padding: 0 0 16px 0;
    vertical-align: top;
    line-height: 27px;
    letter-spacing: 0;
}

@media (max-width: 768px) {
    .product-detail-layout {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        display: block !important;
    }
    .product-subtitle {
        margin-top: 30px !important;
        font-size: 14px !important;
    }
    .product-main-title {
        font-size: 30px !important;
        line-height: 1.3 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        margin-top: 10px !important;
        margin-bottom: 12px !important;
        white-space: normal !important;
    }
    .stock-status-badges {
        margin-bottom: 24px !important;
        font-size: 14px !important;
    }
    .product-short-desc {
        margin-bottom: 24px !important;
        display: block !important;
        font-size: 14px !important;
    }
    .section-label {
        font-size: 20px;
    }
    .specifications-title {
        font-size: 18px !important;
    }
    .related-products-section {
        margin-top: 20px;
    }
    .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    .related-title {
        font-size: 30px;
    }
    .purchase-action-area {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100% !important;
        max-width: 100% !important;
        background: #FFFFFF;
        padding: 12px 16px;
        z-index: 2000;
        box-shadow: 0 -4px 30px 0 rgba(0, 0, 0, 0.14);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-sizing: border-box !important;
    }
}

@media (max-width: 992px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .gallery-grid-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .gallery-grid-wrapper {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .gallery-item-card {
        width: 100%;
        max-width: 343px;
        height: auto;
        padding-top: 0 !important;
        margin: 0 auto;
    }
}
.btn-add-to-query.already-in-cart {
    background-color: #121A21;
    box-shadow: 0 4px 10px rgba(18, 26, 33, 0.2);
}
