/**PRODUCT ARCHIVE PAGES **/

/* Category navigation styling */
.fl-menu,
nav.catalog-navigation ul {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    justify-content: center !important;
    padding: 25px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-radius: 12px !important;
    margin: 20px 0 !important;
}

.fl-menu li,
nav.catalog-navigation li {
    list-style: none !important;
}

.fl-menu li a,
nav.catalog-navigation li a {
    display: inline-block;
    padding: 12px 24px;
    background: white;
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.fl-menu li a:hover,
nav.catalog-navigation li a:hover {
    background: linear-gradient(135deg, #A68A3D 0%, #b8a347 100%);
    border-color: #A68A3D;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* Archive and category pages */
.archive .page-header,
.category .page-header,
.tag .page-header {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(184, 163, 71, 0.05) 100%);
    padding: 40px;
    border-radius: 16px;
    margin-bottom: 40px;
    text-align: center;
}

.archive-description {
    font-size: 18px;
    color: #4a5568;
    max-width: 800px;
    margin: 0 auto;
}

/* Archive container styling */
.page-id-1076 .site-inner,
body.woocommerce .site-inner {
    max-width: 1800px;
    margin: 140px auto;
    padding: 40px 20px;
}

.woocommerce-page.sidebar-content .content {
    width: 1200px !important;
}

.woocommerce-page.sidebar-content .sidebar {
    margin-top: 88px;
    max-width: 500px;
    width: 100%;
}

.woocommerce-page.sidebar-content .entry-title {
    padding-top: 20px !important;
    text-align: start;
    margin-left: 250px;
}

.woocommerce-page.sidebar-content .content-sidebar-wrap {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-evenly;
}

    /* Archive title styling */
body.woocommerce:not(.single-product) article > h2:first-child {
    color: #1c3a4d;
    font-size: 48px;
    font-weight: 300;
    text-align: center;
    margin-bottom: 50px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: relative;
    padding-bottom: 20px;
}

body.woocommerce:not(.single-product) article > h2:first-child::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #A68A3D, transparent);
}

/* Products container with glass morphism */
body.woocommerce:not(.single-product) .woocommerce {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 50px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.08),
        0 12px 20px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    border-top-color: #1c3a4d;
    border-top-width: 4px !important;
}

body.woocommerce-page form.woocommerce-ordering select option:enabled:hover {
    background-color: #1c3a4d !important;
}


/* Fix the products grid */
body.woocommerce:not(.single-product) ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 30px 0;
    padding: 0;
    list-style: none !important;
}

/* Fix for first product visibility */
body.woocommerce:not(.single-product) ul.products::before {
    display: none !important;
}

body.woocommerce:not(.single-product) ul.products li.product:first-child {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Responsive grid for product categories */

/* Individual product card styling with glass morphism */
body.woocommerce:not(.single-product) ul.products li.product {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(15px);
    border-radius: 8px;
    padding: 24px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 5px 0px, rgba(0, 0, 0, 0.1) 0px 0px 1px 0px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    display: block !important;
    overflow: hidden;
}

body.woocommerce:not(.single-product) ul.products li.product::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #9b8a3a, #A68A3D, #9b8a3a);
    border-radius: 16px 16px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.woocommerce:not(.single-product) ul.products li.product:hover {
    box-shadow: 
        0 15px 35px rgba(155, 138, 58, 0.15),
        0 8px 16px rgba(0, 0, 0, 0.08);
    border-color: rgba(155, 138, 58, 0.3);
    background: rgba(255, 255, 255, 0.96);
}

body.woocommerce:not(.single-product) ul.products li.product:hover::before {
    opacity: 1;
}

/* Product images - height-based to show full slab */
body.woocommerce:not(.single-product) ul.products li.product img {
    height: 280px;
    width: auto;
    max-width: 100%;
    margin: 0 auto 15px;
    display: block;
    border-radius: 8px;
    object-fit: contain;
    object-position: center;
}

/* Product titles */
body.woocommerce:not(.single-product) ul.products li.product h2 {
    font-size: 16px !important;
    margin: 10px 0;
    color: #1c3a4d;
    font-weight: 500;
    line-height: 1.4;
    min-height: 44px;
}

/* Product prices */
body.woocommerce:not(.single-product) ul.products li.product .price {
    color: #9b8a3a;
    font-size: 20px;
    font-weight: 600;
    margin: 10px 0 15px;
}

/* Add to cart button with sophisticated styling */
body.woocommerce:not(.single-product) ul.products li.product .button {
    background: linear-gradient(135deg, #9b8a3a, #b8a347) !important;
    color: #fff !important;
    padding: 12px 24px !important;
    border: none !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    width: 100% !important;
    text-align: center !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(155, 138, 58, 0.25) !important;
}

body.woocommerce:not(.single-product) ul.products li.product .button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

body.woocommerce:not(.single-product) ul.products li.product .button:hover {
    background: linear-gradient(135deg, #8a7b33, #a6943f);
    box-shadow: 0 6px 16px rgba(155, 138, 58, 0.35);
    color: #fff !important;
}

body.woocommerce:not(.single-product) ul.products li.product .button:hover::before {
    left: 100%;
}

/* Result count with elegant styling */
body.woocommerce:not(.single-product) .woocommerce-result-count {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 25px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Pagination */
body.woocommerce:not(.single-product) nav.woocommerce-pagination ul {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 50px;
    list-style: none;
    padding: 0;
    border: none;
}

.woocommerce nav.woocommerce-pagination ul li {
    border: none !important;
    padding-top: 20px;
}

body.woocommerce:not(.single-product) nav.woocommerce-pagination ul li a,
body.woocommerce:not(.single-product) nav.woocommerce-pagination ul li span {
    display: block;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(155, 138, 58, 0.2) !important;
    border-radius: 8px;
    color: #1c3a4d;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.archive-pagination li a {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #1c3a4d;
}

body.woocommerce:not(.single-product) nav.woocommerce-pagination ul li a:hover {
    background: #9b8a3a;
    color: #fff !important;
    border-color: #9b8a3a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(155, 138, 58, 0.3);
}

.archive-pagination li.active a,
body.woocommerce:not(.single-product) nav.woocommerce-pagination ul li .current {
    background: #9b8a3a !important;
    color: white !important;
    border-color: #9b8a3a !important;
    box-shadow: 0 2px 8px rgba(155, 138, 58, 0.25) !important;
}

/* Empty Category Fallback Message */
body.woocommerce:not(.single-product) .woocommerce:empty::after {
    content: "No products found in this category.";
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    font-size: 24px;
    font-weight: 500;
    color: #4a5568;
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.08),
        0 12px 20px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    margin: 30px 0;
}

/* Add subtle accent line for empty state */
body.woocommerce:not(.single-product) .woocommerce:empty::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, transparent, #A68A3D, transparent);
    margin-bottom: -3px;
    border-radius: 15px 15px 0 0;
}

.rmds-wpp-empty-state-entry header.entry-header {
    display: none;
}

/* Responsive design for empty state message */

/* Restriction Message Styles - Override plugin defaults with glass morphism design */
body.woocommerce:not(.single-product) .rmds-wpp-empty-state-container {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 15px !important;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.08),
        0 12px 20px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
    padding: 50px !important;
    margin: 0 !important;
    position: relative !important;
    border-top-color: #A68A3D !important;
    border-top-width: 4px !important;
}

body.woocommerce:not(.single-product) .rmds-wpp-empty-state {
    max-width: 900px !important;
}

/* Add gold accent line for restriction message */
body.woocommerce:not(.single-product) .rmds-wpp-empty-state-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #A68A3D, transparent) !important;
    border-radius: 15px 15px 0 0;
    margin-bottom: -3px;
}

