
:root{

    --theme-primary:#c9a96e;
    --theme-primary-hover:#d8b97e;
    --theme-header:#111111;
    --theme-background:#ffffff;
    --theme-text:#f8fafc;

}

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


html {
    scroll-behavior: smooth;
}


body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--theme-background);
    color: var(--theme-text);
}


button,
input {
    font: inherit;
}


button,
a {
    -webkit-tap-highlight-color: transparent;
}


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

.store-header {
    background: var(--theme-header);
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
}


.header-inner {

    max-width: 1400px;

    margin: 0 auto;

    padding: 14px 28px;

    min-height: 72px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 24px;

}

.store-logo {

    flex-shrink: 0;

    color: #fff;

    text-decoration: none;

    font-size: 26px;

    font-weight: 800;

    letter-spacing: 2px;

}


.store-nav {

    display: flex;

    align-items: center;

    gap: 18px;

    margin-left: auto;

}

#languageSelector {

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    min-width: 120px;

    padding: 8px 36px 8px 12px;

    border: 1px solid #4a4f57;
    border-radius: 8px;

    background-color: #2b2f36;
    color: #ffffff;

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

    cursor: pointer;

    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");

    background-repeat: no-repeat;
    background-position: right 12px center;

}

#languageSelector:hover {

    border-color: #6d737c;

    background-color: #353a42;

}

#languageSelector:focus {

    outline: none;

    border-color: #6ea8fe;

    box-shadow: 0 0 0 3px rgba(110, 168, 254, 0.25);

}

#languageSelector option {

    background: #2b2f36;

    color: #ffffff;

}


.store-nav a {
    color: #dddddd;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}


.store-nav a:hover {
    color: white;
}


.cart-button {

    display: flex;

    align-items: center;

    gap: 8px;

    border: 1px solid rgba(255,255,255,.15);

    background: rgba(255,255,255,.05);

    color: white;

    padding: 10px 16px;

    border-radius: 999px;

    cursor: pointer;

    transition: .25s;

}

.cart-button:hover{

    background:rgba(255,255,255,.12);

}


#cartCount{

    min-width:22px;

    height:22px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:50%;

    background:var(--theme-primary);

    color:#111;

    font-size:12px;

    font-weight:700;

}

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

.header-top{

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:16px;

}

.header-bottom{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-top:14px;

}

.mobile-menu-button{

    display:none;

    width:42px;

    height:42px;

    border:none;

    background:transparent;

    color:#fff;

    font-size:28px;

    cursor:pointer;

}

.customer-session-nav{

    display:flex;

    align-items:center;

    gap:12px;

}


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

.hero-section {

    position: relative;

    min-height: 520px;

    display: flex;

    align-items: center;

    overflow: hidden;

    background:
        linear-gradient(
            110deg,
            rgba(0,0,0,.80),
            rgba(0,0,0,.45)
        ),
        url("/images/hero-banner.jpg");

    background-size: cover;

    background-position: center;

}


.hero-content{

    width:100%;

    max-width:1400px;

    margin:auto;

    padding:90px 30px;

}


.hero-label{

    display:inline-block;

    padding:8px 18px;

    margin-bottom:22px;

    border-radius:999px;

    background:rgba(255,255,255,.10);

    color:var(--theme-primary);

    letter-spacing:2px;

    font-size:13px;

    font-weight:700;

}

.hero-content h1{

    max-width:720px;

    font-size:clamp(46px,6vw,82px);

    line-height:1.05;

    margin-bottom:24px;

    font-weight:800;

}


.hero-description{

    max-width:560px;

    color:rgba(255,255,255,.88);

    font-size:20px;

    line-height:1.8;

    margin-bottom:36px;

}


.shop-now-button{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:16px 34px;

    border-radius:999px;

    background:var(--theme-primary);

    color:#111;

    font-weight:700;

    text-decoration:none;

    transition:.25s;

}

