/* =========================================================
   RAY'S ENTERPRISE
   MODERN E-COMMERCE DESIGN
========================================================= */

/* =========================
   RESET
========================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f6f8;
    color: #1d1d1f;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
textarea,
select {
    font-family: inherit;
}


/* =========================
   HEADER
========================= */

header {
    background: linear-gradient(135deg, #111111, #292929);
    color: white;
    text-align: center;
    padding: 55px 20px 45px;
}

.catalog-logo {
    width: min(230px, 72vw);
    margin: 0 auto 18px;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.38);
}

header h1 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

header p {
    font-size: 17px;
    color: #d6d6d6;
}


/* =========================
   CONTACT INFORMATION
========================= */

.contact-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 26px;

    padding: 14px 20px;

    background: #f5b400;
    color: #171717;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 7px;

    color: inherit;
    font-size: 14px;
    text-decoration: none;
}

a.contact-item:hover,
a.contact-item:focus-visible {
    text-decoration: underline;
}

.contact-item strong {
    margin-right: 3px;
}

@media (max-width: 650px) {
    .contact-bar {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
        padding: 13px 18px;
    }
}


/* =========================
   NAVIGATION
========================= */

nav {
    position: sticky;
    top: 0;
    z-index: 1000;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 38px;

    padding: 17px 20px;

    background: rgba(20, 20, 20, 0.97);

    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
}

nav a {
    position: relative;

    color: white;
    text-decoration: none;

    font-size: 14px;
    font-weight: 700;

    transition: color 0.2s ease;
}

nav a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -7px;

    width: 0;
    height: 2px;

    background: #f5b400;

    transition: width 0.25s ease;
}

nav a:hover {
    color: #f5b400;
}

nav a:hover::after {
    width: 100%;
}


/* =========================
   PRODUCT COLOUR SELECTOR
========================= */

.product-colour-label {
    display: grid;
    gap: 5px;
    margin: 14px 0;

    color: #4a4a4a;
    font-size: 13px;
    font-weight: 700;
}

.product-colour-select {
    width: 100%;
    padding: 9px 10px;

    border: 1px solid #d8d8d8;
    border-radius: 7px;

    background: #fff;
    color: #1d1d1f;
}


/* =========================
   CONTACT FORM
========================= */

.contact-section {
    padding: 55px 20px;
    background: #191919;
    color: #fff;
}


/* =========================
   CUSTOMER REVIEWS
========================= */

.reviews-section {
    padding: 55px 20px;
    background: #fff;
}

.reviews-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 35px;
    width: min(1000px, 100%);
    margin: auto;
}

.review-form {
    display: grid;
    gap: 8px;
}

.review-form input,
.review-form select,
.review-form textarea {
    padding: 11px;
    border: 1px solid #d1d1d1;
    border-radius: 7px;
}

.review-form textarea {
    min-height: 110px;
    resize: vertical;
}

.review-form button {
    width: fit-content;
    margin-top: 10px;
    padding: 11px 18px;
    border: 0;
    border-radius: 7px;
    background: #f5b400;
    color: #171717;
    font-weight: 700;
    cursor: pointer;
}

.contact-section-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 35px;
    width: min(1000px, 100%);
    margin: auto;
}

.contact-section h2 {
    margin-bottom: 8px;
}

.contact-section p {
    color: #d6d6d6;
}

.contact-form {
    display: grid;
    gap: 8px;
}

.contact-form input,
.contact-form textarea {
    padding: 11px;
    border: 1px solid #aaa;
    border-radius: 7px;
}

.contact-form textarea {
    min-height: 96px;
    resize: vertical;
}

.contact-form button,
.contact-whatsapp-button {
    display: inline-block;
    width: fit-content;
    margin-top: 10px;
    padding: 11px 18px;
    border: 0;
    border-radius: 7px;
    background: #25d366;
    color: #102b18;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

@media (max-width: 650px) {
    .contact-section-content {
        grid-template-columns: 1fr;
    }

    .reviews-content {
        grid-template-columns: 1fr;
    }
}


/* =========================
   MAIN
========================= */

main {
    width: min(1200px, 94%);
    margin: auto;
    padding: 45px 0;
}

section {
    margin-bottom: 45px;
}


/* =========================
   WELCOME / HERO
========================= */

.welcome-section {
    position: relative;
    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #ffffff,
            #f0f1f3
        );

    padding: 75px 30px;

    border-radius: 24px;

    text-align: center;

    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.07);
}

.welcome-section::before {
    content: "";

    position: absolute;

    width: 220px;
    height: 220px;

    background: #f5b400;

    border-radius: 50%;

    opacity: 0.08;

    top: -90px;
    right: -60px;
}

.welcome-section h2 {
    position: relative;

    font-size: clamp(28px, 4vw, 42px);

    margin-bottom: 14px;
}

.welcome-section p {
    position: relative;

    max-width: 650px;

    margin: 0 auto 28px;

    color: #666;

    font-size: 17px;
}

.welcome-section button {
    position: relative;
}


/* =========================
   BUTTONS
========================= */

button {
    border: none;

    background: #191919;
    color: white;

    padding: 12px 22px;

    border-radius: 9px;

    cursor: pointer;

    font-size: 14px;
    font-weight: 700;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

button:hover {
    background: #333;

    transform: translateY(-2px);

    box-shadow:
        0 7px 18px rgba(0, 0, 0, 0.15);
}

button:disabled {
    background: #c9c9c9;
    color: #777;

    cursor: not-allowed;

    transform: none;

    box-shadow: none;
}


/* =========================
   SECTION HEADINGS
========================= */

.products-section h2,
#cart h2,
#checkout h2 {
    font-size: 30px;
    font-weight: 800;

    margin-bottom: 22px;
}


/* =========================
   SEARCH
========================= */

.search-box {
    display: flex;
    justify-content: center;

    margin: 25px 0;
}

.search-box input {
    width: 100%;
    max-width: 700px;

    padding: 15px 22px;

    border: 1px solid #ddd;

    border-radius: 30px;

    background: white;

    font-size: 15px;

    outline: none;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.04);

    transition:
        border 0.2s ease,
        box-shadow 0.2s ease;
}

.search-box input:focus {
    border-color: #f5b400;

    box-shadow:
        0 0 0 4px rgba(245, 180, 0, 0.12);
}


/* =========================
   CATEGORIES
========================= */

.categories {
    display: flex;

    justify-content: center;
    flex-wrap: wrap;

    gap: 10px;

    margin: 25px 0 35px;
}

.categories button {
    background: white;

    color: #333;

    border: 1px solid #ddd;

    border-radius: 25px;

    padding: 9px 17px;

    font-size: 13px;

    box-shadow: none;
}

.categories button:hover {
    background: #191919;

    color: white;

    border-color: #191919;

    transform: translateY(-1px);
}


/* =========================
   PRODUCT GRID
========================= */

.products {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 24px;

    width: 100%;
}


/* =========================
   PRODUCT CARD
========================= */

.product-card {
    overflow: hidden;

    background: white;

    border-radius: 17px;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.06);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

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

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.12);
}


/* =========================
   PRODUCT IMAGE
========================= */

.product-image-container {
    width: 100%;

    height: 260px;

    background: #eeeeee;

    overflow: hidden;
}

.product-card img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.4s ease;
}

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


/* =========================
   PRODUCT INFO
========================= */

.product-info {
    padding: 20px;
}

.product-category {
    display: inline-block;

    background: #fff5d6;

    color: #8a6200;

    padding: 5px 10px;

    border-radius: 20px;

    font-size: 10px;
    font-weight: 800;

    text-transform: uppercase;

    margin-bottom: 10px;
}

.product-card h3 {
    font-size: 19px;

    margin-bottom: 8px;
}

.product-price {
    font-size: 22px;

    font-weight: 800;

    color: #111;

    margin-bottom: 7px;
}

.stock-available {
    color: #198754;

    font-size: 13px;
    font-weight: 700;

    margin-bottom: 15px;
}

.stock-unavailable {
    color: #dc3545;

    font-size: 13px;
    font-weight: 700;

    margin-bottom: 15px;
}


