:root {
    --background: #f5f2eb;
    --surface: #ffffff;
    --surface-muted: #ebe6dc;
    --text: #25241f;
    --text-muted: #69665d;
    --border: #d9d3c7;
    --accent: #5f6d58;
    --accent-dark: #414d3c;
    --accent-light: #dde4d9;
    --warm: #b17958;
    --danger: #a84337;
    --success: #4d7256;
    --shadow: 0 24px 70px rgba(37, 36, 31, 0.14);
    --small-shadow: 0 12px 34px rgba(37, 36, 31, 0.09);
    --radius-small: 8px;
    --radius-medium: 16px;
    --radius-large: 28px;
    --container: 1240px;
    --transition: 180ms ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--background);
    color: var(--text);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

button,
input,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.hidden {
    display: none !important;
}

.announcement-bar {
    background: var(--text);
    color: #ffffff;
    padding: 8px 20px;
    text-align: center;
}

.announcement-bar p {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    border-bottom: 1px solid rgba(217, 211, 199, 0.8);
    background: rgba(245, 242, 235, 0.94);
    backdrop-filter: blur(18px);
}

.header-container {
    align-items: center;
    display: grid;
    gap: 30px;
    grid-template-columns: 220px minmax(0, 1fr) auto;
    margin: 0 auto;
    max-width: var(--container);
    height: 78px;
    padding: 0 28px;
}

.logo {
    align-items: center;
    display: inline-flex;
    gap: 12px;
    height: 78px;
    overflow: hidden;
    min-width: 0;
    width: 220px;
}

.site-header .logo {
    height: 100%;
    max-width: 100%;
    overflow: visible;
    width: 100%;
}

/* Keep the intrinsic logo ratio and let narrow navbar columns shrink. */
.navbar-logo {
    display: block;
    flex: 0 1 auto;
    height: auto;
    max-height: 64px;
    max-width: 100%;
    object-fit: contain;
    width: 164px;
}

.brand-logo {
    display: block;
    height: 54px;
    max-height: 54px;
    max-width: 180px;
    object-fit: contain;
    width: auto;
}

.logo-mark {
    align-items: center;
    background: var(--text);
    border-radius: 50%;
    color: #ffffff;
    display: inline-flex;
    font-family: Georgia, serif;
    font-size: 15px;
    height: 42px;
    justify-content: center;
    letter-spacing: 0.08em;
    width: 42px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.05;
}

.logo-text small {
    color: var(--text-muted);
    font-family: Inter, sans-serif;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.18em;
    margin-top: 5px;
    text-transform: uppercase;
}

.main-navigation {
    align-items: center;
    display: flex;
    gap: 30px;
    height: 100%;
    justify-content: center;
    min-width: 0;
}

.main-navigation a {
    font-size: 14px;
    font-weight: 650;
    position: relative;
}

.main-navigation a::after {
    background: var(--accent);
    bottom: -6px;
    content: "";
    height: 2px;
    left: 0;
    position: absolute;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
    width: 100%;
}

.main-navigation a:hover::after {
    transform: scaleX(1);
}

.header-actions {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-self: end;
}

.icon-button,
.cart-button,
.mobile-menu-button,
.close-button,
.modal-close-button {
    background: transparent;
    border: 0;
    cursor: pointer;
}

.icon-button {
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: inline-flex;
    font-size: 24px;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.cart-button {
    align-items: center;
    background: var(--text);
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    gap: 10px;
    padding: 11px 14px 11px 18px;
}

.cart-count {
    align-items: center;
    background: #ffffff;
    border-radius: 50%;
    color: var(--text);
    display: inline-flex;
    font-size: 11px;
    height: 22px;
    justify-content: center;
    min-width: 22px;
    padding: 0 5px;
}

.mobile-menu-button {
    display: none;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-button span {
    background: var(--text);
    display: block;
    height: 2px;
    width: 24px;
}

.search-panel {
    background: var(--surface);
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    transition: grid-template-rows 240ms ease;
}

.search-panel.open {
    grid-template-rows: 1fr;
}

.search-panel-inner {
    align-items: center;
    display: flex;
    gap: 16px;
    margin: 0 auto;
    max-width: var(--container);
    min-height: 0;
    overflow: hidden;
    padding: 0 28px;
    width: 100%;
}

.search-panel.open .search-panel-inner {
    padding-bottom: 20px;
    padding-top: 20px;
}

.search-panel input {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 999px;
    flex: 1;
    outline: none;
    padding: 14px 18px;
}

.search-panel input:focus {
    border-color: var(--accent);
}

.search-panel button {
    background: transparent;
    border: 0;
    cursor: pointer;
    font-weight: 700;
}

.hero-section {
    align-items: flex-end;
    background-image:
        linear-gradient(
            90deg,
            rgba(25, 27, 23, 0.76) 0%,
            rgba(25, 27, 23, 0.3) 48%,
            rgba(25, 27, 23, 0.08) 100%
        ),
        url("https://images.unsplash.com/photo-1600566753086-00f18fb6b3ea?auto=format&fit=crop&w=1400&q=74");
    background-position: center;
    background-size: cover;
    display: flex;
    min-height: 720px;
    padding: 80px max(28px, calc((100vw - var(--container)) / 2 + 28px));
    position: relative;
}

.hero-content {
    color: #ffffff;
    max-width: 680px;
    position: relative;
    z-index: 1;
}

.eyebrow {
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.hero-content .eyebrow {
    color: #dfe7da;
}

.hero-content h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(48px, 6vw, 84px);
    font-weight: 500;
    letter-spacing: -0.045em;
    line-height: 0.98;
}

.hero-content h1 span {
    color: #d7d5cc;
    display: block;
    font-style: italic;
}

.hero-description {
    color: rgba(255, 255, 255, 0.82);
    font-size: 17px;
    margin-top: 28px;
    max-width: 590px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.primary-button,
.secondary-button {
    align-items: center;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    justify-content: center;
    letter-spacing: 0.02em;
    min-height: 48px;
    padding: 0 24px;
    transition:
        background var(--transition),
        color var(--transition),
        transform var(--transition);
}

.primary-button {
    background: var(--accent);
    color: #ffffff;
}

.primary-button:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

.secondary-button {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #ffffff;
    backdrop-filter: blur(10px);
}

.secondary-button:hover {
    background: #ffffff;
    color: var(--text);
}

.features-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 0 auto;
    max-width: var(--container);
    padding: 36px 28px;
}

.feature-item {
    align-items: flex-start;
    border-right: 1px solid var(--border);
    display: flex;
    gap: 18px;
    padding: 18px 34px;
}

.feature-item:first-child {
    padding-left: 0;
}

.feature-item:last-child {
    border-right: 0;
    padding-right: 0;
}

.feature-number {
    color: var(--warm);
    font-family: Georgia, serif;
    font-size: 25px;
    font-style: italic;
}

.feature-item h3 {
    font-family: Georgia, serif;
    font-size: 19px;
    margin-bottom: 4px;
}

.feature-item p {
    color: var(--text-muted);
    font-size: 13px;
}

.category-section,
.products-section,
.editorial-section,
.newsletter-section {
    margin: 0 auto;
    max-width: var(--container);
    padding: 90px 28px;
}

.section-heading {
    align-items: flex-end;
    display: flex;
    gap: 50px;
    justify-content: space-between;
    margin-bottom: 38px;
}

.section-heading h2,
.editorial-content h2,
.newsletter-section h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 4.5vw, 60px);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1.04;
}

.section-heading > p {
    color: var(--text-muted);
    max-width: 430px;
}

.category-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: 1.3fr 0.85fr;
    grid-template-rows: repeat(2, 280px);
}

.category-card {
    border: 0;
    border-radius: var(--radius-medium);
    cursor: pointer;
    overflow: hidden;
    position: relative;
    text-align: left;
}

.category-card-large {
    grid-row: span 2;
}

.category-card img {
    height: 100%;
    object-fit: cover;
    transition: transform 600ms ease;
    width: 100%;
}

.category-card:hover img {
    transform: scale(1.045);
}

.category-card::after {
    background:
        linear-gradient(
            180deg,
            rgba(20, 20, 18, 0.04),
            rgba(20, 20, 18, 0.7)
        );
    content: "";
    inset: 0;
    position: absolute;
}

.category-overlay {
    bottom: 26px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    left: 28px;
    position: absolute;
    z-index: 1;
}