.shop-now-button:hover{

    transform:translateY(-3px);

    background:var(--theme-primary-hover);

}


.shop-now-button:hover {
    transform: translateY(-2px);
    background: var(--theme-primary-hover);
}


/* =========================
   CATALOG
========================= */

.store-main {
    min-height: calc(100vh - 150px);
}


.catalog-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 70px 30px 100px;
}


.catalog-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}


.section-label {
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--theme-primary);
    margin-bottom: 8px;
}


.catalog-header h2 {
    font-size: 36px;
}


.search-wrapper input {
    width: 280px;
    padding: 13px 16px;

    border: 1px solid #d4d4d4;
    border-radius: 6px;

    background:var(--theme-background);

    outline: none;
}


.search-wrapper input:focus {
    border-color: #888888;
}


/* =========================
   CATEGORY FILTERS
========================= */

.category-filters {
    display: flex;
    gap: 10px;

    overflow-x: auto;

    padding-bottom: 12px;
    margin-bottom: 30px;
}


.category-button {
    border: 1px solid #cccccc;
    background:var(--theme-background);

    padding: 10px 18px;

    border-radius: 50px;

    cursor: pointer;

    white-space: nowrap;

    transition: all 0.2s;
}


.category-button:hover {
    border-color:var(--theme-header);
}


.category-button.active {
    background: var(--theme-header);
    color: white;
    border-color:var(--theme-header);
}


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

.products-grid {
    display: grid;

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

    gap: 24px;
}


.product-card {
    background:var(--theme-background);
    border-radius: 10px;
    overflow: hidden;

    box-shadow:
        0 2px 15px rgba(0, 0, 0, 0.05);

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


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

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.09);
}


.product-image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;

    background:color-mix(in srgb, var(--theme-header) 8%, white);

    overflow: hidden;
}


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

    object-fit: cover;

    display: block;

    transition: transform 0.3s;
}


.product-card:hover .product-image {
    transform: scale(1.03);
}


.product-info {
    padding: 20px;
}


.product-category {
    min-height: 16px;

    color:var(--theme-primary);

    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;

    margin-bottom: 8px;
}


.product-name {
    font-size: 18px;
    margin-bottom: 22px;

    min-height: 44px;
}


.product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}


.product-price {
    font-size: 18px;
    font-weight: bold;
}


.add-cart-button {
    border: none;

    background: var(--theme-header);
    color: white;

    padding: 10px 14px;

    border-radius: 5px;

    cursor: pointer;

    transition:
        background 0.2s,
        transform 0.2s;
}


.add-cart-button:hover {
    background:var(--theme-primary-hover);
    transform: translateY(-1px);
}


/* =========================
   MESSAGES
========================= */

.loading-message,
.error-message,
.empty-message {
    grid-column: 1 / -1;

    padding: 60px 20px;

    text-align: center;

    color: #777777;
}


.error-message {
    color: #b00020;
}


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

.store-footer {
    background: var(--theme-header);
    color: #999999;

    text-align: center;

    padding: 30px 20px;

    font-size: 14px;
}

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

.mobile-menu-button {

    display: none;

    width: 42px;
    height: 42px;

    border: none;
    border-radius: 8px;

    background: transparent;

    color: white;

    font-size: 28px;

    cursor: pointer;

}

.mobile-menu {

    display: none;

}


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

@media (max-width: 1050px) {

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

}


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