/* =========================
   ADD TO CART
========================= */

.add-to-cart-button {
    width: 100%;

    padding: 13px;

    border-radius: 9px;

    background: #191919;
}

.add-to-cart-button:hover {
    background: #f5b400;

    color: #111;
}

.save-to-list-button {
    width: 100%;
    margin-top: 9px;
    padding: 11px;
    background: white;
    color: #191919;
    border: 1px solid #191919;
    box-shadow: none;
}

.save-to-list-button:hover {
    background: #f5b400;
    border-color: #f5b400;
    color: #111;
}


/* =========================
   NO PRODUCTS
========================= */

.no-products {
    grid-column: 1 / -1;

    text-align: center;

    background: white;

    padding: 55px 20px;

    border-radius: 17px;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.05);
}

.no-products h3 {
    margin-bottom: 8px;
}

.no-products p {
    color: #777;
}


/* =========================
   CART
========================= */

#cart {
    width: min(1000px, 94%);

    margin: 0 auto 55px;

    padding: 35px 0;
}

#cart h2 {
    text-align: center;
}

/* =========================
   MY LIST
========================= */

.my-list-section {
    width: min(1000px, 94%);
    margin: 0 auto 55px;
    padding: 35px 0;
}

.my-list-section h2,
.my-list-intro {
    text-align: center;
}

.my-list-intro {
    margin: 8px 0 20px;
    color: #666;
}

#my-list-items {
    padding: 20px 25px;
    border-radius: 17px;
    background: white;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.06);
}

.my-list-item {
    display: grid;
    grid-template-columns: 76px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
}

.my-list-item:last-child {
    border-bottom: none;
}

.my-list-item img {
    width: 76px;
    height: 76px;
    border-radius: 10px;
    object-fit: cover;
}

.my-list-item h3 {
    font-size: 17px;
}

.my-list-item p {
    color: #666;
}

.my-list-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 7px;
}

.my-list-add-button {
    padding: 9px 12px;
    background: #f5b400;
    color: #111;
}

#cart-items {
    background: white;

    border-radius: 17px;

    padding: 20px 25px;

    box-shadow:
        0 6px 22px rgba(0, 0, 0, 0.06);
}


/* =========================
   CART ITEM
========================= */

.cart-item {
    display: grid;

    grid-template-columns:
        1fr auto auto;

    align-items: center;

    gap: 25px;

    padding: 20px 0;

    border-bottom: 1px solid #eee;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info {
    display: flex;

    flex-direction: column;

    gap: 4px;
}

.cart-item-info strong {
    font-size: 16px;
}

.cart-item-info span {
    color: #777;

    font-size: 13px;
}


/* =========================
   CART CONTROLS
========================= */

.cart-item-controls {
    display: flex;

    align-items: center;

    gap: 9px;
}

.cart-item-controls button {
    width: 34px;
    height: 34px;

    padding: 0;

    border-radius: 50%;

    display: flex;

    justify-content: center;
    align-items: center;
}

.cart-item-controls span {
    min-width: 25px;

    text-align: center;

    font-weight: 800;
}

.cart-item-total {
    display: flex;

    flex-direction: column;

    align-items: flex-end;

    gap: 6px;
}

.cart-item-total strong {
    font-size: 16px;
}

.remove-cart-button {
    background: transparent;

    color: #dc3545;

    padding: 3px 0;

    font-size: 12px;

    box-shadow: none;
}

.remove-cart-button:hover {
    background: transparent;

    color: #a71d2a;

    box-shadow: none;

    transform: none;
}


/* =========================
   EMPTY CART
========================= */

.empty-cart {
    text-align: center;

    padding: 45px 20px;

    color: #777;
}

.empty-cart h3 {
    color: #333;

    margin-bottom: 6px;
}


/* =========================
   CART SUMMARY
========================= */

.cart-summary {
    background: white;

    margin-top: 18px;

    padding: 25px;

    border-radius: 17px;

    box-shadow:
        0 6px 22px rgba(0, 0, 0, 0.06);

    text-align: right;
}

.cart-summary p {
    color: #666;

    margin-bottom: 8px;
}

.cart-summary h3 {
    font-size: 25px;

    margin-bottom: 18px;
}

#cart-total {
    color: #111;
}

#checkout-button {
    background: #f5b400;

    color: #111;

    padding: 14px 25px;
}

#checkout-button:hover {
    background: #d99e00;
}


/* =========================
   CHECKOUT
========================= */

#checkout {
    width: min(700px, 94%);

    margin: 0 auto 60px;

    padding: 35px;

    background: white;

    border-radius: 20px;

    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.08);
}

#checkout h2 {
    margin-bottom: 8px;
}

#checkout p {
    color: #777;

    margin-bottom: 25px;
}

#checkoutForm {
    display: flex;

    flex-direction: column;

    gap: 9px;
}

#checkoutForm label {
    font-weight: 700;

    margin-top: 10px;

    font-size: 14px;
}

#checkoutForm input,
#checkoutForm textarea {
    width: 100%;

    padding: 13px 15px;

    border: 1px solid #ddd;

    border-radius: 9px;

    font-size: 14px;

    outline: none;

    background: #fafafa;

    transition:
        border 0.2s ease,
        box-shadow 0.2s ease;
}

#checkoutForm textarea {
    min-height: 110px;

    resize: vertical;
}

#checkoutForm input:focus,
#checkoutForm textarea:focus {
    background: white;

    border-color: #f5b400;

    box-shadow:
        0 0 0 4px rgba(245, 180, 0, 0.1);
}

#checkoutForm button[type="submit"] {
    margin-top: 18px;

    padding: 14px;

    background: #191919;
}

#checkoutForm button[type="submit"]:hover {
    background: #f5b400;

    color: #111;
}

.back-to-cart-button {
    background: #eeeeee;

    color: #333;

    box-shadow: none;
}

.back-to-cart-button:hover {
    background: #ddd;

    box-shadow: none;
}
/* ==========================================
   PAYMENT METHOD
========================================== */

.payment-method-section {
    margin-top: 20px;
}

.payment-method-section h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    padding: 15px;

    border: 1px solid #ddd;
    border-radius: 10px;

    background: #fafafa;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.payment-option:hover {
    border-color: #222;
    background: #f5f5f5;
    transform: translateY(-1px);
}

.payment-option input {
    width: 18px !important;
    height: 18px;

    margin-top: 2px;

    flex-shrink: 0;

    cursor: pointer;
}

.payment-option-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.payment-option-content strong {
    font-size: 16px;
    color: #222;
}

.payment-option-content span {
    font-size: 14px;
    color: #777;
}


/* =========================
   ORDER CONFIRMATION
========================= */

.order-confirmation {
    width: min(700px, 94%);

    margin: 0 auto 60px;

    text-align: center;
}

.confirmation-box {
    background: white;

    padding: 50px 30px;

    border-radius: 22px;

    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.08);
}

.confirmation-icon {
    width: 70px;
    height: 70px;

    margin: 0 auto 20px;

    border-radius: 50%;

    background: #198754;

    color: white;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 38px;
    font-weight: 800;
}

.confirmation-box h2 {
    margin-bottom: 10px;

    font-size: 28px;
}

.confirmation-box > p {
    color: #777;

    margin-bottom: 25px;
}

.order-details {
    background: #f6f7f9;

    padding: 20px;

    border-radius: 12px;

    margin-bottom: 25px;
}

.order-details p {
    display: flex;

    justify-content: space-between;

    gap: 20px;

    padding: 8px 0;

    border-bottom: 1px solid #e5e5e5;
}

.order-details p:last-child {
    border-bottom: none;
}

.confirmation-box button {
    background: #191919;
}


/* =========================
   FOOTER
========================= */

footer {
    background: #151515;

    color: white;

    text-align: center;

    padding: 32px 20px;

    margin-top: 60px;
}