/* Restriction message icon styling */
body.woocommerce:not(.single-product) .rmds-wpp-empty-icon {
    color: #A68A3D !important;
    font-size: 64px !important;
    margin-bottom: 25px !important;
}

body.woocommerce:not(.single-product) .rmds-wpp-empty-icon .dashicons {
    width: 64px !important;
    height: 64px !important;
    font-size: 64px !important;
    color: #A68A3D !important;
}

/* Restriction message title styling */
body.woocommerce:not(.single-product) .rmds-wpp-empty-state-entry .entry-title {
    color: #1c3a4d !important;
    font-size: 32px !important;
    font-weight: 500 !important;
    margin-bottom: 30px !important;
    text-align: center !important;
}

/* Restriction message content styling */
body.woocommerce:not(.single-product) .rmds-wpp-empty-content {
    margin-bottom: 30px !important;
}

body.woocommerce:not(.single-product) .rmds-wpp-empty-message {
    color: #4a5568 !important;
    font-size: 20px !important;
    font-weight: 500 !important;
    line-height: 1.6 !important;
    text-align: center !important;
}

body.woocommerce:not(.single-product) .rmds-wpp-empty-message p {
    margin: 15px 0 !important;
}

/* Restriction message buttons - match site design */
body.woocommerce:not(.single-product) .rmds-wpp-empty-actions {
    margin: 30px 0 !important;
    text-align: center !important;
}

body.woocommerce:not(.single-product) .rmds-wpp-empty-actions .button {
    background: linear-gradient(135deg, #9b8a3a, #b8a347) !important;
    color: #fff !important;
    padding: 14px 28px !important;
    border: none !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin: 0 8px 10px 8px !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(155, 138, 58, 0.25) !important;
}

body.woocommerce:not(.single-product) .rmds-wpp-empty-actions .button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

body.woocommerce:not(.single-product) .rmds-wpp-empty-actions .button:hover {
    background: linear-gradient(135deg, #8a7b33, #a6943f) !important;
    box-shadow: 0 6px 16px rgba(155, 138, 58, 0.35) !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
}

body.woocommerce:not(.single-product) .rmds-wpp-empty-actions .button:hover::before {
    left: 100%;
}

/* Override specific button colors while maintaining consistent design */
body.woocommerce:not(.single-product) .rmds-wpp-login-button {
    background: linear-gradient(135deg, #9b8a3a, #b8a347) !important;
}

body.woocommerce:not(.single-product) .rmds-wpp-register-button {
    background: linear-gradient(135deg, #46b450, #5cc55c) !important;
}

body.woocommerce:not(.single-product) .rmds-wpp-login-button:hover {
    background: linear-gradient(135deg, #8a7b33, #a6943f) !important;
}

body.woocommerce:not(.single-product) .rmds-wpp-register-button:hover {
    background: linear-gradient(135deg, #3a9b3f, #4da84d) !important;
}

/* Hide empty category message when restriction is active */
body.rmds-wpp-empty-state-active .woocommerce:empty::after,
body.rmds-wpp-empty-state-active .woocommerce:empty::before {
    display: none !important;
}

/* Responsive design for restriction message */

/* Hide empty WooCommerce container when restriction message is active */
body.rmds-wpp-empty-state-active .entry-content > .woocommerce {
    display: none !important;
}