@media (max-width: 760px) {

    .mobile-menu-button {

    display: flex;

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

}

.mobile-menu {

    display: none;

    flex-direction: column;

    background: #111;

}

.mobile-menu.open {

    display: flex;

}

.mobile-menu a {

    padding: 16px 20px;

    color: white;

    text-decoration: none;

    border-top: 1px solid rgba(255,255,255,.08);

}

    .header-inner{

    padding:14px 16px;

    flex-wrap:wrap;

    gap:14px;

}


    .store-logo{

    font-size:20px;

}


    .store-nav{

    width:100%;

    justify-content:space-between;

    flex-wrap:wrap;

    gap:10px;

}


    .store-nav > a {
        display: none;
    }


    .hero-section{

    min-height:300px;

}


    .hero-content{

    padding:60px 20px;

}

    .hero-content h1{

    font-size:36px;

}

.hero-description{

    font-size:16px;

    line-height:1.6;

}


    .catalog-section {
        padding:
            50px 18px
            70px;
    }


    .catalog-header {
        align-items: stretch;
        flex-direction: column;
    }


    .catalog-header h2 {
        font-size: 30px;
    }


    .search-wrapper input {
        width: 100%;
    }


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

        gap: 12px;
    }


    .product-info {
        padding: 14px;
    }


    .product-name {
        font-size: 15px;
        min-height: 38px;
    }


    .product-bottom {
        align-items: stretch;
        flex-direction: column;
    }


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

}


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

@media (max-width: 420px) {

    .products-grid {
        grid-template-columns: 1fr;
    }

}

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

.cart-overlay {
    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, 0.55);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.25s,
        visibility 0.25s;

    z-index: 200;
}


.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}


.cart-drawer {
    position: fixed;

    top: 133px;
    right: 0;

    width: min(320px, 100%);
    height: 86vh;

    background: white;

    z-index: 201;

    display: flex;
    flex-direction: column;

    transform: translateX(100%);

    transition: transform 0.3s ease;

    box-shadow:
        -10px 0 30px rgba(0, 0, 0, 0.15);
}


.cart-drawer.open {
    transform: translateX(0);
}


.cart-header {
    min-height: 72px;

    padding: 0 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid #eeeeee;
}


.cart-header h2 {
    font-size: 22px;
}


.close-cart-button {
    width: 40px;
    height: 40px;

    border: none;
    background: transparent;

    font-size: 32px;
    line-height: 1;

    cursor: pointer;
}


.cart-items {
    flex: 1;

    overflow-y: auto;

    padding: 20px;
}


.cart-empty-message {
    text-align: center;

    color: #777777;

    padding: 60px 20px;
}


.cart-footer {
    padding: 20px;

    border-top: 1px solid #eeeeee;

    background: white;
}


.cart-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 18px;

    font-size: 18px;
}


.cart-total-row strong {
    font-size: 22px;
}


.checkout-button {
    width: 100%;

    padding: 15px;

    border: none;
    border-radius: 6px;

    background: var(--theme-header);
    color: white;

    font-weight: bold;

    cursor: pointer;
}


.checkout-button:disabled {
    background: #cccccc;
    cursor: not-allowed;
}


body.cart-open {
    overflow: hidden;
}

.cart-item {
    display: grid;

    grid-template-columns:
        90px 1fr;

    gap: 16px;

    padding: 16px 0;

    border-bottom:
        1px solid #eeeeee;
}


.cart-item-image {
    width: 90px;
    height: 90px;

    background: #eeeeee;

    border-radius: 6px;

    overflow: hidden;
}


.cart-item-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


.cart-item-details h3 {
    font-size: 16px;

    margin-bottom: 7px;
}


.cart-item-price {
    font-weight: bold;

    margin-bottom: 12px;
}


.quantity-controls {
    display: inline-flex;

    align-items: center;

    border:
        1px solid #dddddd;

    border-radius: 5px;

    overflow: hidden;
}


.quantity-controls button {
    width: 34px;
    height: 32px;

    border: none;

    background: #f4f4f4;

    cursor: pointer;
}


.quantity-controls span {
    min-width: 38px;

    text-align: center;

    font-size: 14px;
}


.remove-cart-item {
    display: block;

    margin-top: 10px;

    padding: 0;

    border: none;

    background: transparent;

    color: #a00000;

    font-size: 13px;

    cursor: pointer;
}

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

.checkout-page {
    max-width: 1200px;
    margin: 0 auto;

    padding: 70px 30px 100px;
}