.category-overlay small {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.category-overlay strong {
    font-family: Georgia, serif;
    font-size: 31px;
    font-weight: 500;
}

.products-section {
    padding-top: 60px;
}

.product-toolbar {
    align-items: center;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 30px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-button {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 15px;
    transition:
        background var(--transition),
        color var(--transition),
        border var(--transition);
}

.filter-button:hover,
.filter-button.active {
    background: var(--text);
    border-color: var(--text);
    color: #ffffff;
}

.product-toolbar select {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    cursor: pointer;
    outline: none;
    padding: 10px 16px;
}

.product-grid {
    display: grid;
    gap: 28px 18px;
    grid-template-columns: repeat(4, 1fr);
}

.product-card {
    min-width: 0;
}

.product-image-wrapper {
    background: var(--surface-muted);
    border-radius: var(--radius-medium);
    overflow: hidden;
    position: relative;
}

.product-image {
    aspect-ratio: 0.84;
    object-fit: contain;
    width: 100%;
}

.product-badge {
    background: var(--surface);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    left: 14px;
    letter-spacing: 0.08em;
    padding: 7px 10px;
    position: absolute;
    text-transform: uppercase;
    top: 14px;
}

.quick-add-button {
    background: var(--text);
    border: 0;
    border-radius: 999px;
    bottom: 14px;
    color: #ffffff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    left: 14px;
    opacity: 0;
    padding: 11px 17px;
    position: absolute;
    right: 14px;
    transform: translateY(12px);
    transition:
        opacity var(--transition),
        transform var(--transition),
        background var(--transition);
}

.product-card:hover .quick-add-button,
.quick-add-button:focus-visible {
    opacity: 1;
    transform: translateY(0);
}

.quick-add-button:hover {
    background: var(--accent-dark);
}

.product-details {
    padding: 15px 4px 0;
}

.product-category {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-name {
    font-family: Georgia, serif;
    font-size: 21px;
    line-height: 1.2;
    margin: 6px 0 10px;
}

.product-price-row {
    align-items: center;
    display: flex;
    gap: 9px;
}

.product-price {
    font-size: 14px;
    font-weight: 800;
}

.product-old-price {
    color: var(--text-muted);
    font-size: 12px;
    text-decoration: line-through;
}

.empty-state {
    color: var(--text-muted);
    padding: 70px 0;
    text-align: center;
}

.editorial-section {
    align-items: center;
    display: grid;
    gap: 70px;
    grid-template-columns: 1.05fr 0.95fr;
}

.editorial-image {
    border-radius: var(--radius-large);
    overflow: hidden;
}

.editorial-image img {
    height: 650px;
    object-fit: cover;
    width: 100%;
}

.editorial-content {
    padding-right: 40px;
}

.editorial-content h2 {
    margin-bottom: 28px;
}

.editorial-content > p:not(.eyebrow) {
    color: var(--text-muted);
    margin-bottom: 18px;
}

.text-link {
    align-items: center;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    gap: 9px;
    margin-top: 12px;
}

.text-link span {
    transition: transform var(--transition);
}

.text-link:hover span {
    transform: translateX(5px);
}

.newsletter-section {
    align-items: center;
    background: var(--accent-light);
    border-radius: var(--radius-large);
    display: flex;
    gap: 50px;
    justify-content: space-between;
    margin-bottom: 90px;
    padding: 55px 60px;
}

.newsletter-section h2 {
    font-size: clamp(31px, 4vw, 46px);
    max-width: 600px;
}

.newsletter-form {
    display: flex;
    max-width: 430px;
    width: 100%;
}

.newsletter-form input {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px 0 0 999px;
    flex: 1;
    min-width: 0;
    outline: none;
    padding: 15px 19px;
}

.newsletter-form input:focus {
    border-color: var(--accent);
}

.newsletter-form button {
    background: var(--text);
    border: 0;
    border-radius: 0 999px 999px 0;
    color: #ffffff;
    cursor: pointer;
    font-weight: 800;
    padding: 0 22px;
}

.site-footer {
    background: var(--text);
    color: #ffffff;
    padding: 70px max(28px, calc((100vw - var(--container)) / 2 + 28px)) 28px;
}

.footer-grid {
    display: grid;
    gap: 50px;
    grid-template-columns: 1.6fr repeat(3, 1fr);
}

.footer-logo .logo-mark {
    background: #ffffff;
    color: var(--text);
}

.footer-logo .logo-text small {
    color: rgba(255, 255, 255, 0.55);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    margin-top: 20px;
    max-width: 310px;
}

.payment-logo-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.payment-logo {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(20, 20, 18, 0.12);
    border-radius: 8px;
    color: var(--text);
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    height: 34px;
    justify-content: center;
    letter-spacing: 0;
    min-width: 74px;
    padding: 0 12px;
}

.visa-logo {
    color: #1a1f71;
    font-style: italic;
    text-transform: uppercase;
}

.mastercard-logo {
    gap: 7px;
}

.mastercard-logo span {
    background:
        radial-gradient(circle at 35% 50%, #eb001b 0 36%, transparent 37%),
        radial-gradient(circle at 65% 50%, #f79e1b 0 36%, transparent 37%);
    display: inline-block;
    height: 18px;
    width: 30px;
}

.iyzico-logo {
    color: #1f2d5c;
}

.footer-payment-logo-row {
    max-width: 456px;
}

.payment-logo-band {
    display: block;
    height: auto;
    max-width: 100%;
    width: 100%;
}

.footer-grid h3 {
    font-family: Georgia, serif;
    font-size: 18px;
    margin-bottom: 16px;
}

.footer-grid > div:not(.footer-brand) {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-grid a,
.footer-grid > div:not(.footer-brand) p {
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
}

.footer-grid a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.45);
    display: flex;
    font-size: 12px;
    justify-content: space-between;
    margin-top: 55px;
    padding-top: 24px;
}

.drawer-backdrop,
.modal-backdrop {
    background: rgba(20, 20, 18, 0.52);
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    transition: opacity 220ms ease;
    z-index: 90;
}

.drawer-backdrop.open,
.modal-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    background: var(--surface);
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 460px;
    padding: 30px;
    position: fixed;
    right: 0;
    top: 0;
    transform: translateX(100%);
    transition: transform 260ms ease;
    width: 100%;
    z-index: 100;
}

.cart-drawer.open {
    transform: translateX(0);
}

.drawer-header {
    align-items: center;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    padding-bottom: 20px;
}

.drawer-header h2 {
    font-family: Georgia, serif;
    font-size: 38px;
}

.close-button,
.modal-close-button {
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: inline-flex;
    font-size: 27px;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 18px 0;
}

.cart-item {
    display: grid;
    gap: 14px;
    grid-template-columns: 82px 1fr auto;
    padding: 14px 0;
}

.cart-item + .cart-item {
    border-top: 1px solid var(--border);
}

.cart-item img {
    border-radius: var(--radius-small);
    height: 92px;
    object-fit: cover;
    width: 82px;
}

.cart-item-name {
    font-family: Georgia, serif;
    font-size: 17px;
}

.cart-item-category {
    color: var(--text-muted);
    font-size: 11px;
    margin-top: 3px;
}

.cart-item-color,
.checkout-summary-color {
    align-items: center;
    color: var(--text-muted);
    display: flex;
    font-size: 11px;
    gap: 6px;
    margin-top: 7px;
}

.cart-color-dot {
    background: linear-gradient(135deg, var(--swatch-color) 50%, var(--swatch-secondary-color, var(--swatch-color)) 50%);
    border: 1px solid rgba(37, 36, 31, 0.18);
    border-radius: 50%;
    display: inline-block;
    flex: 0 0 auto;
    height: 12px;
    width: 12px;
}

.cart-item-modules {
    color: var(--text-muted);
    display: grid;
    font-size: 11px;
    gap: 3px;
    list-style: none;
    margin: 9px 0 0;
    padding: 0;
}

.quantity-control {
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    display: inline-flex;
    margin-top: 12px;
}

.quantity-control button {
    background: transparent;
    border: 0;
    cursor: pointer;
    height: 28px;
    width: 30px;
}

.quantity-control span {
    font-size: 12px;
    font-weight: 800;
    min-width: 24px;
    text-align: center;
}

.cart-item-side {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-price {
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.remove-item-button {
    background: transparent;
    border: 0;
    color: var(--danger);
    cursor: pointer;
    font-size: 11px;
    text-decoration: underline;
}

.cart-empty {
    align-items: center;
    color: var(--text-muted);
    display: none;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.cart-empty.visible {
    display: flex;
}

.cart-empty button {
    background: transparent;
    border: 0;
    color: var(--text);
    cursor: pointer;
    font-weight: 800;
    margin-top: 10px;
    text-decoration: underline;
}

.cart-summary {
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.summary-line {
    display: flex;
    font-size: 13px;
    justify-content: space-between;
    margin-bottom: 9px;
}

.total-line {
    border-top: 1px solid var(--border);
    font-size: 17px;
    margin-top: 16px;
    padding-top: 16px;
}

.checkout-button {
    margin-top: 18px;
    width: 100%;
}

.modal-backdrop {
    align-items: center;
    display: flex;
    justify-content: center;
    overflow-y: auto;
    padding: 24px;
    z-index: 120;
}

.checkout-modal-content {
    background: var(--surface);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow);
    max-height: calc(100vh - 48px);
    max-width: 1120px;
    overflow-y: auto;
    position: relative;
    width: 100%;
}

.modal-close-button {
    background: var(--surface);
    position: absolute;
    right: 18px;
    top: 18px;
    z-index: 3;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
}

.checkout-form-column {
    padding: 50px;
}

.checkout-heading {
    margin-bottom: 32px;
    padding-right: 50px;
}

.checkout-heading h2 {
    font-family: Georgia, serif;
    font-size: 44px;
    line-height: 1.05;
}

.checkout-heading > p:last-child {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 12px;
}

fieldset {
    border: 0;
    margin-bottom: 30px;
}

legend {
    font-family: Georgia, serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.form-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, 1fr);
}

.form-grid label {
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    font-size: 12px;
    font-weight: 700;
    gap: 7px;
}

.form-grid label.full-width {
    grid-column: 1 / -1;
}

.form-grid input {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    outline: none;
    padding: 13px 14px;
}

.form-grid input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(95, 109, 88, 0.1);
}

.demo-notice {
    background: var(--accent-light);
    border-radius: 9px;
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 14px;
    padding: 10px 12px;
}

.checkbox-label {
    align-items: flex-start;
    color: var(--text-muted);
    display: flex;
    font-size: 12px;
    gap: 10px;
}

.checkbox-label input {
    margin-top: 4px;
}

.payment-button {
    margin-top: 22px;
    width: 100%;
}

.button-loader {
    animation: spin 800ms linear infinite;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    border-top-color: #ffffff;
    height: 18px;
    width: 18px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.checkout-summary-column {
    background: var(--background);
    border-radius: 0 var(--radius-large) var(--radius-large) 0;
    padding: 50px 36px;
}

.checkout-summary-column h3 {
    font-family: Georgia, serif;
    font-size: 26px;
    margin-bottom: 24px;
}

.checkout-summary-item {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: 58px 1fr auto;
    padding: 11px 0;
}

.checkout-summary-item + .checkout-summary-item {
    border-top: 1px solid var(--border);
}

.checkout-summary-item img {
    border-radius: 8px;
    height: 62px;
    object-fit: cover;
    width: 58px;
}

.checkout-summary-item h4 {
    font-family: Georgia, serif;
    font-size: 15px;
    line-height: 1.2;
}

.checkout-summary-item p {
    color: var(--text-muted);
    font-size: 11px;
}

.checkout-summary-modules {
    color: var(--text-muted);
    display: grid;
    font-size: 10px;
    gap: 2px;
    list-style: none;
    margin: 5px 0 0;
    padding: 0;
}

.checkout-summary-item strong {
    font-size: 12px;
}

.checkout-totals {
    border-top: 1px solid var(--border);
    margin-top: 20px;
    padding-top: 20px;
}

.checkout-totals > div {
    display: flex;
    font-size: 13px;
    justify-content: space-between;
    margin-bottom: 10px;
}

.checkout-totals .checkout-total {
    border-top: 1px solid var(--border);
    font-size: 17px;
    margin-top: 16px;
    padding-top: 16px;
}

.success-modal-content {
    background: var(--surface);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow);
    max-width: 520px;
    padding: 55px;
    text-align: center;
    width: 100%;
}

.success-icon {
    align-items: center;
    background: var(--accent-light);
    border-radius: 50%;
    color: var(--success);
    display: inline-flex;
    font-size: 32px;
    height: 76px;
    justify-content: center;
    margin-bottom: 22px;
    width: 76px;
}

.success-modal-content h2 {
    font-family: Georgia, serif;
    font-size: 42px;
    margin-bottom: 12px;
}

.success-modal-content > p:not(.eyebrow) {
    color: var(--text-muted);
}

.success-order-number {
    background: var(--background);
    border-radius: 10px;
    margin: 24px 0;
    padding: 14px;
}

.toast {
    background: var(--text);
    border-radius: 999px;
    bottom: 24px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    left: 50%;
    opacity: 0;
    padding: 12px 18px;
    pointer-events: none;
    position: fixed;
    transform: translate(-50%, 20px);
    transition:
        opacity 200ms ease,
        transform 200ms ease;
    z-index: 200;
}

.toast.visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (max-width: 1000px) {
    .header-container {
        grid-template-columns: minmax(0, 1fr) auto auto;
    }

    .logo {
        width: 190px;
    }

    .navbar-logo {
        width: 140px;
    }

    .brand-logo {
        height: 48px;
        max-height: 48px;
        max-width: 168px;
    }

    .mobile-menu-button {
        display: flex;
    }

    .main-navigation {
        align-items: flex-start;
        background: var(--surface);
        border-top: 1px solid var(--border);
        display: none;
        flex-direction: column;
        gap: 18px;
        left: 0;
        padding: 24px 28px;
        position: absolute;
        right: 0;
        top: 100%;
    }

    .main-navigation.open {
        display: flex;
    }

    .header-actions {
        justify-content: flex-end;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .editorial-section {
        gap: 40px;
    }

    .editorial-image img {
        height: 540px;
    }

    .newsletter-section {
        align-items: flex-start;
        flex-direction: column;
    }

    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-summary-column {
        border-radius: 0 0 var(--radius-large) var(--radius-large);
    }
}

@media (max-width: 760px) {
    .header-container {
        gap: 14px;
        height: 60px;
        padding: 0 18px;
    }

    .logo {
        height: 60px;
        width: 170px;
    }

    .logo-text {
        font-size: 16px;
    }

    .logo-mark {
        height: 36px;
        width: 36px;
    }

    .brand-logo {
        height: 48px;
        max-height: 48px;
        max-width: 170px;
    }

    .icon-button {
        display: none;
    }

    .cart-button {
        padding-left: 14px;
    }

    .navbar-logo {
        max-height: 48px;
        width: 124px;
    }

    .hero-section {
        min-height: 630px;
        padding: 60px 22px;
    }

    .hero-content h1 {
        font-size: 48px;
    }

    .features-section {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .feature-item,
    .feature-item:first-child,
    .feature-item:last-child {
        border-bottom: 1px solid var(--border);
        border-right: 0;
        padding: 18px 0;
    }

    .feature-item:last-child {
        border-bottom: 0;
    }

    .category-section,
    .products-section,
    .editorial-section,
    .newsletter-section {
        padding: 65px 20px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .category-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }

    .category-card,
    .category-card-large {
        grid-row: auto;
        height: 330px;
    }

    .product-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-add-button {
        opacity: 1;
        transform: none;
    }

    .editorial-section {
        grid-template-columns: 1fr;
    }

    .editorial-image img {
        height: 450px;
    }

    .editorial-content {
        padding-right: 0;
    }

    .newsletter-section {
        border-radius: 0;
        margin-bottom: 0;
        padding: 48px 22px;
    }

    .newsletter-form {
        max-width: none;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .checkout-form-column,
    .checkout-summary-column {
        padding: 38px 22px;
    }

    .checkout-heading h2 {
        font-size: 37px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-grid label.full-width {
        grid-column: auto;
    }
}

@media (max-width: 500px) {
    .navbar-logo {
        max-height: 42px;
        width: 108px;
    }

    .logo {
        width: 140px;
    }

    .brand-logo {
        height: 38px;
        max-height: 38px;
        max-width: 145px;
    }

    .logo-text small {
        display: none;
    }

    .cart-button > span:first-child {
        display: none;
    }

    .cart-button {
        padding: 10px;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .category-card,
    .category-card-large {
        height: 300px;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 9px;
    }

    .newsletter-form input,
    .newsletter-form button {
        border-radius: 999px;
        min-height: 48px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }

    .cart-drawer {
        padding: 22px 18px;
    }

    .modal-backdrop {
        padding: 0;
    }

    .checkout-modal-content {
        border-radius: 0;
        max-height: 100vh;
        min-height: 100vh;
    }

    .checkout-summary-column {
        border-radius: 0;
    }

    .success-modal-content {
        border-radius: 0;
        min-height: 100vh;
        padding: 70px 24px;
    }
}
    .payment-result-page {
    align-items: center;
    background: var(--background);
    display: flex;
    min-height: 100vh;
    padding: 24px;
}

    .payment-result-container {
        margin: 0 auto;
        max-width: 620px;
        width: 100%;
    }

    .payment-result-card {
        background: var(--surface);
        border-radius: var(--radius-large);
        box-shadow: var(--shadow);
        padding: 60px 44px;
        text-align: center;
    }

    .payment-result-card h1 {
        font-family: Georgia, "Times New Roman", serif;
        font-size: clamp(36px, 6vw, 52px);
        font-weight: 500;
        letter-spacing: -0.035em;
        line-height: 1.05;
        margin-bottom: 16px;
    }

    .payment-result-card > p:not(.eyebrow) {
        color: var(--text-muted);
        margin: 0 auto 26px;
        max-width: 460px;
    }

    .payment-result-card .primary-button {
        margin-top: 10px;
    }

    .cancel-icon {
        align-items: center;
        background: #f1dedb;
        border-radius: 50%;
        color: var(--danger);
        display: inline-flex;
        font-size: 38px;
        height: 76px;
        justify-content: center;
        margin-bottom: 22px;
        width: 76px;
    }

    .result-error {
        background: #f1dedb;
        color: var(--danger);
    }

    @media (max-width: 500px) {
        .payment-result-card {
            padding: 48px 22px;
        }
    }
    /* iyzico hosted checkout additions */

    .hosted-payment-notice {
        background: var(--accent-light);
        border:
            1px solid
            rgba(95, 109, 88, 0.25);
        border-radius: 12px;
        padding: 18px;
    }

    .hosted-payment-notice strong {
        color: var(--accent-dark);
        display: block;
        font-size: 15px;
        margin-bottom: 6px;
    }

    .hosted-payment-notice p {
        color: var(--text-muted);
        font-size: 13px;
        line-height: 1.6;
    }

    .checkout-payment-logos {
        margin-top:
            14px;
    }

    .field-help {
        color: var(--text-muted);
        display: block;
        font-size: 10px;
        font-weight: 500;
        line-height: 1.5;
        margin-top: 2px;
    }

    .payment-button:disabled,
    .modal-close-button:disabled {
        cursor: not-allowed;
        opacity: 0.65;
        transform: none;
    }

    .form-grid input:invalid:not(:placeholder-shown) {
        border-color:
            rgba(168, 67, 55, 0.65);
    }

    .form-grid input:valid:not(:placeholder-shown) {
        border-color:
            rgba(77, 114, 86, 0.55);
    }

        /* ---------- Admin ---------- */
        .admin-page {
            min-height: 100vh;
        }

        .admin-shell {
            padding: 48px 0 80px;
        }


        /* ---------- Login ---------- */

        .admin-login {
            min-height: calc(100vh - 175px);
            display: grid;
            place-items: center;
        }

        .admin-login-card {
            width: min(470px, 100%);
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius-medium);
            box-shadow: var(--shadow);
            padding: 38px;
        }

        .admin-login-card h1,
        .admin-heading h1 {
            font-family: Georgia, "Times New Roman", serif;
            font-size: clamp(38px, 6vw, 62px);
            font-weight: 500;
            line-height: 1;
            margin: 8px 0 14px;
        }

        .admin-login-card > p {
            color: var(--text-muted);
        }


        /* ---------- Admin Forms ---------- */

        .admin-form {
            display: grid;
            gap: 14px;
        }

        .admin-form label {
            display: grid;
            gap: 6px;
            font-size: 12px;
            font-weight: 800;
        }

        .admin-form input,
        .admin-form select,
        .admin-form textarea,
        .admin-toolbar input,
        .admin-toolbar select {
            width: 100%;
            border: 1px solid var(--border);
            border-radius: 11px;
            background: #ffffff;
            padding: 12px 13px;
            color: var(--text);
            font: inherit;
        }

        .admin-form input:focus,
        .admin-form select:focus,
        .admin-form textarea:focus,
        .admin-toolbar input:focus,
        .admin-toolbar select:focus {
            border-color: var(--accent);
            outline: none;
            box-shadow: 0 0 0 3px rgba(95, 109, 88, 0.1);
        }

        .admin-form textarea {
            resize: vertical;
        }

        .admin-message {
            min-height: 20px;
            color: var(--danger);
            font-size: 12px;
            margin: 0;
        }


        /* ---------- Admin Heading ---------- */

        .admin-heading {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            gap: 24px;
            margin-bottom: 24px;
        }

        .admin-heading p {
            max-width: 650px;
            color: var(--text-muted);
        }


        /* ---------- Statistics ---------- */

        .admin-stats {
            display: grid;
            grid-template-columns: repeat(2, minmax(180px, 260px));
            gap: 14px;
            margin-bottom: 20px;
        }

        .admin-stats > div {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 14px;
            padding: 18px;
        }

        .admin-stats strong {
            display: block;
            font-family: Georgia, "Times New Roman", serif;
            font-size: 34px;
            font-weight: 500;
            line-height: 1;
        }

        .admin-stats span {
            font-size: 11px;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.09em;
        }


        /* ---------- Search / Filter Toolbar ---------- */

        .admin-toolbar {
            display: grid;
            grid-template-columns: 1fr 260px;
            gap: 12px;
            margin: 18px 0;
        }


        /* ---------- Product Table ---------- */

        .admin-table-wrap {
            overflow: auto;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius-medium);
        }

        .admin-table {
            width: 100%;
            border-collapse: collapse;
            min-width: 900px;
        }

        .admin-table th,
        .admin-table td {
            padding: 14px 16px;
            border-bottom: 1px solid var(--border);
            text-align: left;
            vertical-align: middle;
        }

        .admin-table th {
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--text-muted);
            background: var(--surface-muted);
        }

        .admin-table tr:last-child td {
            border-bottom: 0;
        }


        /* ---------- Product Row ---------- */

        .admin-product-cell {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .admin-product-cell img {
            width: 64px;
            height: 52px;
            border-radius: 9px;
            object-fit: cover;
            background: #eeeeee;
        }

        .admin-product-cell strong,
        .admin-product-cell span {
            display: block;
        }

        .admin-product-cell span {
            font-size: 11px;
            color: var(--text-muted);
        }


        /* ---------- Discount ---------- */

        .discount-tag {
            display: inline-block;
            border-radius: 999px;
            padding: 4px 8px;
            background: #e6efe1;
            color: var(--accent-dark);
            font-size: 11px;
            font-weight: 900;
        }

        .discount-preview {
            background: var(--surface-muted);
            border-radius: 12px;
            padding: 13px 15px;
            font-size: 13px;
        }

        .discount-preview span {
            text-decoration: line-through;
            color: var(--text-muted);
            margin-left: 7px;
        }


        /* ---------- Table Actions ---------- */

        .admin-row-actions {
            display: flex;
            justify-content: flex-end;
            gap: 7px;
        }

        .small-action {
            border: 1px solid var(--border);
            background: #ffffff;
            border-radius: 999px;
            padding: 7px 10px;
            font-size: 11px;
            font-weight: 800;
            cursor: pointer;
        }

        .small-action:hover {
            border-color: var(--accent);
        }

        .danger-text {
            color: var(--danger);
        }


        /* ---------- Product Editor ---------- */

        .admin-editor {
            width: min(820px, 100%);
        }

        .admin-editor .form-grid {
            margin-top: 20px;
        }

        .admin-editor-actions {
            display: flex;
            justify-content: flex-end;
            gap: 10px;
            margin-top: 8px;
        }


        /* ---------- Delete Product ---------- */

        .danger-button {
            background: var(--danger);
            color: #ffffff;
        }

        .admin-confirm {
            width: min(480px, 100%);
            text-align: center;
        }

        .admin-confirm p {
            color: var(--text-muted);
        }


        /* ---------- Responsive Admin Panel ---------- */

        @media (max-width: 720px) {

            .admin-heading {
                align-items: stretch;
                flex-direction: column;
            }

            .admin-heading .primary-button {
                width: 100%;
            }

            .admin-stats {
                grid-template-columns: 1fr 1fr;
            }

            .admin-toolbar {
                grid-template-columns: 1fr;
            }

            .admin-login-card {
                padding: 26px 20px;
            }

            .admin-editor-actions {
                flex-direction: column-reverse;
            }

            .admin-editor-actions .primary-button,
            .admin-editor-actions button {
                width: 100%;
            }
        }

                /* =========================================================
        ADMIN PANEL COMPATIBILITY + STYLING
        ========================================================= */

        .container {
            width: 100%;
            max-width: var(--container);
            margin: 0 auto;
            padding-left: 28px;
            padding-right: 28px;
        }


        /* HEADER */

        .header-row {
            min-height: 82px;
            display: flex;
            align-items: center;
            gap: 24px;
        }

        .brand {
            display: inline-flex;
            flex-direction: column;
            font-family: Georgia, "Times New Roman", serif;
            font-size: 22px;
            font-weight: 700;
            line-height: 1;
        }

        .brand small {
            margin-top: 6px;
            color: var(--text-muted);
            font-family: Inter, sans-serif;
            font-size: 9px;
            font-weight: 700;
            letter-spacing: 0.15em;
            text-transform: uppercase;
        }


        /* GENERAL ADMIN BUTTONS */

        .button {
            min-height: 44px;
            padding: 0 20px;

            display: inline-flex;
            align-items: center;
            justify-content: center;

            border: 0;
            border-radius: 999px;

            cursor: pointer;

            font: inherit;
            font-size: 13px;
            font-weight: 800;

            text-decoration: none;

            transition:
                background var(--transition),
                color var(--transition),
                transform var(--transition),
                border-color var(--transition);
        }

        .button.primary {
            background: var(--accent);
            color: white;
        }

        .button.primary:hover {
            background: var(--accent-dark);
            transform: translateY(-1px);
        }

        .button.secondary {
            background: var(--surface);
            color: var(--text);
            border: 1px solid var(--border);
        }

        .button.secondary:hover {
            border-color: var(--accent);
        }


        /* PAGE */

        .admin-page {
            min-height: 100vh;
            background: var(--background);
        }

        .admin-shell {
            padding-top: 55px;
            padding-bottom: 90px;
        }


        /* LOGIN */

        .admin-login {
            min-height: calc(100vh - 190px);

            display: flex;
            align-items: center;
            justify-content: center;
        }

        .admin-login-card {
            width: 100%;
            max-width: 480px;

            background: var(--surface);

            border: 1px solid var(--border);
            border-radius: var(--radius-medium);

            box-shadow: var(--shadow);

            padding: 42px;
        }

        .admin-login-card h1 {
            font-family: Georgia, "Times New Roman", serif;
            font-size: 48px;
            font-weight: 500;
            line-height: 1.05;

            margin-bottom: 14px;
        }

        .admin-login-card > p:not(.eyebrow) {
            color: var(--text-muted);
            margin-bottom: 28px;
        }


        /* FORMS */

        .admin-form {
            display: grid;
            gap: 16px;
        }

        .admin-form label {
            display: flex;
            flex-direction: column;
            gap: 7px;

            color: var(--text-muted);

            font-size: 12px;
            font-weight: 700;
        }

        .admin-form input,
        .admin-form select,
        .admin-form textarea {
            width: 100%;

            background: var(--background);
            color: var(--text);

            border: 1px solid var(--border);
            border-radius: 10px;

            outline: none;

            padding: 13px 14px;

            font: inherit;
        }

        .admin-form input:focus,
        .admin-form select:focus,
        .admin-form textarea:focus {
            border-color: var(--accent);

            box-shadow:
                0 0 0 3px
                rgba(95, 109, 88, 0.1);
        }

        .admin-form textarea {
            resize: vertical;
        }


        /* ADMIN DASHBOARD HEADER */

        .admin-heading {
            display: flex;
            align-items: flex-end;
            justify-content: space-between;

            gap: 30px;

            margin-bottom: 28px;
        }

        .admin-heading h1 {
            font-family: Georgia, "Times New Roman", serif;

            font-size: clamp(44px, 6vw, 64px);
            font-weight: 500;

            line-height: 1;

            margin-bottom: 12px;
        }

        .admin-heading > div > p:last-child {
            color: var(--text-muted);
            max-width: 650px;
        }


        /* STATS */

        .admin-stats {
            display: grid;
            grid-template-columns:
                repeat(2, minmax(180px, 260px));

            gap: 14px;

            margin-bottom: 22px;
        }

        .admin-stats > div {
            background: var(--surface);

            border: 1px solid var(--border);
            border-radius: 14px;

            padding: 20px;
        }

        .admin-stats strong {
            display: block;

            font-family: Georgia, serif;
            font-size: 36px;
            font-weight: 500;

            line-height: 1;
        }

        .admin-stats span {
            color: var(--text-muted);

            display: block;

            margin-top: 7px;

            font-size: 10px;
            font-weight: 700;

            letter-spacing: 0.08em;
            text-transform: uppercase;
        }


        /* SEARCH / FILTER */

        .admin-toolbar {
            display: grid;

            grid-template-columns:
                minmax(0, 1fr)
                280px;

            gap: 12px;

            margin-bottom: 20px;
        }

        .admin-toolbar input,
        .admin-toolbar select {
            background: var(--surface);

            border: 1px solid var(--border);
            border-radius: 999px;

            color: var(--text);

            outline: none;

            padding: 12px 17px;

            font: inherit;
        }

        .admin-toolbar input:focus,
        .admin-toolbar select:focus {
            border-color: var(--accent);
        }


        /* PRODUCT TABLE */

        .admin-table-wrap {
            overflow-x: auto;

            background: var(--surface);

            border: 1px solid var(--border);
            border-radius: var(--radius-medium);

            box-shadow: var(--small-shadow);
        }

        .admin-table {
            width: 100%;
            min-width: 900px;

            border-collapse: collapse;
        }

        .admin-table th,
        .admin-table td {
            border-bottom: 1px solid var(--border);

            padding: 15px 17px;

            text-align: left;
            vertical-align: middle;
        }

        .admin-table th {
            background: var(--surface-muted);

            color: var(--text-muted);

            font-size: 10px;
            font-weight: 800;

            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        .admin-table tr:last-child td {
            border-bottom: 0;
        }


        /* TABLE PRODUCT */

        .admin-product-cell {
            display: flex;
            align-items: center;

            gap: 13px;
        }

        .admin-product-cell img {
            width: 68px;
            height: 58px;

            object-fit: cover;

            border-radius: 9px;

            background: var(--surface-muted);
        }

        .admin-product-cell strong {
            display: block;

            font-family: Georgia, serif;

            font-size: 16px;
        }

        .admin-product-cell span {
            display: block;

            color: var(--text-muted);

            font-size: 11px;

            margin-top: 3px;
        }


        /* DISCOUNT */

        .discount-tag {
            display: inline-flex;

            background: var(--accent-light);
            color: var(--accent-dark);

            border-radius: 999px;

            padding: 5px 9px;

            font-size: 11px;
            font-weight: 800;
        }

        .discount-preview {
            background: var(--surface-muted);

            border-radius: 10px;

            padding: 13px 15px;

            font-size: 13px;
        }

        .discount-preview span {
            color: var(--text-muted);

            margin-left: 8px;

            text-decoration: line-through;
        }


        /* ACTION BUTTONS */

        .admin-row-actions {
            display: flex;

            justify-content: flex-end;

            gap: 8px;
        }

        .small-action {
            background: var(--surface);

            border: 1px solid var(--border);
            border-radius: 999px;

            cursor: pointer;

            padding: 7px 11px;

            font-size: 11px;
            font-weight: 800;
        }

        .small-action:hover {
            border-color: var(--accent);
        }

        .danger-text {
            color: var(--danger);
        }

        .danger-button {
            background: var(--danger);

            color: white;
        }


        /* MODALS */

        .modal {
            position: fixed;

            inset: 0;

            z-index: 1000;

            display: flex;

            align-items: center;
            justify-content: center;

            background:
                rgba(20, 20, 18, 0.56);

            padding: 24px;

            opacity: 0;
            visibility: hidden;
            pointer-events: none;

            transition:
                opacity 180ms ease,
                visibility 180ms ease;
        }

        .modal.open {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }

        .modal-card {
            position: relative;

            width: 100%;

            background: var(--surface);

            border: 1px solid var(--border);
            border-radius: var(--radius-large);

            box-shadow: var(--shadow);

            padding: 38px;

            max-height: calc(100vh - 48px);

            overflow-y: auto;
        }

        .modal-card h2 {
            font-family: Georgia, "Times New Roman", serif;

            font-size: 36px;
            font-weight: 500;

            margin-bottom: 18px;
        }

        .close,
        .modal-close {
            position: absolute;

            top: 18px;
            right: 18px;

            width: 42px;
            height: 42px;

            display: flex;
            align-items: center;
            justify-content: center;

            background: var(--surface);

            border: 1px solid var(--border);
            border-radius: 50%;

            color: var(--text);

            cursor: pointer;

            font-size: 26px;
        }


        /* PRODUCT EDITOR */

        .admin-editor {
            max-width: 850px;
        }

        .admin-editor .form-grid {
            display: grid;

            grid-template-columns:
                repeat(2, minmax(0, 1fr));

            gap: 14px;

            margin-top: 20px;
        }

        .admin-editor .form-grid .full {
            grid-column: 1 / -1;
        }

        .admin-editor-actions {
            display: flex;

            align-items: center;
            justify-content: flex-end;

            gap: 10px;

            margin-top: 12px;
        }


        /* DELETE CONFIRMATION */

        .admin-confirm {
            max-width: 470px;

            text-align: center;
        }

        .admin-confirm > p:not(.eyebrow) {
            color: var(--text-muted);

            margin-bottom: 20px;
        }


        /* ADMIN MESSAGES */

        .admin-message {
            min-height: 20px;

            color: var(--danger);

            font-size: 12px;
        }


        /* ADMIN TOAST */

        .admin-page .toast.show {
            opacity: 1;
            transform: translate(-50%, 0);
        }


        /* RESPONSIVE */

        @media (max-width: 760px) {

            .container {
                padding-left: 20px;
                padding-right: 20px;
            }

            .header-row {
                min-height: 72px;
            }

            .admin-heading {
                align-items: stretch;
                flex-direction: column;
            }

            .admin-heading > .button {
                width: 100%;
            }

            .admin-stats {
                grid-template-columns: 1fr 1fr;
            }

            .admin-toolbar {
                grid-template-columns: 1fr;
            }

            .admin-login-card {
                padding: 28px 22px;
            }

            .admin-editor .form-grid {
                grid-template-columns: 1fr;
            }

            .admin-editor .form-grid .full {
                grid-column: auto;
            }

            .admin-editor-actions {
                flex-direction: column-reverse;
            }

            .admin-editor-actions .button {
                width: 100%;
            }
        }

        /* =========================================================
        ADMIN PANEL — FINAL OVERRIDES
        KEEP THIS AT THE ABSOLUTE BOTTOM OF styles.css
        ========================================================= */

        .admin-page {
        min-height: 100vh;
        background: var(--background);
        }

        .admin-page .site-header {
        position: sticky;
        top: 0;
        z-index: 100;
        }

        .admin-page .container {
        width: min(
            1180px,
            calc(100% - 40px)
        );

        margin-inline: auto;
        }

        .admin-page .header-row {
        min-height: 82px;

        display: flex;
        align-items: center;

        gap: 18px;
        }

        .admin-page .brand {
        display: flex;
        flex-direction: column;

        font-family:
            Georgia,
            "Times New Roman",
            serif;

        font-weight: 700;

        letter-spacing: .04em;

        line-height: 1.05;
        }

        .admin-page .brand small {
        margin-top: 5px;

        color:
            var(--text-muted);

        font-family:
            Inter,
            system-ui,
            sans-serif;

        font-size: 9px;

        letter-spacing: .16em;

        text-transform:
            uppercase;
        }

        .admin-page .button {
        min-height: 42px;

        padding:
            10px
            18px;

        border:
            1px solid
            transparent;

        border-radius:
            999px;

        display:
            inline-flex;

        align-items:
            center;

        justify-content:
            center;

        gap: 8px;

        cursor:
            pointer;

        font-weight:
            700;

        transition:
            transform
            var(--transition),
            background
            var(--transition),
            border-color
            var(--transition);
        }

        .admin-page .button:hover {
        transform:
            translateY(-1px);
        }

        .admin-page .button.primary {
        background:
            var(--text);

        color:
            #ffffff;
        }

        .admin-page .button.secondary {
        background:
            var(--surface);

        border-color:
            var(--border);

        color:
            var(--text);
        }

        .admin-page .danger-button {
        background:
            var(--danger);

        color:
            #ffffff;
        }

        .admin-shell {
        padding:
            52px
            0
            90px;
        }

        .admin-login {
        min-height:
            calc(
                100vh - 190px
            );

        display: grid;

        place-items:
            center;
        }

        .admin-login-card,
        .admin-editor,
        .admin-confirm {
        background:
            var(--surface);

        border:
            1px solid
            var(--border);

        border-radius:
            var(--radius-large);

        box-shadow:
            var(--shadow);
        }

        .admin-login-card {
        width:
            min(
                520px,
                100%
            );

        padding:
            42px;
        }

        .admin-login-card h1,
        .admin-heading h1,
        .admin-editor h2,
        .admin-confirm h2 {
        font-family:
            Georgia,
            "Times New Roman",
            serif;

        font-weight:
            500;

        letter-spacing:
            -.035em;
        }

        .admin-login-card h1,
        .admin-heading h1 {
        font-size:
            clamp(
                36px,
                5vw,
                54px
            );
        }

        .admin-login-card
        > p:not(.eyebrow) {
        color:
            var(--text-muted);

        margin:
            10px
            0
            28px;
        }

        .admin-form {
        display: grid;

        gap: 16px;
        }

        .admin-form label {
        display: grid;

        gap: 7px;

        color:
            var(--text-muted);

        font-size:
            13px;

        font-weight:
            700;
        }

        .admin-form input,
        .admin-form select,
        .admin-form textarea,
        .admin-toolbar input,
        .admin-toolbar select {
        width: 100%;

        border:
            1px solid
            var(--border);

        border-radius:
            12px;

        background:
            #ffffff;

        color:
            var(--text);

        padding:
            12px
            14px;

        outline:
            none;
        }

        .admin-form input:focus,
        .admin-form select:focus,
        .admin-form textarea:focus,
        .admin-toolbar input:focus,
        .admin-toolbar select:focus {
        border-color:
            var(--accent);

        box-shadow:
            0 0 0 3px
            rgba(
                95,
                109,
                88,
                .12
            );
        }

        .admin-message {
        min-height:
            20px;

        color:
            var(--danger);

        font-size:
            13px;
        }

        .admin-heading {
        display: flex;

        align-items:
            end;

        justify-content:
            space-between;

        gap:
            24px;

        margin-bottom:
            26px;
        }

        .admin-heading
        p:not(.eyebrow) {
        max-width:
            650px;

        color:
            var(--text-muted);
        }

        .admin-stats {
        display: grid;

        grid-template-columns:
            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            );

        gap:
            16px;

        margin-bottom:
            20px;
        }

        .admin-stats > div {
        background:
            var(--surface);

        border:
            1px solid
            var(--border);

        border-radius:
            16px;

        padding:
            20px;

        display:
            flex;

        flex-direction:
            column;
        }

        .admin-stats strong {
        font-size:
            30px;
        }

        .admin-stats span {
        color:
            var(--text-muted);

        font-size:
            12px;
        }

        .admin-toolbar {
        display: grid;

        grid-template-columns:
            1fr
            260px;

        gap:
            14px;

        margin-bottom:
            18px;
        }

        .admin-table-wrap {
        overflow-x:
            auto;

        background:
            var(--surface);

        border:
            1px solid
            var(--border);

        border-radius:
            18px;

        box-shadow:
            var(--small-shadow);
        }

        .admin-table {
        width:
            100%;

        border-collapse:
            collapse;

        min-width:
            860px;
        }

        .admin-table th,
        .admin-table td {
        padding:
            15px
            16px;

        border-bottom:
            1px solid
            var(--border);

        text-align:
            left;

        vertical-align:
            middle;
        }

        .admin-table th {
        color:
            var(--text-muted);

        font-size:
            11px;

        letter-spacing:
            .08em;

        text-transform:
            uppercase;
        }

        .admin-table
        tbody
        tr:last-child
        td {
        border-bottom:
            0;
        }

        .admin-product-cell {
        display:
            flex;

        align-items:
            center;

        gap:
            12px;
        }

        .admin-product-cell img {
        width:
            58px;

        height:
            58px;

        border-radius:
            10px;

        object-fit:
            cover;

        background:
            var(--surface-muted);
        }

        .admin-product-cell div {
        display:
            flex;

        flex-direction:
            column;
        }

        .admin-product-cell span {
        color:
            var(--text-muted);

        font-size:
            12px;
        }

        .discount-tag {
        display:
            inline-flex;

        padding:
            4px
            8px;

        border-radius:
            999px;

        background:
            var(--accent-light);

        color:
            var(--accent-dark);

        font-size:
            12px;

        font-weight:
            800;
        }

        .admin-row-actions {
        display:
            flex;

        justify-content:
            flex-end;

        gap:
            8px;
        }

        .small-action {
        border:
            1px solid
            var(--border);

        border-radius:
            999px;

        background:
            #ffffff;

        padding:
            7px
            11px;

        cursor:
            pointer;

        font-weight:
            700;

        font-size:
            12px;
        }

        .danger-text {
        color:
            var(--danger);
        }

        .empty {
        padding:
            24px;

        text-align:
            center;

        color:
            var(--text-muted);
        }

        .admin-page .modal {
        position:
            fixed;

        inset:
            0;

        z-index:
            200;

        display:
            none;

        place-items:
            center;

        padding:
            24px;

        background:
            rgba(
                37,
                36,
                31,
                .48
            );

        backdrop-filter:
            blur(8px);
        }

        .admin-page .modal.open {
        display:
            grid;
        }

        .admin-page .modal-card {
        position:
            relative;

        width:
            min(
                780px,
                100%
            );

        max-height:
            min(
                88vh,
                900px
            );

        overflow-y:
            auto;

        padding:
            34px;
        }

        .admin-page .modal-close,
        .admin-page .close {
        position:
            absolute;

        top:
            16px;

        right:
            16px;

        width:
            38px;

        height:
            38px;

        border:
            1px solid
            var(--border);

        border-radius:
            50%;

        background:
            #ffffff;

        cursor:
            pointer;

        font-size:
            24px;

        line-height:
            1;
        }

        .admin-editor h2,
        .admin-confirm h2 {
        font-size:
            34px;

        margin-bottom:
            22px;
        }

        .admin-confirm {
        width:
            min(
                520px,
                100%
            )
            !important;
        }

        .admin-confirm
        > p:not(.eyebrow) {
        color:
            var(--text-muted);

        margin:
            -10px
            0
            22px;
        }

        .admin-page .form-grid {
        display:
            grid;

        grid-template-columns:
            1fr
            1fr;

        gap:
            14px;
        }

        .admin-page
        .form-grid
        .full {
        grid-column:
            1 / -1;
        }

        .discount-preview {
        margin-top:
            4px;

        padding:
            14px
            16px;

        background:
            var(--background);

        border:
            1px solid
            var(--border);

        border-radius:
            12px;

        color:
            var(--text-muted);
        }

        .discount-preview strong {
        color:
            var(--text);

        margin-left:
            6px;
        }

        .discount-preview span {
        margin-left:
            8px;

        text-decoration:
            line-through;
        }

        .admin-editor-actions {
        display:
            flex;

        justify-content:
            flex-end;

        gap:
            10px;

        margin-top:
            6px;
        }

        .admin-page .toast {
        position:
            fixed;

        left:
            50%;

        bottom:
            30px;

        z-index:
            300;

        transform:
            translate(
                -50%,
                18px
            );

        opacity:
            0;

        pointer-events:
            none;

        background:
            var(--text);

        color:
            #ffffff;

        border-radius:
            999px;

        padding:
            11px
            18px;

        transition:
            opacity
            .2s ease,
            transform
            .2s ease;
        }

        .admin-page
        .toast.show {
        opacity:
            1;

        transform:
            translate(
                -50%,
                0
            );
        }

        @media
        (max-width: 760px) {

        .admin-page .container {
            width:
                min(
                    100% - 28px,
                    1180px
                );
        }

        .admin-page .header-row {
            min-height:
                72px;
        }

        .admin-heading {
            align-items:
                stretch;

            flex-direction:
                column;
        }

        .admin-heading .button {
            align-self:
                flex-start;
        }

        .admin-toolbar {
            grid-template-columns:
                1fr;
        }

        .admin-page .form-grid {
            grid-template-columns:
                1fr;
        }

        .admin-page
        .form-grid
        .full {
            grid-column:
                auto;
        }

        .admin-login-card,
        .admin-page .modal-card {
            padding:
                26px
                20px;
        }
    }


/* =========================================================
   MEGA NAVIGATION
   ========================================================= */

.main-site-header {
    background: rgba(245, 242, 235, 0.96);
    border-bottom: 1px solid rgba(217, 211, 199, 0.85);
    position: sticky;
    top: 0;
    z-index: 80;
}

.main-header-inner {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    min-height: 76px;
    width: min(var(--container), calc(100% - 56px));
}

.main-brand {
    align-items: center;
    display: flex;
    min-width: 0;
    max-width: 100%;
    padding: 6px 0;
}

.main-brand strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 23px;
}

.main-brand span {
    color: var(--text-muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.18em;
    margin-top: 4px;
    text-transform: uppercase;
}

.navigation-cart-button {
    align-items: center;
    background: var(--accent);
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font-weight: 800;
    gap: 10px;
    min-height: 42px;
    padding: 0 18px;
}

.navigation-cart-button strong {
    align-items: center;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    height: 24px;
    justify-content: center;
    min-width: 24px;
    padding: 0 7px;
}

.mega-navigation {
    background: rgba(245, 242, 235, 0.96);
    border-bottom: 1px solid rgba(217, 211, 199, 0.85);
    border-top: 1px solid rgba(217, 211, 199, 0.5);
    position: relative;
    z-index: 75;
}

#site-navigation[data-navigation-mode="categories-only"] .mega-navigation {
    background: rgba(245, 242, 235, 0.94);
    backdrop-filter: blur(18px);
}

.mega-navigation-inner {
    align-items: stretch;
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    width: min(var(--container), calc(100% - 56px));
}

.mega-navigation-item {
    position: static;
}

.mega-navigation-link {
    align-items: center;
    display: flex;
    font-size: 12px;
    font-weight: 800;
    justify-content: center;
    min-height: 52px;
    padding: 0 15px;
    text-align: center;
    transition:
        background var(--transition),
        color var(--transition);
    white-space: nowrap;
}

.mega-navigation-item:hover .mega-navigation-link,
.mega-navigation-item.mobile-open .mega-navigation-link {
    background: var(--text);
    color: #ffffff;
}

.mega-menu {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    border-top: 1px solid rgba(217, 211, 199, 0.8);
    box-shadow: var(--small-shadow);
    left: 0;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 100%;
    transform: translateY(-8px);
    transition:
        opacity var(--transition),
        transform var(--transition),
        visibility var(--transition);
    visibility: hidden;
    width: 100%;
}

.mega-navigation-item:hover .mega-menu,
.mega-navigation-item.mobile-open .mega-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
}

.mega-menu-inner {
    display: grid;
    gap: 50px;
    grid-template-columns: minmax(0, 1fr) 300px;
    margin: 0 auto;
    min-height: 260px;
    padding: 34px 0;
    width: min(var(--container), calc(100% - 56px));
}

.mega-menu-columns {
    display: grid;
    gap: 18px 35px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mega-menu-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mega-menu-column a {
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    transition: color var(--transition);
}

.mega-menu-column a:hover {
    color: var(--accent);
}

.mega-menu-image {
    align-self: center;
    display: block;
    text-align: center;
}

.mega-menu-image img {
    aspect-ratio: 1.6;
    border-radius: var(--radius-small);
    height: 170px;
    object-fit: cover;
    width: 100%;
}

.mega-menu-image span {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    margin-top: 10px;
}

.product-card {
    position: relative;
}

.product-card-main-link {
    display: block;
}

/* =========================================================
   CATEGORY PAGE
   ========================================================= */

.category-page-container,
.individual-product-container {
    margin: 0 auto;
    width: min(var(--container), calc(100% - 56px));
}

.category-page-header {
    border-bottom: 1px solid var(--border);
    padding: 46px 0 38px;
}

.category-page-header h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 5vw, 58px);
    font-weight: 500;
    line-height: 1;
    margin-top: 8px;
}

.category-page-description {
    color: var(--text-muted);
    margin-top: 15px;
    max-width: 650px;
}

.breadcrumb {
    align-items: center;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    gap: 8px;
    margin-bottom: 24px;
}

.breadcrumb a:hover {
    color: var(--accent);
}

.category-products-section {
    padding: 38px 0 90px;
}

.category-toolbar {
    align-items: center;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 26px;
}

.category-toolbar select {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    cursor: pointer;
    min-width: 230px;
    outline: none;
    padding: 11px 16px;
}

.category-product-grid {
    display: grid;
    gap: 35px 22px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.category-product-card {
    min-width: 0;
}

.category-product-image {
    background: var(--surface-muted);
    border-radius: var(--radius-medium);
    display: block;
    height: 310px;
    overflow: hidden;
    position: relative;
}

.category-product-image img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.category-product-information {
    padding: 16px 4px 0;
}

.category-product-information > p {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.category-product-information h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
}

.category-product-style {
    color: var(--text-muted);
    display: block;
    font-size: 12px;
    margin-top: 5px;
}

.category-product-price {
    align-items: center;
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.category-product-price strong {
    font-size: 17px;
}

.category-product-price del {
    color: var(--text-muted);
    font-size: 13px;
}

.category-empty {
    color: var(--text-muted);
    padding: 80px 20px;
    text-align: center;
}

/* =========================================================
   INDIVIDUAL PRODUCT PAGE
   ========================================================= */

.individual-product-page {
    padding: 38px 0 100px;
}

.individual-product-layout {
    align-items: start;
    display: grid;
    gap: 65px;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
}

.individual-product-gallery {
    display: grid;
    gap: 14px;
}

.individual-product-image-area {
    background: var(--surface-muted);
    border-radius: var(--radius-large);
    height: 650px;
    overflow: hidden;
    position: relative;
}

.individual-product-image-area img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.individual-product-image-area .product-badge {
    left: 20px;
    position: absolute;
    top: 20px;
}

.individual-product-thumbnails {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
}

.product-thumbnail {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    height: 86px;
    overflow: hidden;
    padding: 0;
}

.product-thumbnail.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(95, 109, 88, 0.12);
}

.product-thumbnail img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.product-color-options {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
    padding-top: 2px;
}

.product-color-label {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 800;
}

.product-color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.product-color-swatch {
    background: linear-gradient(135deg, var(--swatch-color) 50%, var(--swatch-secondary-color, var(--swatch-color)) 50%);
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow:
        0 0 0 1px rgba(37, 36, 31, 0.18),
        var(--small-shadow);
    cursor: pointer;
    height: 30px;
    padding: 0;
    transition:
        box-shadow var(--transition),
        transform var(--transition);
    width: 30px;
}

.product-color-swatch:hover,
.product-color-swatch.active {
    box-shadow:
        0 0 0 3px rgba(95, 109, 88, 0.24),
        0 0 0 6px rgba(255, 255, 255, 0.95),
        var(--small-shadow);
    transform: translateY(-1px);
}

.individual-product-information {
    padding-top: 25px;
    position: sticky;
    top: 180px;
}

.individual-product-information h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(40px, 5vw, 58px);
    font-weight: 500;
    line-height: 1.02;
    margin-top: 7px;
}

.individual-product-style {
    color: var(--text-muted);
    margin-top: 10px;
}

.individual-product-price-row {
    align-items: center;
    display: flex;
    gap: 14px;
    margin-top: 28px;
}

.individual-product-price-row strong {
    font-size: 30px;
}

.individual-product-price-row del {
    color: var(--text-muted);
}

.individual-product-description {
    color: var(--text-muted);
    line-height: 1.8;
    margin-top: 30px;
}

.individual-product-properties {
    border-bottom: 1px solid var(--border);
    border-top: 1px solid var(--border);
    margin-top: 30px;
}

.individual-product-properties > div {
    display: flex;
    gap: 25px;
    justify-content: space-between;
    padding: 15px 0;
}

.individual-product-properties > div + div {
    border-top: 1px solid var(--border);
}

.individual-product-properties span {
    color: var(--text-muted);
}

.product-property-value {
    color: var(--text);
    font-weight: 900;
    text-align: right;
}

.product-measurements-list {
    display: grid;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.product-measurements-list li {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.product-measurements-list span {
    font-weight: 700;
}

.product-measurements-list strong {
    font-weight: 900;
}

.individual-add-cart {
    margin-top: 30px;
    width: 100%;
}

.modular-options {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0;
    margin-top: 44px;
    overflow: hidden;
}

.modular-options-heading {
    align-items: center;
    background: #f3f5f8;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 18px;
    justify-content: space-between;
    padding: 17px 20px;
}

.modular-options-heading h2 {
    font-family: inherit;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
}

.modular-options-collapse {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--text);
    cursor: pointer;
    display: inline-flex;
    font-size: 20px;
    font-weight: 800;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.modular-options-table {
    display: grid;
    padding: 26px 30px 22px;
}

.modular-options.collapsed .modular-options-table,
.modular-options.collapsed .modular-options-total {
    display: none;
}

.modular-option-row {
    align-items: center;
    display: grid;
    gap: 26px;
    grid-template-columns: minmax(150px, 1.15fr) minmax(110px, 0.85fr) minmax(160px, 0.9fr) minmax(120px, 0.9fr) 40px;
    min-height: 48px;
    padding: 7px 0;
}

.modular-option-header {
    color: #4f4f4f;
    font-size: 16px;
    font-weight: 800;
    min-height: 58px;
}

.modular-option-row strong,
.modular-option-row span {
    min-width: 0;
}

.modular-option-quantity {
    align-items: center;
    border: 1px solid #dde1e7;
    border-radius: 0;
    display: inline-grid;
    grid-template-columns: 36px minmax(72px, 1fr) 36px;
    justify-self: start;
    min-width: 200px;
    overflow: hidden;
}

.modular-option-quantity button {
    background: #eef0f3;
    border: 0;
    cursor: pointer;
    font-weight: 800;
    height: 34px;
}

.modular-option-quantity button:disabled {
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.45;
}

.modular-option-quantity span {
    font-size: 13px;
    font-weight: 500;
    text-align: center;
}

.modular-option-remove {
    align-items: center;
    background: #eef0f3;
    border: 1px solid #e4e6e9;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    font-size: 18px;
    font-weight: 800;
    height: 34px;
    justify-content: center;
    justify-self: end;
    width: 34px;
}

.modular-option-remove:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.modular-options-total {
    align-items: center;
    background: #f7f7f7;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    padding: 15px 30px;
}

.modular-options-total span {
    color: var(--text-muted);
}

.modular-options-total strong {
    font-size: 18px;
}

.related-products-section {
    margin-top: 110px;
}

.product-not-found {
    grid-column: 1 / -1;
    padding: 100px 20px;
    text-align: center;
}

/* =========================================================
   PRODUCT ROUTE RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {
    .mega-navigation-inner {
        justify-content: flex-start;
        overflow-x: auto;
    }

    .mega-menu-columns {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    .mega-menu-inner {
        grid-template-columns: 1fr;
    }

    .mega-menu-image {
        display: none;
    }

    .individual-product-layout {
        grid-template-columns: 1fr;
    }

    .individual-product-information {
        position: static;
    }

    .category-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .main-header-inner,
    .mega-navigation-inner,
    .mega-menu-inner,
    .category-page-container,
    .individual-product-container {
        width: calc(100% - 28px);
    }

    .main-header-inner {
        gap: 14px;
    }

    .main-brand strong {
        font-size: 19px;
    }

    .navigation-cart-button {
        min-height: 38px;
        padding: 0 13px;
    }

    .mega-menu-columns {
        grid-template-columns: 1fr;
    }

    .category-product-grid {
        grid-template-columns: 1fr;
    }

    .category-product-image {
        height: 380px;
    }

    .category-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .category-toolbar select {
        width: 100%;
    }

    .individual-product-image-area {
        height: 470px;
    }

    .modular-options-heading {
        align-items: center;
    }

    .modular-option-header {
        display: none;
    }

    .modular-options-table {
        padding: 18px;
    }

    .modular-option-row {
        gap: 8px;
        grid-template-columns: 1fr;
        padding: 11px 0;
    }

    .modular-option-row + .modular-option-row {
        border-top: 1px solid var(--border);
    }

    .modular-option-quantity {
        justify-self: stretch;
        min-width: 0;
        width: 100%;
    }

    .modular-option-remove {
        justify-self: start;
    }
}

.admin-section {
    margin-top: 34px;
}

.admin-settings-form {
    max-width: 760px;
}

.admin-settings-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-message.success {
    color: var(--accent);
}

.admin-section-heading {
    align-items: flex-end;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 16px;
}

.admin-section-heading h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    font-weight: 500;
    line-height: 1;
    margin: 0;
}

.admin-stats {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.admin-orders-toolbar {
    grid-template-columns: 1fr;
}

.admin-orders-table td {
    vertical-align: top;
}

.admin-order-meta,
.admin-order-total span,
.admin-order-payment span,
.admin-order-products span {
    color: var(--text-muted);
    display: block;
    font-size: 12px;
    line-height: 1.5;
}

.order-status {
    background: rgba(95, 109, 88, 0.12);
    border-radius: 999px;
    color: var(--accent);
    display: inline-flex;
    font-size: 11px;
    font-weight: 800;
    margin-top: 8px;
    padding: 5px 10px;
    text-transform: uppercase;
}

.admin-order-customer,
.admin-order-total,
.admin-order-payment {
    display: grid;
    gap: 5px;
    min-width: 170px;
}

.admin-order-customer a {
    color: var(--text);
    font-size: 13px;
    text-decoration: none;
}

.admin-order-customer a:hover {
    color: var(--accent);
}

.admin-order-address {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.55;
    margin: 4px 0 0;
    max-width: 260px;
}

.admin-order-products {
    display: grid;
    gap: 8px;
    list-style: none;
    margin: 0;
    min-width: 210px;
    padding: 0;
}

.admin-order-products li {
    display: grid;
    gap: 5px;
}

.admin-order-color {
    align-items: center;
    background: rgba(95, 109, 88, 0.08);
    border: 1px solid rgba(95, 109, 88, 0.18);
    border-radius: 10px;
    display: inline-grid;
    gap: 8px;
    grid-template-columns: auto 1fr;
    justify-self: start;
    margin-top: 3px;
    padding: 7px 10px;
}

.admin-order-color strong {
    color: var(--text);
    display: block;
    font-size: 12px;
    line-height: 1.35;
}

.admin-order-color span {
    color: var(--text-muted);
    display: block;
    font-size: 11px;
    line-height: 1.35;
}

.admin-order-color-dot {
    background: linear-gradient(135deg, var(--order-color) 50%, var(--order-secondary-color, var(--order-color)) 50%);
    border: 1px solid rgba(37, 36, 31, 0.2);
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.68);
    height: 18px;
    width: 18px;
}

.admin-order-color.missing {
    background: rgba(185, 103, 31, 0.08);
    border-color: rgba(185, 103, 31, 0.22);
    grid-template-columns: 1fr;
}

.admin-order-modules {
    color: var(--text-muted);
    display: grid;
    font-size: 11px;
    gap: 2px;
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
}

.modular-editor {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: grid;
    gap: 12px;
    padding: 14px;
}

.modular-editor-heading {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.modular-editor-heading strong {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
}

.modular-editor-grid {
    display: grid;
    gap: 10px;
}

.modular-editor-row {
    align-items: end;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 10px;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(160px, 1.4fr) minmax(120px, 1fr) minmax(110px, 0.8fr) minmax(90px, 0.7fr) minmax(90px, 0.7fr) auto;
    padding: 12px;
}

.modular-editor-row label {
    min-width: 0;
}

.modular-editor-row .small-action {
    height: 44px;
    white-space: nowrap;
}

.modular-editor-empty {
    border: 1px dashed var(--border);
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 13px;
    padding: 18px;
    text-align: center;
}

.color-editor-grid {
    display: grid;
    gap: 10px;
}

.color-editor-row {
    align-items: end;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 10px;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(110px, 1fr) repeat(2, minmax(110px, 0.7fr)) minmax(180px, 1.35fr) 52px 34px auto;
    padding: 12px;
}

.color-editor-row label {
    min-width: 0;
}

.color-editor-row input[type="file"] {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    font-size: 12px;
    min-height: 44px;
    padding: 10px;
    width: 100%;
}

.color-image-status {
    color: var(--text-muted);
    display: block;
    font-size: 11px;
    margin-top: 6px;
}

.color-image-preview {
    align-items: center;
    align-self: center;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: inline-flex;
    height: 44px;
    justify-content: center;
    justify-self: center;
    overflow: hidden;
    width: 52px;
}

.color-image-preview img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.color-editor-swatch {
    align-self: center;
    background: linear-gradient(135deg, var(--swatch-color) 50%, var(--swatch-secondary-color, var(--swatch-color)) 50%);
    border: 1px solid rgba(37, 36, 31, 0.2);
    border-radius: 50%;
    display: inline-block;
    height: 28px;
    justify-self: center;
    width: 28px;
}

.color-editor-swatch.invalid {
    background:
        linear-gradient(45deg, transparent 46%, #c0392b 48%, #c0392b 52%, transparent 54%),
        #ffffff;
}

.color-editor-row .small-action {
    height: 44px;
    white-space: nowrap;
}

.measurement-editor {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: grid;
    gap: 12px;
    padding: 14px;
}

.measurement-editor-heading strong {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
}

.measurement-editor-heading {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.measurement-editor-row {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 10px;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(130px, 1.15fr) repeat(4, minmax(95px, 0.8fr)) auto;
    padding: 12px;
}

.measurement-editor-row label {
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
    min-width: 0;
}

.measurement-editor-row input {
    background: #ffffff;
    border: 1px solid rgba(95, 109, 88, 0.52);
    border-radius: 10px;
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
    height: 44px;
    margin-top: 8px;
    padding: 0 13px;
    width: 100%;
}

.measurement-editor-grid {
    display: grid;
    gap: 10px;
}

.measurement-editor-row .small-action {
    height: 44px;
    white-space: nowrap;
}

.discount-preview em {
    display: block;
    font-size: 12px;
    font-style: normal;
    margin-top: 6px;
}

@media (max-width: 760px) {
    .modular-editor-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .modular-editor-heading .button {
        align-self: flex-start;
    }

    .measurement-editor-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .measurement-editor-heading .button {
        align-self: flex-start;
    }

    .modular-editor-row {
        grid-template-columns: 1fr;
    }

    .color-editor-row {
        grid-template-columns: 1fr;
    }

    .measurement-editor-row {
        grid-template-columns: 1fr;
    }

    .modular-editor-row .small-action,
    .color-editor-row .small-action,
    .measurement-editor-row .small-action {
        justify-self: start;
    }

    .color-editor-swatch {
        justify-self: start;
    }

    .admin-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-section-heading h2 {
        font-size: 30px;
    }
}

.content-page {
    padding: 54px 0 96px;
}

.content-page-container {
    margin: 0 auto;
    width: min(920px, calc(100% - 56px));
}

.content-page h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 500;
    line-height: 1;
    margin: 12px 0 18px;
}

.content-page-intro {
    color: var(--text-muted);
    font-size: 17px;
    line-height: 1.7;
    max-width: 740px;
}

.content-section {
    border-top: 1px solid var(--border);
    margin-top: 34px;
    padding-top: 26px;
}

.content-section h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 12px;
}

.content-section p,
.content-section li {
    color: var(--text-muted);
    line-height: 1.8;
}

.content-section ul {
    display: grid;
    gap: 8px;
    margin: 12px 0 0;
    padding-left: 22px;
}

.content-notice {
    background: var(--accent-light);
    border: 1px solid rgba(95, 109, 88, 0.22);
    border-radius: 12px;
    color: var(--accent-dark);
    line-height: 1.7;
    margin-top: 26px;
    padding: 18px;
}