footer p {
    color: #aaa;

    font-size: 13px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .products {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    header {
        padding: 40px 15px 35px;
    }

    header h1 {
        font-size: 30px;
    }

    header p {
        font-size: 14px;
    }


    nav {
        justify-content: flex-start;

        overflow-x: auto;

        gap: 25px;

        padding: 14px 18px;
    }

    nav a {
        white-space: nowrap;

        font-size: 13px;
    }


    main {
        width: 94%;

        padding: 30px 0;
    }


    .welcome-section {
        padding: 45px 20px;

        border-radius: 18px;
    }

    .welcome-section h2 {
        font-size: 26px;
    }

    .welcome-section p {
        font-size: 15px;
    }


    .products-section h2,
    #cart h2,
    #checkout h2 {
        font-size: 25px;
    }


    .products {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 12px;
    }


    .product-card {
        border-radius: 12px;
    }


    .product-image-container {
        height: 155px;
    }


    .product-info {
        padding: 12px;
    }


    .product-category {
        font-size: 8px;

        padding: 4px 7px;
    }


    .product-card h3 {
        font-size: 14px;

        margin-bottom: 5px;
    }


    .product-price {
        font-size: 17px;
    }


    .stock-available,
    .stock-unavailable {
        font-size: 10px;

        margin-bottom: 9px;
    }


    .add-to-cart-button {
        padding: 9px 5px;

        font-size: 11px;
    }


    .search-box {
        margin: 20px 0;
    }


    .categories {
        justify-content: flex-start;

        overflow-x: auto;

        flex-wrap: nowrap;

        padding-bottom: 8px;

        scrollbar-width: none;
    }

    .categories::-webkit-scrollbar {
        display: none;
    }

    .categories button {
        white-space: nowrap;

        flex-shrink: 0;
    }


    #cart {
        width: 94%;

        padding: 25px 0;
    }


    #cart-items {
        padding: 15px;
    }

    #my-list-items {
        padding: 15px;
    }

    .my-list-item {
        grid-template-columns: 58px 1fr;
        gap: 12px;
    }

    .my-list-item img {
        width: 58px;
        height: 58px;
    }

    .my-list-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
    }


    .cart-item {
        grid-template-columns: 1fr;

        gap: 12px;

        padding: 17px 0;
    }


    .cart-item-controls {
        justify-content: flex-start;
    }


    .cart-item-total {
        align-items: flex-start;
    }


    .cart-summary {
        text-align: left;

        padding: 20px;
    }


    #checkout {
        width: 94%;

        padding: 25px 18px;

        border-radius: 16px;
    }


    .confirmation-box {
        padding: 40px 20px;
    }


    .confirmation-box h2 {
        font-size: 24px;
    }


    .order-details p {
        flex-direction: column;

        gap: 2px;

        text-align: left;
    }

}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 380px) {

    .products {
        gap: 8px;
    }


    .product-image-container {
        height: 130px;
    }


    .product-info {
        padding: 9px;
    }


    .product-card h3 {
        font-size: 13px;
    }


    .product-price {
        font-size: 15px;
    }


    .add-to-cart-button {
        font-size: 10px;

        padding: 8px 3px;
    }


    .categories button {
        font-size: 10px;

        padding: 7px 10px;
    }

}

/* My Orders: clear visual separation for each customer order */
#orders-container {
    display: grid;
    gap: 20px;
    margin-top: 28px;
}

.order-card {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-left: 5px solid #f59e0b;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.order-card.status-processing { border-left-color: #2563eb; }
.order-card.status-completed { border-left-color: #16a34a; }
.order-card.status-cancelled { border-left-color: #dc2626; }

.order-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    color: #fff;
    background: #172554;
}

.order-card-header span:first-child,
.my-order-total span {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.82;
}

.order-card-header strong {
    display: block;
    font-size: 1.25rem;
    letter-spacing: 0.03em;
}

.order-status {
    padding: 6px 11px;
    border-radius: 999px;
    color: #1e293b;
    background: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    white-space: nowrap;
}

.order-date {
    padding: 12px 20px;
    color: #475569;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.9rem;
}

.my-order-products,
.my-order-details {
    padding: 18px 20px;
}

.my-order-products h3 {
    margin-bottom: 10px;
    color: #172554;
    font-size: 1rem;
}

.my-order-product {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #edf2f7;
}

.my-order-product:last-child { border-bottom: 0; }

.my-order-product span {
    display: block;
    color: #64748b;
    font-size: 0.9rem;
}

.my-order-details {
    display: grid;
    gap: 8px;
    background: #f8fafc;
    color: #334155;
}

.my-order-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    color: #fff;
    background: #0f766e;
}

.my-order-total strong { font-size: 1.3rem; }

@media (max-width: 520px) {
    .order-card-header,
    .my-order-product,
    .my-order-total {
        align-items: flex-start;
        flex-direction: column;
    }

    .order-status { align-self: flex-start; }
}


/* Collapsed feedback tab */
.reviews-section {
    padding: 28px 20px;
}

.reviews-content {
    display: block;
    width: min(760px, 100%);
}

.review-tab {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(15, 23, 42, 0.07);
}

.review-tab summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    color: #172554;
    cursor: pointer;
    list-style: none;
    font-weight: 800;
}

.review-tab summary::-webkit-details-marker {
    display: none;
}

.review-tab summary::after {
    content: "+";
    color: #fff;
    background: #172554;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    font-size: 1.25rem;
    font-weight: 400;
}

.review-tab[open] summary {
    border-bottom: 1px solid #e2e8f0;
}

.review-tab[open] summary::after {
    content: "-";
}

.review-tab summary small {
    margin-left: auto;
    color: #64748b;
    font-weight: 400;
}

.review-tab .review-form {
    padding: 20px;
}

@media (max-width: 560px) {
    .review-tab summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .review-tab summary small {
        margin-left: 0;
    }

    .review-tab summary::after {
        position: absolute;
        right: 20px;
    }
}


/* Storefront polish: shared visual system */
:root {
    --brand: #0f3d3e;
    --brand-deep: #092b2c;
    --accent: #f3b51b;
    --ink: #17212b;
    --muted: #617080;
    --surface: #ffffff;
    --canvas: #f4f7f7;
    --line: #dfe7e7;
    --success: #15803d;
    --danger: #b42318;
    --radius: 16px;
}

body {
    background: var(--canvas);
    color: var(--ink);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

header {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 14px;
    align-items: center;
    padding: 22px clamp(20px, 6vw, 82px);
    background: linear-gradient(120deg, var(--brand-deep), var(--brand));
}

.catalog-logo {
    grid-row: span 2;
    width: 54px;
    height: 54px;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,.6);
    border-radius: 15px;
}

header h1 { margin: 0; font-size: clamp(1.35rem, 3vw, 2rem); letter-spacing: -.03em; }
header p { margin: 0; color: #d9eeee; }

.contact-bar {
    display: flex;
    justify-content: center;
    gap: 4px 24px;
    padding: 10px clamp(16px, 5vw, 70px);
    background: #e8f0ef;
    color: #314755;
    font-size: .87rem;
}

.contact-item { color: inherit; text-decoration: none; }
.contact-item:hover { color: var(--brand); }

nav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    justify-content: center;
    gap: 4px;
    padding: 9px 16px;
    overflow-x: auto;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 4px 14px rgba(21, 45, 45, .05);
    backdrop-filter: blur(10px);
}

nav a {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 9px;
    color: #3b4a55;
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
}