.checkout-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1.4fr)
        minmax(320px, 0.8fr);

    gap: 60px;

    align-items: start;
}


.checkout-form-section h1 {
    font-size: 38px;

    margin-bottom: 35px;
}


.form-group {
    margin-bottom: 22px;
}


.form-group label {
    display: block;

    margin-bottom: 8px;

    font-size: 14px;
    font-weight: bold;
}


.form-group input,
.form-group textarea {
    width: 100%;

    padding: 14px 15px;

    border:
        1px solid #cccccc;

    border-radius: 6px;

    background: white;

    outline: none;
}


.form-group textarea {
    resize: vertical;
}


.form-group input:focus,
.form-group textarea:focus {
    border-color: #555555;
}


.place-order-button {
    width: 100%;

    margin-top: 10px;

    padding: 16px;

    border: none;
    border-radius: 6px;

    background: var(--theme-header);
    color: white;

    font-weight: bold;

    cursor: pointer;
}


.place-order-button:disabled {
    background: #999999;

    cursor: wait;
}


.checkout-error {
    min-height: 20px;

    margin-bottom: 10px;

    color: #b00020;

    font-size: 14px;
}


.order-summary {
    position: sticky;

    top: 100px;

    background: white;

    padding: 25px;

    border-radius: 10px;

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


.order-summary h2 {
    margin-bottom: 22px;
}


.checkout-summary-item {
    display: flex;

    justify-content: space-between;

    gap: 20px;

    padding: 13px 0;

    border-bottom:
        1px solid #eeeeee;
}


.checkout-summary-item-name {
    font-size: 14px;
}


.checkout-summary-item-price {
    white-space: nowrap;

    font-weight: bold;

    font-size: 14px;
}


.summary-total-row {
    display: flex;

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

    padding-top: 22px;

    font-size: 18px;
}


.summary-total-row strong {
    font-size: 22px;
}


.summary-note {
    margin-top: 14px;

    color: #777777;

    font-size: 12px;

    line-height: 1.5;
}


@media (max-width: 800px) {

    .checkout-page {
        padding:
            45px 18px
            70px;
    }


    .checkout-layout {
        grid-template-columns: 1fr;

        gap: 35px;
    }


    .order-summary {
        position: static;

        order: -1;
    }

}

/* =========================
   ORDER SUCCESS
========================= */

.order-success-page {
    min-height:
        calc(100vh - 72px);

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

    padding: 60px 20px;
}


.order-success-card {
    width: 100%;
    max-width: 620px;

    padding: 50px 40px;

    background: white;

    border-radius: 12px;

    text-align: center;

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

.success-payment-status {

    margin-top: 16px;

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 12px;

}

.payment-status-badge {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 110px;

    padding: 6px 12px;

    border-radius: 999px;

    font-size: 0.9rem;

    font-weight: 600;

}

.payment-status-loading {

    background: #f3f4f6;

    color: #6b7280;

}

.payment-status-unpaid {

    background: #fef3c7;

    color: #92400e;

}

.payment-status-pending {

    background: #dbeafe;

    color: #1d4ed8;

}

.payment-status-paid {

    background: #dcfce7;

    color: #166534;

}

.payment-status-failed {

    background: #fee2e2;

    color: #b91c1c;

}


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

    margin:
        0 auto
        25px;

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

    border-radius: 50%;

    background: var(--theme-header);
    color: white;

    font-size: 36px;
    font-weight: bold;
}


.order-success-card h1 {
    font-size: 36px;

    margin-bottom: 15px;
}


.success-description {
    color: #666666;

    margin-bottom: 30px;
}


.success-order-number {
    padding: 20px;

    background: #f5f5f3;

    border-radius: 8px;

    margin-bottom: 20px;
}


.success-order-number span {
    display: block;

    margin-bottom: 8px;

    color: #777777;

    font-size: 13px;
}


.success-order-number strong {
    font-size: 22px;

    word-break: break-all;
}


.success-note {
    color: #777777;

    font-size: 14px;
    line-height: 1.6;

    margin-bottom: 30px;
}


.success-actions {
    display: flex;

    justify-content: center;

    gap: 12px;
}


.success-primary-button,
.success-secondary-button {
    padding: 14px 22px;

    border-radius: 6px;

    text-decoration: none;

    font-weight: bold;
}


.success-primary-button {
    background: var(--theme-header);
    color: white;
}


.success-secondary-button {
    border:
        1px solid #cccccc;

    color: #111111;

    background: white;
}


@media (max-width: 550px) {

    .order-success-card {
        padding:
            40px 22px;
    }


    .order-success-card h1 {
        font-size: 29px;
    }


    .success-actions {
        flex-direction: column;
    }

}

/* =========================
   ORDER LOOKUP
========================= */

.lookup-page {
    max-width: 1000px;
    margin: 0 auto;

    padding: 70px 30px 100px;
}


.lookup-search-card {
    max-width: 600px;

    margin: 0 auto;

    padding: 35px;

    background: white;

    border-radius: 10px;

    box-shadow:
        0 4px 25px
        rgba(0, 0, 0, 0.06);
}


.lookup-search-card h1 {
    font-size: 36px;

    margin-bottom: 12px;
}


.lookup-description {
    color: #666666;

    line-height: 1.6;

    margin-bottom: 30px;
}


.lookup-result {
    margin-top: 45px;

    padding: 35px;

    background: white;

    border-radius: 10px;

    box-shadow:
        0 4px 25px
        rgba(0, 0, 0, 0.06);
}


.lookup-result-header {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 30px;

    padding-bottom: 25px;

    border-bottom:
        1px solid #eeeeee;
}


.lookup-result-header h2 {
    font-size: 25px;
}


.lookup-statuses {
    display: flex;

    gap: 25px;
}


.lookup-statuses div {
    min-width: 120px;
}


.lookup-statuses span,
.lookup-info-grid span {
    display: block;

    color: #777777;

    font-size: 12px;

    margin-bottom: 6px;
}


.lookup-statuses strong {
    font-size: 14px;
}


.lookup-info-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 25px;

    padding: 30px 0;

    border-bottom:
        1px solid #eeeeee;
}


.lookup-info-grid strong {
    line-height: 1.5;
}


.lookup-items-section {
    padding-top: 30px;
}


.lookup-items-section h3 {
    margin-bottom: 15px;
}


.lookup-item {
    display: grid;

    grid-template-columns:
        70px 1fr auto;

    gap: 15px;

    align-items: center;

    padding: 15px 0;

    border-bottom:
        1px solid #eeeeee;
}


.lookup-item-image {
    width: 70px;
    height: 70px;

    background: #eeeeee;

    border-radius: 6px;

    overflow: hidden;
}


.lookup-item-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


.lookup-item-info {
    display: flex;

    flex-direction: column;

    gap: 5px;
}


.lookup-item-info span {
    color: #777777;

    font-size: 13px;
}


.lookup-item-total {
    white-space: nowrap;
}


.payment-action-area {
    margin-top: 25px;

    padding: 20px;

    background: #f5f5f3;

    border-radius: 7px;

    text-align: center;
}


.payment-message {
    font-weight: bold;
}


@media (max-width: 650px) {

    .lookup-page {
        padding:
            45px 18px
            70px;
    }


    .lookup-search-card,
    .lookup-result {
        padding: 24px 20px;
    }


    .lookup-result-header {
        flex-direction: column;
    }


    .lookup-statuses {
        width: 100%;

        justify-content:
            space-between;
    }


    .lookup-info-grid {
        grid-template-columns: 1fr;
    }


    .lookup-item {
        grid-template-columns:
            60px 1fr;
    }


    .lookup-item-image {
        width: 60px;
        height: 60px;
    }


    .lookup-item-total {
        grid-column: 2;
    }

}