nav a::after { display: none; }
nav a:hover, nav a:focus-visible { color: var(--brand); background: #e8f2f1; }

main { width: min(1220px, calc(100% - 32px)); margin: 0 auto; }

.welcome-section {
    margin: 28px 0;
    padding: clamp(34px, 7vw, 74px);
    border-radius: 24px;
    color: white;
    text-align: left;
    background:
        linear-gradient(100deg, rgba(9,43,44,.96), rgba(15,61,62,.78)),
        url("rays-enterprise-catalog-logo.jpg") center/cover;
    box-shadow: 0 18px 35px rgba(9,43,44,.18);
}

.welcome-section h2 { max-width: 650px; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.05; }
.welcome-section p { max-width: 530px; margin: 15px 0 22px; color: #e1f0ef; font-size: 1.05rem; }
.welcome-section button,
.add-to-cart-button,
.review-form button,
.contact-form button,
.continue-shopping-button {
    border: 0;
    border-radius: 10px;
    padding: 12px 18px;
    background: var(--accent);
    color: #1b2b2c;
    font-weight: 800;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.welcome-section button:hover,
.add-to-cart-button:hover:not(:disabled),
.review-form button:hover,
.contact-form button:hover,
.continue-shopping-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 18px rgba(0,0,0,.16);
    background: #ffd365;
}

.products-section,
.cart-section,
.my-list-section,
.my-orders-section {
    width: min(1220px, calc(100% - 32px));
    margin: 28px auto;
    padding: clamp(20px, 4vw, 34px);
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 8px 24px rgba(22, 49, 49, .05);
}

.products-section > h2,
.cart-section > h2,
.my-list-section > h2,
.my-orders-section h2 {
    color: var(--brand-deep);
    font-size: clamp(1.45rem, 3vw, 2rem);
}

.search-box input {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 13px 15px;
    background: #fbfdfd;
}
.search-box input:focus { outline: 3px solid rgba(15,61,62,.14); border-color: var(--brand); }

.categories { display: flex; flex-wrap: wrap; gap: 8px; }
.categories button {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 13px;
    color: #40515d;
    background: white;
    font-weight: 700;
    cursor: pointer;
    transition: .18s ease;
}
.categories button:hover { border-color: var(--brand); color: var(--brand); background: #eef7f6; }

.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 5px 16px rgba(16, 42, 42, .05);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.product-card:hover {
    transform: translateY(-5px);
    border-color: #c9d9d8;
    box-shadow: 0 14px 28px rgba(16,42,42,.12);
}
.product-image-container { aspect-ratio: 1 / .82; background: #edf4f3; overflow: hidden; }
.product-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover img { transform: scale(1.04); }
.product-info { display: flex; flex: 1; flex-direction: column; padding: 17px; }
.product-category { align-self: flex-start; padding: 4px 8px; border-radius: 999px; color: var(--brand); background: #e7f3f1; font-size: .72rem; font-weight: 800; text-transform: capitalize; }
.product-card h3 { min-height: 2.7em; margin: 11px 0 4px; color: var(--ink); font-size: 1.05rem; line-height: 1.35; }
.product-price { margin-bottom: 10px; color: var(--brand-deep); font-size: 1.15rem; font-weight: 850; }
.stock-available, .stock-unavailable { align-self: flex-start; margin: 2px 0 14px; padding: 4px 8px; border-radius: 7px; font-size: .78rem; font-weight: 800; }
.stock-available { color: var(--success); background: #eaf8ef; }
.stock-unavailable { color: var(--danger); background: #fff0ee; }
.product-card .add-to-cart-button { width: 100%; margin-top: auto; }
.product-card .add-to-cart-button:disabled { color: #8a4a46; background: #f6d8d5; cursor: not-allowed; box-shadow: none; transform: none; }
.save-to-list-button { margin-top: 9px; border: 1px solid #b8cfcc; border-radius: 10px; padding: 10px; color: var(--brand); background: #fff; font-weight: 800; cursor: pointer; transition: .18s ease; }
.save-to-list-button:hover { background: #edf7f5; border-color: var(--brand); }

.product-loading {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
}
.product-skeleton {
    height: 350px;
    border-radius: var(--radius);
    background: linear-gradient(100deg, #edf2f2 25%, #f8fbfb 40%, #edf2f2 55%);
    background-size: 200% 100%;
    animation: catalogShimmer 1.15s infinite;
}
@keyframes catalogShimmer { to { background-position: -200% 0; } }

.no-products, .empty-cart, .no-orders {
    padding: 38px 22px;
    border: 1px dashed #bfd1cf;
    border-radius: 14px;
    color: #51626e;
    text-align: center;
    background: #f9fcfc;
}
.no-products h3, .empty-cart h3, .no-orders h3 { color: var(--brand-deep); }

footer {
    display: grid;
    grid-template-columns: 1.5fr repeat(2, 1fr);
    gap: 28px;
    margin-top: 42px;
    padding: 38px clamp(20px, 7vw, 86px) 25px;
    color: #d6e6e5;
    background: #092b2c;
}
footer h3 { margin-bottom: 9px; color: #fff; font-size: 1rem; }
footer p, footer a { color: #b8cfcd; font-size: .9rem; text-decoration: none; }
footer a:hover { color: var(--accent); }
.footer-copyright { grid-column: 1 / -1; margin-top: 4px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); }

@media (max-width: 700px) {
    .contact-bar { justify-content: flex-start; overflow-x: auto; white-space: nowrap; }
    nav { justify-content: flex-start; }
    .welcome-section { border-radius: 18px; }
    .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .product-info { padding: 13px; }
    .product-card h3 { font-size: .95rem; }
    .product-price { font-size: 1rem; }
    footer { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 380px) {
    .products { grid-template-columns: 1fr; }
}

/* Compact catalog cards */
.product-image-container { aspect-ratio: 1 / .68; }
.product-info { padding: 12px 14px 14px; }
.product-card h3 { min-height: 0; margin: 7px 0 2px; font-size: .98rem; }
.product-price { margin-bottom: 6px; font-size: 1.05rem; }
.stock-available, .stock-unavailable { margin-bottom: 9px; padding: 3px 7px; }
.product-colour-label { margin-top: 3px; }
.product-card .add-to-cart-button,
.save-to-list-button { padding: 9px 12px; }
.save-to-list-button { margin-top: 6px; }
/* Edge-to-edge featured catalog on mobile */
@media (max-width: 700px) {
    .products-section {
        width: calc(100% + 32px);
        margin-left: -16px;
        margin-right: -16px;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
        box-shadow: none;
    }
}

/* Customer catalog: stock is intentionally private; customers see price and actions only. */
.product-card .stock-available, .product-card .stock-unavailable { display: none !important; }

/* Customer light/dark mode */
.theme-toggle {
    flex: 0 0 auto;
    border: 1px solid #cbd8d7;
    border-radius: 999px;
    padding: 8px 12px;
    color: #3b4a55;
    background: #fff;
    font-size: .86rem;
    font-weight: 700;
    cursor: pointer;
}
.theme-toggle:hover { color: var(--brand); background: #e8f2f1; }

body.dark-mode {
    --canvas: #10191b;
    --surface: #172326;
    --ink: #e6f0ef;
    --muted: #a8bcba;
    --line: #304345;
    background: var(--canvas);
    color: var(--ink);
}
body.dark-mode .contact-bar { color: #c3d5d3; background: #15292a; }
body.dark-mode nav { background: rgba(18, 31, 33, .96); border-color: #304345; }
body.dark-mode nav a { color: #c3d5d3; }
body.dark-mode nav a:hover,
body.dark-mode nav a:focus-visible { color: #fff; background: #244143; }
body.dark-mode .theme-toggle { color: #e6f0ef; border-color: #55706e; background: #203638; }
body.dark-mode .products-section,
body.dark-mode .cart-section,
body.dark-mode .my-list-section,
body.dark-mode .my-orders-section { border-color: var(--line); background: var(--surface); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
body.dark-mode .product-card { border-color: #304345; background: #1b2a2d; box-shadow: 0 8px 20px rgba(0,0,0,.2); }
body.dark-mode .product-card:hover { border-color: #55706e; }
body.dark-mode .product-card h3,
body.dark-mode .products-section > h2,
body.dark-mode .cart-section > h2,
body.dark-mode .my-list-section > h2,
body.dark-mode .my-orders-section h2 { color: #f0f8f7; }
body.dark-mode .product-price { color: #8ed2c5; }
body.dark-mode .save-to-list-button { color: #b7e4dc; border-color: #55706e; background: #203638; }
body.dark-mode .search-box input,
body.dark-mode .review-form input,
body.dark-mode .review-form select,
body.dark-mode .review-form textarea,
body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea { color: #e6f0ef; border-color: #46605f; background: #142123; }
body.dark-mode .categories button { color: #c3d5d3; border-color: #46605f; background: #203638; }
body.dark-mode .no-products,
body.dark-mode .empty-cart,
body.dark-mode .no-orders { color: #b7c9c7; border-color: #55706e; background: #142123; }
body.dark-mode .order-card { border-color: #304345; background: #1b2a2d; }
body.dark-mode .order-date,
body.dark-mode .my-order-details { color: #c3d5d3; background: #142123; border-color: #304345; }
body.dark-mode .my-order-product { border-color: #304345; }

@media (max-width: 700px) {
    .theme-toggle { margin-left: 4px; }
}
.no-search-results {
    grid-column: 1 / -1;
    padding: 42px 22px;
    border: 1px dashed #bfd1cf;
    border-radius: 14px;
    color: #51626e;
    text-align: center;
    background: #f9fcfc;
}
.no-search-results h3 { margin-bottom: 5px; color: var(--brand-deep); }
.no-search-results button { margin-top: 16px; border: 0; border-radius: 9px; padding: 10px 15px; color: #fff; background: var(--brand); font-weight: 800; cursor: pointer; }
body.dark-mode .no-search-results { border-color: #55706e; color: #b7c9c7; background: #142123; }
body.dark-mode .no-search-results h3 { color: #f0f8f7; }
.search-box { display: flex; gap: 8px; }
.search-box input { flex: 1; min-width: 0; }
.search-submit { border: 0; border-radius: 10px; padding: 0 16px; color: #fff; background: var(--brand); font-weight: 800; cursor: pointer; }
.search-submit:hover { background: var(--brand-deep); }
body.dark-mode .search-submit { color: #102526; background: #8ed2c5; }
.product-image-container img { cursor: zoom-in; }
.product-lightbox { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 24px; background: rgba(3, 15, 16, .88); }
.product-lightbox.is-open { display: grid; }
.product-lightbox img { max-width: min(920px, 94vw); max-height: 82vh; width: auto; height: auto; object-fit: contain; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.product-lightbox p { position: absolute; bottom: 22px; max-width: 80vw; color: #fff; font-weight: 800; text-align: center; }
.lightbox-close { position: absolute; top: 18px; right: 20px; border: 0; color: #fff; background: transparent; font-size: 2.3rem; line-height: 1; cursor: pointer; }


.add-to-cart-button.is-added { color: #fff; background: #15803d; box-shadow: 0 0 0 4px rgba(34, 197, 94, .22), 0 10px 20px rgba(21, 128, 61, .28); animation: add-to-cart-success .45s ease-out; }
@keyframes add-to-cart-success { 0% { transform: scale(1); } 45% { transform: scale(1.05); } 100% { transform: scale(1); } }
#cart-item-count.cart-count-pop { animation: cart-count-pop .45s ease-out; }
@keyframes cart-count-pop { 0% { transform: scale(1); } 45% { transform: scale(1.5); color: #15803d; } 100% { transform: scale(1); } }


.cart-icon { display: inline-block; margin-right: 4px; transform-origin: 50% 70%; }
a[href="#cart"].is-bouncing .cart-icon { animation: cart-trolley-bounce .65s ease-out; }
@keyframes cart-trolley-bounce { 0% { transform: translateX(0) rotate(0); } 25% { transform: translateX(-3px) rotate(-10deg); } 50% { transform: translateX(4px) rotate(10deg); } 75% { transform: translateX(-2px) rotate(-6deg); } 100% { transform: translateX(0) rotate(0); } }




.categories { display: flex; flex-direction: column; align-items: stretch; gap: 6px; max-width: 360px; margin: 0 auto 22px; }
.categories button { display: flex; justify-content: space-between; width: 100%; text-align: left; }
.category-count { opacity: .7; font-size: .85em; }

/* Category navigation: always vertical with readable product-unit counts */
.categories { display: flex !important; flex-direction: column !important; flex-wrap: nowrap !important; align-items: stretch !important; gap: 6px !important; width: min(100%, 360px); max-width: 360px; margin: 0 auto 22px !important; overflow: visible !important; }
.categories button { display: block !important; width: 100% !important; min-height: 40px; text-align: left !important; white-space: normal !important; }
.category-count { opacity: 1 !important; font-size: inherit !important; font-weight: 600; }

/* Category navigation: horizontal buttons */
.categories { display: flex !important; flex-direction: row !important; flex-wrap: wrap !important; justify-content: center !important; align-items: center !important; gap: 8px !important; width: auto; max-width: none; margin: 25px 0 35px !important; overflow: visible !important; }
.categories button { display: inline-block !important; width: auto !important; min-height: 0; text-align: center !important; white-space: nowrap !important; }
.category-count { display: none !important; }

.customer-auth-button { border: 1px solid rgba(255,255,255,.45); border-radius: 999px; padding: 8px 13px; background: transparent; color: inherit; cursor: pointer; font: inherit; }
.customer-auth-button:hover { background: rgba(255,255,255,.12); }

.account-menu-wrap { position: relative; display: inline-block; }
.customer-account-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 220px; padding: 12px; border: 1px solid var(--line, #d8e2e0); border-radius: 12px; background: var(--surface, #fff); color: var(--text, #172322); box-shadow: 0 10px 30px rgba(0,0,0,.15); }
.customer-account-status { margin: 0 0 10px; font-size: .9rem; }
.account-menu-action { display: block; width: 100%; margin-top: 7px; padding: 9px 10px; border: 1px solid var(--line, #d8e2e0); border-radius: 8px; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.account-menu-action:hover { background: #eef7f6; }
body.dark-mode .customer-account-menu { background: #203638; color: #e6f0ef; border-color: #46605f; }
body.dark-mode .account-menu-action { border-color: #46605f; }

.account-page[hidden] { display: none !important; }
.account-page { min-height: 70vh; padding: 24px 5%; background: var(--surface, #fff); }
.account-back-button { border: 0; background: transparent; color: var(--brand, #0f3d3e); font: inherit; cursor: pointer; margin-bottom: 20px; }
.account-page-content { max-width: 980px; min-height: 58vh; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line, #d8e2e0); border-radius: 20px; overflow: hidden; box-shadow: 0 16px 45px rgba(15,61,62,.12); }
.account-brand-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; background: #0f3d3e; color: #fff; text-align: center; }
.account-brand-panel img { width: min(240px, 70%); border-radius: 18px; margin-bottom: 20px; }
.account-brand-panel h2, .account-brand-panel p { margin: 5px 0; }
.account-login-panel { display: flex; flex-direction: column; justify-content: center; padding: 48px; }
.account-eyebrow { color: var(--brand, #0f3d3e); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.account-login-panel h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 8px 0; }
.account-login-panel button { width: 100%; margin-top: 12px; padding: 13px 16px; border-radius: 10px; cursor: pointer; font: inherit; }
.account-primary-action { border: 0; background: #0f3d3e; color: #fff; }
.account-secondary-action { border: 1px solid var(--line, #d8e2e0); background: transparent; color: inherit; }
body.account-page-open > main, body.account-page-open > header, body.account-page-open > .contact-bar, body.account-page-open > nav, body.account-page-open > #cart, body.account-page-open > #my-list, body.account-page-open > #checkout, body.account-page-open > #order-confirmation, body.account-page-open > #my-orders, body.account-page-open > #reviews, body.account-page-open > #contact, body.account-page-open > footer { display: none !important; }
@media (max-width: 700px) { .account-page-content { grid-template-columns: 1fr; } .account-brand-panel { padding: 28px 20px; } .account-brand-panel img { width: 150px; } .account-login-panel { padding: 30px 22px 40px; } }

.customer-trust-section { padding: 56px 5%; background: #f2f8f7; border-top: 1px solid var(--line, #d8e2e0); border-bottom: 1px solid var(--line, #d8e2e0); }
.customer-trust-inner { max-width: 1180px; margin: 0 auto; }
.customer-trust-heading { text-align: center; max-width: 650px; margin: 0 auto 26px; }
.trust-eyebrow { margin: 0 0 8px; color: var(--brand, #0f3d3e); font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.customer-trust-heading h2 { margin: 0 0 8px; }
.trust-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.trust-card { padding: 22px; border: 1px solid var(--line, #d8e2e0); border-radius: 14px; background: #fff; }
.trust-icon { display: block; margin-bottom: 10px; font-size: 1.8rem; }
.trust-card h3 { margin: 0 0 8px; }
.trust-card p { margin: 0 0 12px; line-height: 1.5; }
.trust-card a { color: var(--brand, #0f3d3e); font-weight: 700; }
.trust-policy { margin-top: 18px; padding: 15px 18px; border-radius: 10px; background: #e1f0ee; color: #173c3b; text-align: center; }
body.dark-mode .customer-trust-section { background: #162b2c; border-color: #46605f; }
body.dark-mode .trust-card { background: #203638; border-color: #46605f; }
body.dark-mode .trust-policy { background: #234443; color: #d9ece9; }
@media (max-width: 850px) { .trust-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .customer-trust-section { padding: 40px 5%; } .trust-cards { grid-template-columns: 1fr; } }

/* Trust information opens in a right-side dashboard */
.customer-trust-section[hidden] { display: none !important; }
.customer-trust-section:not([hidden]) { position: fixed; top: 0; right: 0; bottom: 0; z-index: 1200; width: min(92vw, 520px); overflow-y: auto; padding: 34px 26px; background: #f2f8f7; border-left: 1px solid var(--line, #d8e2e0); box-shadow: -12px 0 40px rgba(0,0,0,.22); animation: trust-slide-in .2s ease-out; }
.close-customer-trust { position: absolute; top: 12px; right: 18px; border: 0; background: transparent; color: inherit; font-size: 2rem; line-height: 1; cursor: pointer; }
.customer-trust-section .trust-cards { grid-template-columns: 1fr; }
body.trust-panel-open::after { content: ""; position: fixed; inset: 0; z-index: 1199; background: rgba(9,24,25,.45); }
@keyframes trust-slide-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
body.dark-mode .customer-trust-section:not([hidden]) { background: #162b2c; }

/* Categories are opened separately from the Products tab. */
.products-section > .categories { display: none; }

/* Customer category drawer */
.customer-categories-toggle { border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.categories-drawer-open::after { content: ""; position: fixed; inset: 0; z-index: 1090; background: rgba(9,24,25,.42); }
.categories-drawer-open .categories { position: fixed; top: 0; left: 0; bottom: 0; z-index: 1100; display: flex !important; flex-direction: column !important; align-items: stretch !important; justify-content: flex-start !important; gap: 0 !important; width: min(88vw, 390px) !important; max-width: none !important; height: 100vh; margin: 0 !important; padding: 76px 0 24px; overflow-y: auto !important; background: #fff; box-shadow: 10px 0 36px rgba(0,0,0,.2); animation: categories-drawer-in .2s ease-out; }
.categories-drawer-open .categories::before { content: "Categories for you"; display: block; padding: 0 24px 18px; font-size: 1.35rem; font-weight: 800; color: #111; }
.categories-drawer-open .categories button { display: flex !important; align-items: center; justify-content: flex-start !important; gap: 14px; width: 100% !important; min-height: 72px; padding: 14px 24px !important; border: 0; border-radius: 0; background: #fff; color: #111; font-size: 1.05rem; font-weight: 600; text-align: left !important; white-space: normal !important; }
.categories-drawer-open .categories button::before { content: "☆"; width: 28px; flex: 0 0 28px; color: #333; font-size: 1.65rem; text-align: center; }
.categories-drawer-open .categories button:nth-of-type(2)::before { content: "♙"; }
.categories-drawer-open .categories button:nth-of-type(3)::before { content: "◉"; }
.categories-drawer-open .categories button:nth-of-type(4)::before { content: "⌁"; }
.categories-drawer-open .categories button:nth-of-type(5)::before { content: "◇"; }
.categories-drawer-open .categories button:nth-of-type(6)::before { content: "⌂"; }
.categories-drawer-open .categories button::after { content: "›"; margin-left: auto; color: #777; font-size: 2rem; font-weight: 400; }
.categories-drawer-open .category-count { display: none !important; }
body.dark-mode.categories-drawer-open .categories, body.dark-mode.categories-drawer-open .categories button { background: #203638; color: #e6f0ef; }
body.dark-mode.categories-drawer-open .categories::before { color: #e6f0ef; }
@keyframes categories-drawer-in { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@media (max-width: 700px) { .customer-categories-toggle { order: -1; } }

.categories-drawer-open .category-drawer-close { position: absolute; top: 16px; right: 18px; z-index: 2; display: block !important; width: auto !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; color: #555 !important; font-size: 2rem !important; font-weight: 400 !important; line-height: 1 !important; cursor: pointer; }
.categories-drawer-open .category-drawer-close::before, .categories-drawer-open .category-drawer-close::after { content: none !important; }

/* Responsive navigation reliability */
nav > a,
nav > button,
nav .account-menu-wrap,
nav .theme-toggle { flex: 0 0 auto; }
nav > button,
nav .theme-toggle { white-space: nowrap; min-height: 36px; touch-action: manipulation; }
nav > a { display: inline-flex; align-items: center; min-height: 36px; touch-action: manipulation; }
nav { -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
body.categories-drawer-open::after,
body.trust-panel-open::after { pointer-events: auto; }
.categories-drawer-open .categories,
.customer-trust-section:not([hidden]) { touch-action: pan-y; }
@media (max-width: 600px) {
  nav { gap: 14px; padding: 10px 14px; justify-content: flex-start; }
  nav > a, nav > button, nav .account-menu-wrap { font-size: 13px; }
  nav .theme-toggle { font-size: 12px; padding: 7px 10px; }
}

/* Multi-image product gallery */
.product-gallery { position: relative; }
.product-gallery-main { width: 100%; height: 100%; object-fit: cover; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: #0b4f4a; font-size: 26px; line-height: 1; cursor: pointer; z-index: 2; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.gallery-prev { left: 8px; }
.gallery-next { right: 8px; }
.gallery-dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 5px; z-index: 2; }
.gallery-dot { width: 8px; height: 8px; padding: 0; border: 1px solid #fff; border-radius: 50%; background: rgba(255,255,255,.65); cursor: pointer; }
.gallery-dot.is-active { background: #0b4f4a; transform: scale(1.2); }

/* Keep category choices out of the Products view. Later responsive rules style .categories with !important, so these state rules also use !important. */
.products-section > .categories { display: none !important; }
body.categories-drawer-open .products-section > .categories { display: flex !important; }

/* Mobile-first customer catalog layout */
@media (max-width: 700px) {
    header {
        display: grid;
        grid-template-columns: 46px 1fr;
        align-items: center;
        gap: 10px;
        padding: 12px 16px;
        text-align: left;
    }
    header .catalog-logo { width: 46px; height: 46px; margin: 0; border-radius: 12px; }
    header h1 { font-size: 1.15rem; }
    header p { grid-column: 2; margin-top: -6px; font-size: .78rem; }
    .contact-bar { display: none; }
    nav { top: 0; z-index: 1000; gap: 8px; padding: 9px 12px; overflow-x: auto; white-space: nowrap; }
    nav > a, nav > button, nav .account-menu-wrap { font-size: .8rem; }
    nav .theme-toggle { display: none; }
    main { width: 100%; }
    .welcome-section { display: none; }
    .products-section { width: 100%; margin: 0; padding: 18px 12px 88px; border: 0; border-radius: 0; box-shadow: none; }
    .products-section > h2 { margin: 0 2px 14px; font-size: 1.35rem; }
    .search-box { margin: 0 0 14px; gap: 8px; }
    .search-box input { min-width: 0; padding: 11px 13px; font-size: .92rem; }
    .search-submit { padding: 0 13px; }
    .categories { justify-content: flex-start; flex-wrap: nowrap; margin: 0 -12px 16px; padding: 0 12px 4px; overflow-x: auto; }
    .categories button { flex: 0 0 auto; padding: 8px 12px; font-size: .78rem; }
    .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 0; }
    .product-card { border-radius: 12px; box-shadow: 0 3px 12px rgba(16,42,42,.07); }
    .product-image-container { aspect-ratio: 1 / 1; }
    .product-info { padding: 10px; }
    .product-category { font-size: .66rem; }
    .product-card h3 { margin: 7px 0 2px; font-size: .88rem; line-height: 1.25; }
    .product-price { font-size: .98rem; }
    .product-card .add-to-cart-button, .save-to-list-button { min-height: 40px; padding: 8px 6px; font-size: .78rem; }
}
/* Customer top actions and mobile tab sidebar */
.customer-top-actions { position: absolute; top: 18px; right: clamp(20px, 6vw, 82px); display: flex; align-items: center; gap: 8px; z-index: 2; }
.customer-top-actions > a { padding: 8px 12px; border-radius: 999px; color: #fff; font-size: .9rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.customer-top-actions > a:hover { background: rgba(255,255,255,.12); }
.customer-menu-toggle, .customer-sidebar-close { display: none; }
@media (max-width: 700px) {
    header { padding-right: 150px; }
    .customer-top-actions { top: 12px; right: 12px; gap: 5px; }
    .customer-top-actions > a { padding: 7px 8px; font-size: .76rem; }
    .customer-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 1px solid rgba(255,255,255,.45); border-radius: 10px; color: #fff; background: transparent; font-size: 1.25rem; cursor: pointer; }
    .customer-menu-toggle:hover { background: rgba(255,255,255,.12); }
    nav#customer-sidebar { position: fixed; top: 0; left: 0; bottom: 0; z-index: 1200; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; width: min(86vw, 340px); height: 100vh; margin: 0; padding: 72px 14px 24px; overflow-y: auto; background: var(--surface); box-shadow: 12px 0 34px rgba(0,0,0,.2); transform: translateX(-105%); transition: transform .22s ease; }
    body.customer-sidebar-open::after { content: ""; position: fixed; inset: 0; z-index: 1190; background: var(--canvas); }
    body.customer-sidebar-open > main, body.customer-sidebar-open > footer { visibility: hidden; }
    body.customer-sidebar-open nav#customer-sidebar { transform: translateX(0); }
    nav#customer-sidebar > a, nav#customer-sidebar > button, nav#customer-sidebar .theme-toggle { flex: 0 0 auto; width: 100%; min-height: 48px; box-sizing: border-box; padding: 13px 14px; border-radius: 9px; text-align: left; }
    nav#customer-sidebar > a { color: var(--ink); }
    nav#customer-sidebar > a:hover, nav#customer-sidebar > a:focus-visible { background: #e8f2f1; }
    nav#customer-sidebar .customer-sidebar-close { display: block; position: absolute; top: 17px; right: 16px; width: auto; min-height: 0; padding: 2px 8px; border: 0; color: var(--ink); background: transparent; font-size: 1.9rem; line-height: 1; text-align: center; cursor: pointer; }
    nav#customer-sidebar .customer-categories-toggle { color: var(--ink); background: transparent; }
    body.dark-mode nav#customer-sidebar > a:hover, body.dark-mode nav#customer-sidebar > a:focus-visible { background: #244143; }
}
/* Keep the customer theme control available inside the mobile sidebar. */
@media (max-width: 700px) { nav#customer-sidebar .theme-toggle { display: block !important; color: var(--ink); background: transparent; } }
/* Keep the customer controls available while scrolling on mobile. */
@media (max-width: 700px) { header { position: sticky; top: 0; z-index: 1100; } }
/* Mobile header spacing: keep brand, menu, cart, and account from colliding */
@media (max-width: 700px) {
    header { grid-template-columns: 44px minmax(0, 1fr) auto; padding: 10px 8px 10px 50px; column-gap: 8px; }
    header .catalog-logo { width: 44px; height: 44px; margin-left: 0; }
    header h1 { grid-column: 2; min-width: 0; overflow: hidden; white-space: nowrap; font-size: .98rem; }
    header p { grid-column: 2; min-width: 0; overflow: hidden; white-space: nowrap; font-size: .68rem; }
    .customer-top-actions { position: static; grid-column: 3; grid-row: 1 / span 2; gap: 3px; }
    .customer-top-actions > a { padding: 6px 5px; font-size: .7rem; }
    .customer-top-actions .customer-auth-button { padding: 6px 7px; font-size: .7rem; }
    .customer-menu-toggle { position: absolute; left: 9px; top: 13px; width: 32px; height: 32px; font-size: 1rem; }
}
/* Branded default customer landing */
.welcome-eyebrow { margin: 0 0 12px; color: #b9e7dc; font-size: .78rem; font-weight: 800; letter-spacing: .14em; }
.welcome-trust-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; max-width: 620px; margin: 24px 0 18px; }
.welcome-trust-points span, .welcome-trust-points a { display: block; padding: 11px 13px; border: 1px solid rgba(255,255,255,.22); border-radius: 10px; color: #f0fbf8; background: rgba(0,0,0,.16); text-decoration: none; } .welcome-trust-points a:hover { background: rgba(255,255,255,.14); }
.welcome-menu-hint { margin-top: 16px !important; color: #d7eeea !important; font-size: .92rem !important; }
@media (max-width: 700px) {
    .welcome-section { display: block; min-height: calc(100vh - 120px); margin: 0; padding: 44px 22px; border-radius: 0; text-align: left; background-position: 68% center; }
    .welcome-section h2 { max-width: 300px; font-size: 2.15rem; }
    .welcome-section p { font-size: .96rem; }
    .welcome-trust-points { grid-template-columns: 1fr; gap: 8px; margin-top: 22px; }
    .welcome-trust-points span { font-size: .88rem; }
}

/* Final category visibility state */
.products-section > .categories { display: none !important; }
body.categories-drawer-open .products-section > .categories { display: flex !important; }
/* Product details view */
.product-card h3[role="button"] { cursor: pointer; }
.product-card h3[role="button"]:focus-visible { outline: 3px solid #f5b400; outline-offset: 3px; border-radius: 4px; }
.product-details-modal { position: fixed; inset: 0; z-index: 1600; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(5, 22, 23, .68); }
.product-details-modal.is-open { display: flex; }
.product-details-dialog { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); width: min(980px, 96vw); max-height: min(760px, 92vh); overflow-y: auto; border-radius: 22px; background: var(--surface, #fff); color: var(--ink, #102526); box-shadow: 0 24px 70px rgba(0,0,0,.3); }
.product-details-close { position: absolute; top: 12px; right: 16px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; color: var(--ink, #102526); background: rgba(255,255,255,.88); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.product-details-gallery { padding: 24px; background: #eef6f5; }
.product-details-main-image { width: 100%; max-height: 500px; aspect-ratio: 1 / .9; object-fit: contain; border-radius: 14px; background: #fff; }
.product-details-thumbnails { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; }
.product-details-thumb { flex: 0 0 64px; width: 64px; height: 64px; padding: 3px; border: 2px solid transparent; border-radius: 9px; background: #fff; cursor: pointer; }
.product-details-thumb.is-active { border-color: var(--brand, #0f3d3e); }
.product-details-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 5px; }
.product-details-content { display: flex; flex-direction: column; justify-content: center; padding: 46px 38px 36px; }
.product-details-content h2 { margin: 12px 0 8px; color: var(--ink, #102526); font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.2; }
.product-details-price { margin: 0 0 18px; color: var(--brand, #0f3d3e); font-size: 1.55rem; font-weight: 800; }
.product-details-description { margin: 0 0 22px; color: var(--muted, #5e7171); line-height: 1.65; white-space: pre-line; }
.product-details-content .product-colour-label { margin-bottom: 16px; }
.product-details-add, .product-details-save { margin-top: 10px; }
body.product-details-open { overflow: hidden; }
body.dark-mode .product-details-dialog { background: #1b2a2d; color: #e6f0ef; }
body.dark-mode .product-details-content h2 { color: #f0f8f7; }
body.dark-mode .product-details-description { color: #b7c9c7; }
body.dark-mode .product-details-gallery { background: #142123; }
body.dark-mode .product-details-main-image, body.dark-mode .product-details-thumb { background: #203638; }
@media (max-width: 700px) {
    .product-details-modal { align-items: flex-end; padding: 0; }
    .product-details-dialog { grid-template-columns: 1fr; width: 100%; max-height: 94vh; border-radius: 20px 20px 0 0; }
    .product-details-gallery { padding: 16px 16px 10px; }
    .product-details-main-image { max-height: 42vh; aspect-ratio: 1 / .78; }
    .product-details-content { padding: 22px 20px 28px; }
    .product-details-content h2 { font-size: 1.45rem; }
    .product-details-price { font-size: 1.3rem; }
}
/* High-visibility customer navigation controls */
.customer-top-actions > a[href="#cart"] { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 13px; border: 2px solid #f5b400; border-radius: 999px; color: #102526; background: #f5b400; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.customer-top-actions > a[href="#cart"]:hover, .customer-top-actions > a[href="#cart"]:focus-visible { color: #102526; background: #ffd45b; }
.customer-top-actions .customer-auth-button { min-height: 44px; padding: 9px 14px; border: 2px solid #fff; border-radius: 999px; color: #fff; background: #0f3d3e; font-weight: 800; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.customer-top-actions .customer-auth-button:hover, .customer-top-actions .customer-auth-button:focus-visible { color: #102526; background: #fff; }
.customer-menu-toggle { box-shadow: 0 4px 12px rgba(0,0,0,.2); }
@media (max-width: 700px) {
    .customer-top-actions { gap: 6px; }
    .customer-top-actions > a[href="#cart"] { min-height: 42px; padding: 8px 10px; font-size: .78rem; }
    .customer-top-actions .customer-auth-button { min-height: 42px; padding: 8px 10px; font-size: .78rem; }
    .customer-menu-toggle { width: 42px; height: 42px; border: 2px solid #f5b400; color: #102526; background: #f5b400; font-size: 1.25rem; }
    .customer-menu-toggle:hover, .customer-menu-toggle:focus-visible { color: #102526; background: #ffd45b; }
}
/* Customer dashboard landing content */
.dashboard-promos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 760px; margin: 22px 0 12px; }
.dashboard-promos span { padding: 12px 14px; border: 1px solid rgba(255,255,255,.25); border-radius: 12px; color: #f0fbf8; background: rgba(0,0,0,.16); font-size: .9rem; }
.customer-dashboard-toggle { color: var(--ink); background: transparent; }
.customer-dashboard-toggle:hover, .customer-dashboard-toggle:focus-visible { background: #e8f2f1; }
body.dark-mode .customer-dashboard-toggle:hover, body.dark-mode .customer-dashboard-toggle:focus-visible { background: #244143; }
@media (max-width: 700px) { .dashboard-promos { grid-template-columns: 1fr; gap: 8px; margin-top: 18px; } .dashboard-promos span { font-size: .84rem; } }
.dashboard-reviews { margin: 24px 0 12px; max-width: 900px; padding: 18px; border: 1px solid rgba(255,255,255,.25); border-radius: 16px; background: rgba(0,0,0,.14); }
.dashboard-reviews-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.dashboard-reviews-heading .welcome-eyebrow { margin-bottom: 2px; }
.dashboard-reviews-heading h3 { color: #fff; font-size: 1.25rem; }
.dashboard-reviews-heading a { color: #fff; font-weight: 800; text-decoration: underline; white-space: nowrap; }
.dashboard-rating-summary { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; color: #e8f8f4; }
.dashboard-rating-summary strong { font-size: 1.25rem; }
.dashboard-review-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dashboard-review-card { padding: 13px; border-radius: 12px; background: rgba(255,255,255,.95); color: #173c3b; }
.dashboard-review-card p { margin: 6px 0 8px; font-size: .9rem; line-height: 1.45; }
.dashboard-review-card strong, .dashboard-review-card small { display: block; }
.dashboard-review-card small { margin-top: 2px; color: #6c7e7e; }
.dashboard-review-stars { color: #d88a00; letter-spacing: .08em; }
.dashboard-reviews-empty, .dashboard-reviews-loading { color: #e8f8f4; }
body.dark-mode .dashboard-review-card { background: #203638; color: #e6f0ef; }
body.dark-mode .dashboard-review-card small { color: #b7c9c7; }
@media (max-width: 700px) { .dashboard-reviews { padding: 14px; } .dashboard-review-list { grid-template-columns: 1fr; } .dashboard-reviews-heading { align-items: start; flex-direction: column; } }
/* Desktop customer navigation uses the same menu drawer as mobile. */
@media (min-width: 701px) {
    .customer-menu-toggle { display: inline-flex; position: absolute; left: 24px; top: 24px; align-items: center; justify-content: center; width: 46px; height: 46px; border: 2px solid #f5b400; border-radius: 12px; color: #102526; background: #f5b400; font-size: 1.35rem; cursor: pointer; z-index: 3; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
    .customer-menu-toggle:hover, .customer-menu-toggle:focus-visible { background: #ffd45b; }
    nav#customer-sidebar { position: fixed; top: 0; left: 0; bottom: 0; z-index: 1200; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; width: min(340px, 88vw); height: 100vh; margin: 0; padding: 76px 16px 24px; overflow-y: auto; background: var(--surface); box-shadow: 12px 0 34px rgba(0,0,0,.2); transform: translateX(-105%); transition: transform .22s ease; }
    body.customer-sidebar-open nav#customer-sidebar { transform: translateX(0); }
    body.customer-sidebar-open::after { content: ""; position: fixed; inset: 0; z-index: 1190; background: rgba(9,24,25,.42); }
    body.customer-sidebar-open > main, body.customer-sidebar-open > footer { visibility: hidden; }
    nav#customer-sidebar > a, nav#customer-sidebar > button, nav#customer-sidebar .theme-toggle { flex: 0 0 auto; width: 100%; min-height: 50px; box-sizing: border-box; padding: 13px 14px; border-radius: 9px; text-align: left; }
    nav#customer-sidebar > a { color: var(--ink); }
    nav#customer-sidebar > a:hover, nav#customer-sidebar > a:focus-visible, nav#customer-sidebar > button:hover, nav#customer-sidebar > button:focus-visible { background: #e8f2f1; }
    nav#customer-sidebar .customer-sidebar-close { display: block; position: absolute; top: 17px; right: 16px; width: auto; min-height: 0; padding: 2px 8px; border: 0; color: var(--ink); background: transparent; font-size: 1.9rem; line-height: 1; cursor: pointer; }
    nav#customer-sidebar .customer-categories-toggle, nav#customer-sidebar .customer-dashboard-toggle { color: var(--ink); background: transparent; }
    body.dark-mode nav#customer-sidebar > a:hover, body.dark-mode nav#customer-sidebar > a:focus-visible, body.dark-mode nav#customer-sidebar > button:hover, body.dark-mode nav#customer-sidebar > button:focus-visible { background: #244143; }
}/* Product details dark-mode contrast */
body.dark-mode .product-details-content { color: #e6f0ef; }
body.dark-mode .product-details-price { color: #8ed2c5; }
body.dark-mode .product-details-content .product-colour-label { color: #e6f0ef; }
body.dark-mode .product-details-colour-select { color: #f0f8f7; background: #203638; border-color: #55706e; }
body.dark-mode .product-details-add { color: #102526; background: #8ed2c5; }
body.dark-mode .product-details-add:hover { color: #102526; background: #b4e8dd; }
body.dark-mode .product-details-save { color: #b7e4dc; background: #203638; border-color: #55706e; }
body.dark-mode .product-details-save:hover { color: #102526; background: #8ed2c5; border-color: #8ed2c5; }
body.dark-mode .product-details-close { color: #102526; background: #e6f0ef; }
/* Keep the mobile menu separate from Cart and Account */
@media (max-width: 700px) {
    header { position: sticky; }
    .customer-menu-toggle {
        position: absolute !important;
        left: 9px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 5;
    }
    .customer-top-actions {
        right: 8px;
        gap: 5px;
        max-width: calc(100% - 62px);
    }
}
@media (max-width: 430px) {
    .customer-top-actions > a[href="#cart"] { min-height: 38px; padding: 6px 7px; font-size: .7rem; }
    .customer-top-actions .customer-auth-button { min-height: 38px; padding: 6px 8px; font-size: .7rem; }
}
/* The menu lives inside the top action group; keep it in flow on desktop. */
@media (min-width: 701px) {
    .customer-top-actions .customer-menu-toggle {
        position: static !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        order: -1;
        flex: 0 0 auto;
    }
}