.product-card {
    cursor: pointer;
}


/* =========================
   PRODUCT DETAIL
========================= */

.product-detail-page {
    max-width: 1300px;
    margin: 0 auto;
    padding: 70px 30px 100px;
}


.product-detail-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1.1fr)
        minmax(350px, 0.9fr);

    gap: 65px;

    align-items: start;
}


.product-main-image {
    aspect-ratio: 1 / 1;

    background: white;

    border-radius: 10px;

    overflow: hidden;
}


.product-main-image img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;
}


.product-thumbnails {
    display: flex;

    gap: 12px;

    margin-top: 15px;

    overflow-x: auto;
}


.product-thumbnail {
    width: 80px;
    height: 80px;

    flex: 0 0 auto;

    padding: 0;

    border:
        2px solid transparent;

    border-radius: 6px;

    background: white;

    overflow: hidden;

    cursor: pointer;
}


.product-thumbnail.active {
    border-color: #111111;
}


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

    object-fit: cover;
}


.product-detail-info h1 {
    font-size:
        clamp(36px, 5vw, 58px);

    line-height: 1.05;

    margin-bottom: 20px;
}


.detail-price {
    font-size: 28px;

    font-weight: bold;

    margin-bottom: 28px;
}


.detail-description {
    color: #666666;

    line-height: 1.8;

    margin-bottom: 30px;
}


.product-specifications {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 20px;

    padding:
        25px 0;

    border-top:
        1px solid #dddddd;

    border-bottom:
        1px solid #dddddd;
}


.product-specifications span {
    display: block;

    color: #777777;

    font-size: 12px;

    margin-bottom: 6px;
}


.detail-stock {
    margin-top: 25px;

    font-weight: bold;
}


.detail-purchase-row {
    display: flex;

    gap: 15px;

    margin-top: 25px;
}


.detail-quantity {
    display: flex;

    align-items: center;

    border:
        1px solid #cccccc;

    border-radius: 6px;

    overflow: hidden;
}


.detail-quantity button {
    width: 45px;
    height: 50px;

    border: none;

    background: white;

    cursor: pointer;

    font-size: 20px;
}


.detail-quantity span {
    min-width: 45px;

    text-align: center;

    font-weight: bold;
}


.detail-add-cart-button {
    flex: 1;

    border: none;

    border-radius: 6px;

    background: var(--theme-header);
    color: white;

    font-weight: bold;

    cursor: pointer;
}


.detail-add-cart-button:disabled {
    background: #cccccc;

    cursor: not-allowed;
}


@media (max-width: 850px) {

    .product-detail-page {
        padding:
            40px 18px
            70px;
    }


    .product-detail-layout {
        grid-template-columns: 1fr;

        gap: 35px;
    }

}


@media (max-width: 500px) {

    .detail-purchase-row {
        flex-direction: column;
    }


    .detail-add-cart-button {
        min-height: 52px;
    }

}

/* =========================
   PAGINATION
========================= */

.pagination-controls {
    display: flex;

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

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 45px;
}


.pagination-controls button {
    min-width: 42px;
    height: 42px;

    padding: 0 13px;

    border:
        1px solid #cccccc;

    border-radius: 6px;

    background:var(--theme-background);

    cursor: pointer;
}


.pagination-controls button:hover:not(:disabled) {
    border-color: #111111;
}


.pagination-controls button.active {
    background: var(--theme-header);
    color: white;

    border-color: #111111;
}


.pagination-controls button:disabled {
    opacity: 0.4;

    cursor: not-allowed;
}

/* =========================
   AGE GATE
========================= */

body.age-gate-open {
    overflow: hidden;
}


.age-gate-overlay {
    position: fixed;
    inset: 0;

    z-index: 9999;

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

    padding: 20px;

    background:
        rgba(0, 0, 0, 0.92);
}


.age-gate-card {
    width: 100%;
    max-width: 520px;

    padding: 45px 38px;

    background: white;

    border-radius: 12px;

    text-align: center;

    box-shadow:
        0 20px 60px
        rgba(0, 0, 0, 0.35);
}


.age-gate-label {
    margin-bottom: 15px;

    color: var(--theme-primary);

    font-size: 12px;
    font-weight: bold;

    letter-spacing: 2px;
}


.age-gate-card h1 {
    margin-bottom: 18px;

    font-size: 42px;
}


.age-gate-description {
    max-width: 420px;

    margin:
        0 auto
        30px;

    color: #666666;

    line-height: 1.7;
}


.age-gate-actions {
    display: flex;
    flex-direction: column;

    gap: 10px;
}


.age-confirm-button,
.age-reject-button {
    width: 100%;

    padding: 15px;

    border-radius: 6px;

    font-weight: bold;

    cursor: pointer;
}


.age-confirm-button {
    border: none;

    background: var(--theme-header);
    color: white;
}


.age-reject-button {
    border:
        1px solid #cccccc;

    background: white;
    color: #111111;
}


.age-gate-message {
    min-height: 20px;

    margin-top: 15px;

    color: #b00020;

    font-size: 14px;
}


@media (max-width: 550px) {

    .age-gate-card {
        padding:
            35px 22px;
    }


    .age-gate-card h1 {
        font-size: 34px;
    }

}

.customer-session-nav {
    display: flex;
    align-items: center;
    gap: 14px;
}


.customer-session-nav a {
    color: inherit;
    text-decoration: none;
}


.customer-session-nav button {
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    padding-top: 20px;
}

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

#voucherSection {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e5e5e5;
}


#voucherSection h3 {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
}


#voucherSelect {
    width: 100%;
    height: 42px;
    padding: 0 12px;

    border: 1px solid #d4d4d4;
    border-radius: 6px;

    background: #ffffff;

    font-size: 14px;
    cursor: pointer;
}


#voucherSelect:focus {
    outline: none;
    border-color: #111111;
}


#applyVoucherButton {
    width: 100%;
    height: 42px;

    margin-top: 10px;

    border: 1px solid #111111;
    border-radius: 6px;

    background: #ffffff;
    color: #111111;

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

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


#applyVoucherButton:hover {
    background: var(--theme-header);
    color: #ffffff;
}


#voucherMessage {
    min-height: 20px;
    margin-top: 9px;

    font-size: 13px;
    line-height: 1.4;
}


#discountRow {
    align-items: center;
    justify-content: space-between;

    margin-top: 14px;
    padding-top: 14px;

    border-top: 1px dashed #d4d4d4;

    font-size: 14px;
}


#checkoutDiscount {
    font-weight: 700;
}


.order-summary .summary-total-row {
    margin-top: 14px;
}

.product-view-controls {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 16px;
}

.view-toggle-button {
    padding: 9px 14px;
    border: 1px solid #d8d8d8;
    background: #ffffff;
    color: #555555;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.view-toggle-button:hover {
    border-color:var(--theme-header);
    color:var(--theme-header);
}

.view-toggle-button.active {
    background:var(--theme-header);
    border-color:var(--theme-header);
    color: #ffffff;
}

.products-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.products-list .product-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
}

.products-list .product-image-wrapper {
    width: 220px;
    min-width: 220px;
    height: 220px;
}

.products-list .product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.products-list .product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
}

.products-list .product-bottom {
    margin-top: auto;
}

@media (max-width: 600px) {

    .products-list .product-image-wrapper {
        width: 140px;
        min-width: 140px;
        height: 160px;
    }

    .products-list .product-info {
        padding: 16px;
    }

    .products-list .product-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

.auth-link-row {
    display: flex;
    justify-content: flex-end;
    margin: -10px 0 18px;
}

.auth-link-row a {
    font-size: 14px;
    text-decoration: none;
}

.auth-link-row a:hover {
    text-decoration: underline;
}

html,
body{
    width:100%;
    overflow-x:hidden;
}