@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* =========================================================================
   ForMan premium menswear theme
   ========================================================================= */

:root {
    --bg:            #f8f3ee;
    --bg-wash:       #efe7df;
    --surface:       #fffaf5;
    --surface-strong:#ffffff;
    --border:        #e5d8cc;
    --border-strong: #cbb9a9;

    --ink:           #1c1917;
    --ink-soft:      #403831;
    --muted:         #75685f;
    --muted-light:   #9f9186;

    --accent:        #c7a17a;
    --accent-deep:   #7a5738;
    --accent-soft:   #ead6c0;
    --accent-wash:   #f3e8dc;

    --success:       #2e8b57;
    --danger:        #d9534f;

    --shadow-sm:     0 1px 2px rgba(28, 25, 23, 0.05);
    --shadow-md:     0 12px 34px rgba(28, 25, 23, 0.08);
    --shadow-lg:     0 26px 70px rgba(28, 25, 23, 0.14);

    --radius-sm:     8px;
    --radius-md:     14px;
    --radius-lg:     22px;

    --serif:         'Playfair Display', 'Georgia', serif;
    --sans:          'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

    --container:     1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 0%, rgba(199, 161, 122, 0.18), transparent 32%),
        linear-gradient(180deg, #fbf7f2 0%, var(--bg) 42%, #f5eee7 100%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; color: var(--ink); letter-spacing: -0.01em; margin: 0; }
h1 { font-size: 28px; }
h2 { font-size: 32px; }
h3 { font-size: 22px; }
p  { margin: 0; }
a  { color: var(--accent-deep); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--ink); }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding-inline: 40px;
}

/* Material Icons defaults */
.material-icons-outlined {
    font-family: 'Material Icons Outlined';
    font-weight: normal;
    font-style: normal;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'liga';
    vertical-align: middle;
    font-size: 20px;
}

/* =========================================================================
   HEADER
   ========================================================================= */
header {
    background: rgba(248, 243, 238, 0.86);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid rgba(203, 185, 169, 0.55);
    position: sticky;
    top: 0;
    z-index: 100;
}
header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    padding-bottom: 18px;
}

header h1 { margin: 0; font-size: 24px; font-weight: 500; letter-spacing: 0; }
.header-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    font-family: var(--serif);
    font-weight: 600;
}
.header-logo-link:hover { color: var(--accent-deep); }
.header-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(28, 25, 23, 0.12);
}

nav {
    display: flex;
    align-items: center;
    gap: 36px;
}
nav a {
    color: rgba(28, 25, 23, 0.72);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    position: relative;
    padding: 6px 0;
}
nav a:not(.nav-admin-btn)::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}
nav a:not(.nav-admin-btn):hover { color: var(--ink); }
nav a:not(.nav-admin-btn):hover::after { transform: scaleX(1); transform-origin: left; }

nav .nav-admin-btn {
    padding: 10px 18px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    color: var(--ink);
    background: transparent;
    transition: background 0.2s ease, color 0.2s ease;
}
nav .nav-admin-btn::after { display: none; }
nav .nav-admin-btn:hover {
    background: var(--ink);
    color: var(--surface);
}

/* =========================================================================
   HERO — editorial two-column
   ========================================================================= */
.hero-section {
    padding: 92px 0 108px;
    background: transparent;
    position: relative;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 46%;
    background:
        linear-gradient(135deg, rgba(234, 214, 192, 0.72) 0%, rgba(255, 250, 245, 0.58) 100%);
    z-index: 0;
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 86px;
    align-items: center;
}

.hero-content { max-width: 540px; }

.hero-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--accent-deep);
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(54px, 7vw, 94px);
    line-height: 1.02;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0 0 24px;
}
.hero-title em {
    font-style: italic;
    color: var(--accent-deep);
    text-shadow: 0 12px 30px rgba(122, 87, 56, 0.10);
}

.hero-subtitle {
    font-family: var(--serif);
    font-style: italic;
    font-size: 22px;
    line-height: 1.4;
    color: var(--ink-soft);
    margin: 0 0 20px;
    font-weight: 400;
}

.hero-description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--muted);
    max-width: 460px;
    margin: 0 0 40px;
}

.hero-cta-row {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--surface);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: background 0.25s ease, transform 0.25s ease;
}
.hero-cta:hover {
    background: var(--accent-deep);
    color: var(--surface);
    transform: translateY(-1px);
}
.hero-cta .material-icons-outlined {
    font-size: 18px;
    transition: transform 0.25s ease;
}
.hero-cta:hover .material-icons-outlined { transform: translateX(3px); }

.hero-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-strong);
    padding-bottom: 4px;
}
.hero-link:hover { color: var(--ink); border-color: var(--ink); }

/* Hero visual */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-visual-frame {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 4 / 5;
    border-radius: 28px;
    overflow: hidden;
    background: var(--bg-wash);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.62);
}
.hero-visual-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 6s ease;
    z-index: 1;
}
.hero-visual:hover .hero-visual-img { transform: scale(1.04); }
.hero-visual-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-wash) 0%, var(--bg-wash) 100%);
    z-index: 0;
}
.hero-visual-badge {
    position: absolute;
    top: 50px;
    left: 24px;
    background: transparent;
    backdrop-filter: none;
    padding: 0;
    border-radius: 0;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 250, 245, 0.86);
    z-index: 2;
}

.hero-visual-brand {
    position: absolute;
    top: 22px;
    left: 24px;
    z-index: 2;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--surface);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.24);
}

.hero-visual-img-faint {
    opacity: 0.06;
    filter: saturate(0.9) contrast(0.95);
    transform: scale(1.02);
}

.hero-visual-frame::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 42%;
    z-index: 1;
    background: linear-gradient(180deg, transparent, rgba(28, 25, 23, 0.38));
    pointer-events: none;
}

/* =========================================================================
   MAIN / SECTION TITLE
   ========================================================================= */
main {
    flex-grow: 1;
    padding-top: 82px;
    padding-bottom: 80px;
}

.section-title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 46px;
    line-height: 1.1;
    text-align: center;
    color: var(--ink);
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}
.section-kicker {
    display: block;
    text-align: center;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--accent-deep);
    margin-bottom: 14px;
}
.section-lead {
    text-align: center;
    color: var(--muted);
    font-size: 15px;
    max-width: 540px;
    margin: 16px auto 0;
}
.section-head { margin-bottom: 56px; }

/* Decorated title — clean hairline with dot */
.section-title.decorated {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 36px;
}
.section-title-text { white-space: nowrap; }
.section-title-ornament {
    flex: 0 0 72px;
    height: 1px;
    background: var(--border-strong);
    position: relative;
}
.section-title-ornament::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    transform: translateY(-50%);
}
.section-title-ornament.left::after  { right: 0; }
.section-title-ornament.right::after { left: 0; }

/* =========================================================================
   PRODUCT GRID
   ========================================================================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 38px 30px;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: rgba(255, 250, 245, 0.5);
    border-radius: 22px;
    padding: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.product-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 250, 245, 0.86);
    box-shadow: var(--shadow-md);
}

.product-card-single-image,
.product-card-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-wash), #f8f0e8);
    margin-bottom: 18px;
}
.product-image-single,
.product-card-images {
    width: 100%;
    height: 100%;
    position: relative;
}
.product-image-single,
.product-card-images .product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}
.product-card-images .product-image {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.product-card-images .product-image.active { opacity: 1; }
.product-card:hover .product-image-single,
.product-card:hover .product-card-images .product-image.active {
    transform: scale(1.04);
}

/* Slider controls inside card */
.product-card-slider-controls {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 3;
}
.product-card:hover .product-card-slider-controls { opacity: 1; }

.product-card-slider-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--ink);
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}
.product-card-slider-btn:hover { background: var(--bg-wash); }

.product-card-slider-dots { display: flex; gap: 6px; align-items: center; }
.product-card-slider-dots .slider-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--border-strong);
    cursor: pointer;
    transition: all 0.25s ease;
}
.product-card-slider-dots .slider-dot.active {
    background: var(--ink);
    width: 16px;
    border-radius: 3px;
}

/* Product info */
.product-info {
    display: flex;
    flex-direction: column;
    padding: 0 4px 4px;
}
.product-name {
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.3;
    margin-bottom: 8px;
    min-height: 44px;
}
.product-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 16px;
}
.product-price-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.product-price {
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 500;
    color: var(--accent-deep);
}
.btn-add-to-cart {
    padding: 10px 18px;
    background: var(--ink);
    color: var(--surface);
    border: none;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.25s ease, transform 0.25s ease;
}
.btn-add-to-cart:hover {
    background: var(--accent-deep);
    transform: translateY(-1px);
}
.btn-add-to-cart.added { background: var(--success); }

/* =========================================================================
   FEATURES STRIP
   ========================================================================= */
.features-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 44px 24px;
    margin-top: 80px;
    background: rgba(255, 250, 245, 0.76);
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--shadow-sm);
    align-items: stretch;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 28px;
    border-left: 1px solid var(--border);
    min-height: 72px;
}
.feature-item:first-child {
    border-left: none;
}
.feature-icon {
    flex: 0 0 auto;
    color: var(--accent-deep);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px !important;
    line-height: 1;
}
.feature-text { min-width: 0; }
.feature-text strong {
    display: block;
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 4px;
    line-height: 1.25;
}
.feature-text p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

/* =========================================================================
   EDITORIAL BANNER
   ========================================================================= */
.editorial-banner {
    position: relative;
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    align-items: stretch;
    min-height: 320px;
    margin-top: 72px;
    overflow: hidden;
    border-radius: 28px;
    background: var(--surface);
    border: 1px solid rgba(203, 185, 169, 0.72);
    box-shadow: var(--shadow-md);
}
.editorial-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 320px;
}
.editorial-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 46px;
    background:
        linear-gradient(135deg, rgba(255, 250, 245, 0.94), rgba(239, 231, 223, 0.9));
}
.editorial-panel .section-kicker {
    text-align: left;
    margin-bottom: 14px;
}
.editorial-panel h2 {
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.08;
    margin-bottom: 16px;
}
.editorial-panel p {
    color: var(--muted);
    max-width: 420px;
    margin-bottom: 26px;
}
.editorial-panel .hero-link {
    width: fit-content;
}

/* =========================================================================
   FOOTER
   ========================================================================= */
footer {
    margin-top: auto;
    background:
        radial-gradient(circle at 12% 0%, rgba(199, 161, 122, 0.16), transparent 34%),
        #1c1917;
    color: #ded2c8;
    position: relative;
}
.footer-wrapper { background: transparent; padding: 72px 0 0; }

.footer-main {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
    gap: 48px;
    padding-bottom: 56px;
}

.footer-brand {
    text-align: left;
    padding: 0;
    border: none;
}
.footer-logo {
    font-family: var(--serif);
    font-size: 34px;
    font-weight: 500;
    color: #fffaf5;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
}
.footer-tagline {
    font-style: italic;
    color: #bcaea2;
    font-size: 15px;
    margin: 0;
    max-width: 280px;
}

.footer-col-title {
    display: block;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--surface);
    margin-bottom: 18px;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: none;
    margin: 0;
}
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    transition: none;
}
.footer-contact-item:hover {
    background: transparent;
    border: none;
    transform: none;
    box-shadow: none;
}
.footer-icon {
    flex: 0 0 auto;
    color: var(--accent) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px !important;
    line-height: 1;
    margin-top: 2px;
}
.footer-contact-item strong {
    display: block;
    font-family: var(--sans);
    font-weight: 500;
    font-size: 14px;
    color: var(--surface);
    margin-bottom: 2px;
    letter-spacing: 0;
}
.footer-contact-item p {
    color: #bcaea2;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}
.footer-contact-item a {
    color: #ded2c8;
    font-size: 13px;
    display: block;
    overflow-wrap: anywhere;
}
.footer-contact-item a:hover { color: var(--surface); }

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
    border: none;
    align-items: flex-start;
    justify-content: flex-start;
}
.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    color: #ded2c8;
    font-size: 13px;
    font-weight: 400;
    background: transparent;
    border-radius: 0;
    letter-spacing: 0;
    text-transform: none;
}
.footer-links a::after { display: none; }
.footer-links a:hover { color: var(--surface); background: transparent; }
.footer-links a .material-icons-outlined {
    font-size: 16px !important;
    width: auto;
    height: auto;
    background: transparent;
    color: var(--accent-soft);
    border-radius: 0;
}

.footer-bottom {
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    text-align: left;
}
.footer-bottom p {
    color: #a99a8f;
    font-size: 12px;
    letter-spacing: 0.04em;
    margin: 0;
}
.footer-payment-methods {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 0;
    margin: 0;
    border: none;
}
.payment-label {
    color: #a9988f;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
}
.payment-icons { display: inline-flex; align-items: center; gap: 10px; }
.payment-icon {
    height: 22px;
    width: auto;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}
.payment-icon:hover { opacity: 1; }

/* =========================================================================
   PRODUCT MODAL
   ========================================================================= */
.product-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(27, 21, 18, 0.55);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.product-modal.show { display: flex; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.product-modal-content {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
    width: min(1040px, 94vw);
    max-height: 88vh;
    background: var(--surface);
    border: 1px solid rgba(203, 185, 169, 0.72);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to   { opacity: 1; transform: none; }
}
.product-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
    font-size: 24px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    border: 1px solid var(--border);
    transition: background 0.2s ease;
}
.product-modal-close:hover { background: var(--bg-wash); }

.product-image-slider {
    position: relative;
    min-width: 0;
    min-height: 520px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slider-images {
    position: relative;
    width: 100%;
    height: 100%;
}
.slider-images .product-modal-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 30px;
}
.slider-images .product-modal-image.active { opacity: 1; }

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: var(--ink);
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 3;
}
.slider-btn:hover { background: var(--ink); color: var(--surface); }
.slider-btn-prev { left: 16px; }
.slider-btn-next { right: 16px; }

.slider-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}
.slider-dots .slider-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(27, 21, 18, 0.25);
    cursor: pointer;
    transition: all 0.25s ease;
}
.slider-dots .slider-dot.active {
    background: var(--ink);
    width: 22px;
    border-radius: 4px;
}

.product-modal-details {
    min-width: 0;
    padding: 56px 48px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
    background:
        linear-gradient(180deg, rgba(255, 250, 245, 0.98), rgba(248, 243, 238, 0.98));
}
.product-modal-name {
    font-family: var(--serif);
    font-size: clamp(30px, 3.5vw, 42px);
    font-weight: 500;
    color: var(--ink);
    line-height: 1.15;
    margin-bottom: 16px;
}
.product-modal-price {
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 500;
    color: var(--accent-deep);
    margin-bottom: 26px;
}
.product-modal-description {
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 34px;
}
.product-modal-description p { margin-bottom: 10px; }
.product-modal-actions { margin-top: auto; padding-top: 16px; }
.btn-add-to-cart-modal {
    width: 100%;
    padding: 17px 24px;
    background: var(--ink);
    color: var(--surface);
    border: none;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: background 0.25s ease, transform 0.25s ease;
    box-shadow: 0 14px 34px rgba(28, 25, 23, 0.16);
}
.btn-add-to-cart-modal:hover {
    background: var(--accent-deep);
    transform: translateY(-1px);
}
.btn-add-to-cart-modal.added { background: var(--success); }

/* =========================================================================
   CART
   ========================================================================= */
main.container > h2 {
    font-family: var(--serif);
    font-size: 36px;
    font-weight: 500;
    margin-bottom: 32px;
}

.cart-page {
    padding-top: 54px;
}

.cart-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 32px;
    padding: 34px 38px;
    border: 1px solid rgba(203, 185, 169, 0.74);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255, 250, 245, 0.94), rgba(239, 231, 223, 0.82)),
        url('../images/forman-lifestyle.png') center / cover;
    background-blend-mode: screen;
    box-shadow: var(--shadow-md);
}

.cart-hero .section-kicker {
    text-align: left;
    margin-bottom: 12px;
}

.cart-hero h2 {
    font-family: var(--serif);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 500;
    line-height: 1.05;
    margin: 0 0 12px;
}

.cart-hero p {
    max-width: 560px;
    color: var(--muted);
}

.cart-hero-logo {
    width: 84px;
    height: 84px;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
}

#cart-items { display: flex; flex-direction: column; gap: 14px; }
.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 250, 245, 0.86);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.cart-item:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.cart-item-image {
    width: 104px;
    height: 132px;
    object-fit: cover;
    border-radius: 16px;
    background: var(--bg-wash);
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 6px;
}
.cart-item-price {
    font-family: var(--serif);
    font-size: 18px;
    color: var(--accent-deep);
    font-weight: 500;
}
.cart-item-quantity {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}
.cart-item-quantity button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--ink);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}
.cart-item-quantity button:hover { background: var(--bg-wash); }
.cart-item-quantity {
    font-size: 13px;
    color: var(--muted);
    letter-spacing: 0.02em;
}
.cart-item-total {
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 500;
    color: var(--ink);
    white-space: nowrap;
    margin-left: auto;
}
.cart-item-remove,
.btn-remove {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.cart-item-remove:hover,
.btn-remove:hover {
    color: var(--danger);
    border-color: rgba(180, 75, 75, 0.4);
    background: rgba(180, 75, 75, 0.06);
}

.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 72px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
}
.empty-cart p {
    font-family: var(--serif);
    font-size: 22px;
    color: var(--ink);
    margin: 0;
}
.empty-cart a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--ink) !important;
    color: var(--surface) !important;
    border-radius: 999px !important;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.25s ease;
}
.empty-cart a:hover {
    background: var(--accent-deep) !important;
    transform: translateY(-1px);
}

/* Payment return banners (styled via JS inline - override with important where possible) */
#payment-return-banner {
    border-radius: var(--radius-md) !important;
    padding: 18px 22px !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
    margin-bottom: 22px !important;
}

/* UPC payment prepared container */
#upc-payment-container {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-sm) !important;
    padding: 28px !important;
    margin: 28px auto !important;
    max-width: 640px !important;
}
#upc-payment-container h3 {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 14px;
    color: var(--ink);
}
#upc-payment-container p { color: var(--ink-soft); font-size: 14px; line-height: 1.6; }

.cart-total {
    margin-top: 26px;
    padding: 28px;
    background: rgba(255, 250, 245, 0.92);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
}
.cart-total-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.cart-total-label {
    display: block;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}
.cart-total-price {
    font-family: var(--serif);
    font-size: 32px;
    font-weight: 500;
    color: var(--ink);
}
.btn-pay {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--ink);
    color: var(--surface);
    border: none;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}
.btn-pay:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn-pay-icon { font-size: 16px; }

/* =========================================================================
   PAYMENT STATUS PAGES
   ========================================================================= */
.payment-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 72px;
    padding-bottom: 72px;
}

.payment-status-card {
    width: min(680px, 100%);
    padding: 42px;
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(255, 250, 245, 0.98), rgba(248, 243, 238, 0.96));
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.payment-status-logo {
    width: 76px;
    height: 76px;
    margin: 0 auto 22px;
    border-radius: 22px;
    box-shadow: var(--shadow-md);
}

.payment-status-card .section-kicker {
    margin-bottom: 12px;
}

.payment-status-card h2 {
    font-size: clamp(34px, 5vw, 48px);
    margin-bottom: 14px;
}

.payment-status-card p {
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.7;
}

.payment-status-card strong {
    color: var(--ink);
}

.payment-status-meta {
    margin-top: 18px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(234, 214, 192, 0.42);
    font-size: 14px !important;
}

.payment-status-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.payment-status-success {
    border-color: rgba(46, 139, 87, 0.28);
}

.payment-status-fail {
    border-color: rgba(217, 83, 79, 0.30);
}

/* =========================================================================
   DELIVERY MODAL
   ========================================================================= */
.delivery-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(27, 21, 18, 0.55);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.delivery-modal.show { display: flex; animation: fadeIn 0.25s ease; }
.delivery-modal-content {
    position: relative;
    background:
        linear-gradient(180deg, rgba(255, 250, 245, 0.98), rgba(248, 243, 238, 0.98));
    border: 1px solid rgba(203, 185, 169, 0.74);
    border-radius: 28px;
    padding: 44px 40px;
    width: min(520px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.delivery-modal-content h2 {
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 28px;
}
.delivery-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-wash);
    color: var(--ink);
    font-size: 22px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: background 0.2s ease;
}
.delivery-modal-close:hover { background: var(--border); }

.delivery-modal-content .form-group { margin-bottom: 18px; }
.delivery-modal-content label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 8px;
}
.delivery-modal-content input,
.delivery-modal-content textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    color: var(--ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.delivery-modal-content input:focus,
.delivery-modal-content textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(182, 123, 123, 0.15);
}
.delivery-modal-content textarea { resize: vertical; min-height: 84px; }
.delivery-modal-content .form-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--muted-light);
    line-height: 1.5;
}
.delivery-info {
    background: rgba(234, 214, 192, 0.45);
    border: 1px solid rgba(203, 185, 169, 0.68);
    padding: 16px 18px;
    border-radius: 16px;
    margin: 20px 0;
}
.delivery-info p {
    font-size: 13px;
    color: var(--ink-soft);
    line-height: 1.6;
    margin: 6px 0;
}
.delivery-info p:first-child { margin-top: 0; }
.delivery-info p:last-child  { margin-bottom: 0; }

.acquiring-pending-content {
    max-width: 540px;
    text-align: center;
}

.acquiring-pending-logo {
    width: 76px;
    height: 76px;
    margin: 0 auto 22px;
    border-radius: 22px;
    box-shadow: var(--shadow-md);
}

.acquiring-pending-content .section-kicker {
    margin-bottom: 12px;
}

.acquiring-pending-content p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 28px;
}

.btn-pay-modal {
    width: 100%;
    padding: 16px;
    background: var(--ink);
    color: var(--surface);
    border: none;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
}
.btn-pay-modal:hover:not(:disabled) {
    background: var(--accent-deep);
    transform: translateY(-1px);
}
.btn-pay-modal:disabled {
    background: var(--border-strong);
    cursor: not-allowed;
}

/* =========================================================================
   FOOTER MODAL
   ========================================================================= */
.footer-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1500;
    background: rgba(27, 21, 18, 0.55);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.footer-modal.show { display: flex; animation: fadeIn 0.25s ease; }
.footer-modal-content {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 44px 40px;
    width: min(740px, 100%);
    max-height: 86vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    color: var(--ink);
}
.footer-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-wash);
    color: var(--ink);
    font-size: 22px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: background 0.2s ease;
}
.footer-modal-close:hover { background: var(--border); }
#footer-modal-body h2 {
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 20px;
}
#footer-modal-body h3 {
    font-family: var(--serif);
    font-size: 20px;
    color: var(--ink);
    margin: 22px 0 10px;
}
#footer-modal-body p {
    font-size: 15px;
    color: var(--ink-soft);
    line-height: 1.7;
    margin-bottom: 14px;
}
#footer-modal-body ul { list-style: none; padding-left: 0; margin: 0 0 14px; }
#footer-modal-body ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    color: var(--ink-soft);
    font-size: 14px;
}
#footer-modal-body ul li:last-child { border-bottom: none; }
#footer-modal-body a { color: var(--accent-deep); }
#footer-modal-body a:hover { color: var(--ink); }

/* =========================================================================
   FLOATING CART BUTTON
   ========================================================================= */
.floating-cart-btn {
    position: fixed;
    right: 28px;
    bottom: 28px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--surface);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    z-index: 90;
    transition: background 0.25s ease, transform 0.25s ease;
}
.floating-cart-btn:hover {
    background: var(--accent-deep);
    transform: translateY(-2px);
    color: var(--surface);
}
.cart-icon { font-size: 24px !important; color: var(--surface); }
.cart-count-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--surface);
    font-size: 11px;
    font-weight: 600;
    line-height: 22px;
    text-align: center;
    display: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.cart-count-badge.show { display: block; }
.cart-count-badge:empty { display: none; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1100px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-main { grid-template-columns: 1fr 1fr; gap: 40px; }
    .features-strip { grid-template-columns: repeat(2, 1fr); padding: 36px 20px; }
    .feature-item { padding: 14px 20px; }
    .feature-item:nth-child(3) { border-left: none; border-top: 1px solid var(--border); }
    .feature-item:nth-child(4) { border-top: 1px solid var(--border); }
    .editorial-banner { grid-template-columns: 1fr; }
    .editorial-banner img { max-height: 380px; }
}

@media (max-width: 860px) {
    .container { padding-inline: 24px; }
    .hero-section { padding: 56px 0 72px; }
    .hero-section::before { display: none; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual-frame { max-width: 420px; margin: 0 auto; }
    .hero-title { font-size: clamp(40px, 10vw, 64px); }

    main { padding-top: 56px; padding-bottom: 56px; }
    .section-title { font-size: 32px; }
    .section-title.decorated { font-size: 26px; gap: 12px; }
    .section-title-ornament { flex: 0 0 40px; }

    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
    .product-name { font-size: 15px; min-height: 0; }
    .product-price { font-size: 18px; }
    .btn-add-to-cart { padding: 8px 12px; font-size: 11px; letter-spacing: 0.1em; }

    .features-strip { grid-template-columns: 1fr; padding: 16px; margin-top: 56px; }
    .feature-item { padding: 16px; border-left: none; border-top: 1px solid var(--border); min-height: 0; }
    .feature-item:first-child { border-top: none; }
    .editorial-banner { margin-top: 56px; border-radius: 22px; }
    .editorial-panel { padding: 32px 24px; }

    header .container { flex-wrap: wrap; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
    nav { gap: 20px; }
    nav a { font-size: 12px; letter-spacing: 0.08em; }

    .footer-main { grid-template-columns: 1fr; gap: 36px; padding-bottom: 40px; }
    .footer-bottom { flex-direction: column; text-align: center; padding: 24px 0; }
    .footer-payment-methods { justify-content: center; }

    .product-modal-content {
        grid-template-columns: 1fr;
        max-height: 92vh;
        width: min(560px, 94vw);
    }
    .product-image-slider {
        min-height: 0;
        height: 320px;
    }
    .slider-images .product-modal-image {
        padding: 18px;
    }
    .product-modal-details { padding: 28px 24px; }

    .delivery-modal-content { padding: 32px 24px; }
    .footer-modal-content { padding: 32px 24px; }

    .cart-item { flex-wrap: wrap; }
    .cart-item-image { width: 80px; height: 100px; }
    .cart-hero {
        align-items: flex-start;
        padding: 28px 24px;
    }
    .cart-hero-logo {
        width: 62px;
        height: 62px;
        border-radius: 18px;
    }
    .cart-total-content { flex-direction: column; align-items: stretch; }
    .btn-pay { justify-content: center; }

    .floating-cart-btn { right: 20px; bottom: 20px; width: 50px; height: 50px; }
}

@media (max-width: 520px) {
    .products-grid { grid-template-columns: 1fr; }
    .hero-cta { width: 100%; justify-content: center; }
    .cart-hero {
        flex-direction: column;
    }
}

/* =========================================================================
   MINI-CART DRAWER
   ========================================================================= */
.floating-cart-btn {
    border: none;
    cursor: pointer;
}

.mini-cart-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(27, 21, 18, 0.45);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}
.mini-cart-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.mini-cart {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 420px;
    max-width: 92vw;
    background: var(--surface);
    box-shadow: -20px 0 60px rgba(30, 20, 16, 0.18);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1001;
}
.mini-cart.show {
    transform: translateX(0);
}

.mini-cart-header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 26px;
    border-bottom: 1px solid var(--border);
}
.mini-cart-title {
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 500;
    color: var(--ink);
    margin: 0;
}
.mini-cart-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg-wash);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}
.mini-cart-close:hover { background: var(--border); }
.mini-cart-close .material-icons-outlined { font-size: 20px; }

.mini-cart-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 18px 26px;
}
.mini-cart-loading,
.mini-cart-empty {
    color: var(--muted);
    font-size: 14px;
    text-align: center;
    padding: 40px 0;
    margin: 0;
}
.mini-cart-empty-title {
    font-family: var(--serif);
    color: var(--ink);
    font-size: 20px;
    margin-bottom: 6px;
}

.mini-cart-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.mini-cart-item {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 14px;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.mini-cart-item:last-child { border-bottom: none; padding-bottom: 0; }
.mini-cart-item-image {
    width: 72px;
    height: 88px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: var(--bg-wash);
}
.mini-cart-item-info { min-width: 0; }
.mini-cart-item-name {
    font-family: var(--serif);
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.3;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mini-cart-item-meta {
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.02em;
}
.mini-cart-item-price {
    font-family: var(--serif);
    font-size: 15px;
    color: var(--ink);
    font-weight: 500;
    margin-top: 4px;
}
.mini-cart-item-remove {
    align-self: flex-start;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.mini-cart-item-remove:hover {
    color: var(--danger);
    border-color: rgba(180, 75, 75, 0.4);
    background: rgba(180, 75, 75, 0.06);
}
.mini-cart-item-remove .material-icons-outlined { font-size: 16px; }

.mini-cart-footer {
    flex: 0 0 auto;
    padding: 20px 26px 28px;
    border-top: 1px solid var(--border);
    background: var(--bg);
}
.mini-cart-footer[hidden] { display: none !important; }

.mini-cart-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
}
.mini-cart-total > span:first-child {
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}
.mini-cart-total-value {
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 500;
    color: var(--ink);
}
.mini-cart-checkout {
    width: 100%;
    padding: 14px 20px;
    background: var(--ink);
    color: var(--surface);
    border: none;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.25s ease, transform 0.25s ease;
}
.mini-cart-checkout:hover {
    background: var(--accent-deep);
    transform: translateY(-1px);
}
.mini-cart-checkout .material-icons-outlined { font-size: 18px; }
.mini-cart-view {
    display: block;
    margin-top: 12px;
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 500;
}
.mini-cart-view:hover { color: var(--ink); }

@media (max-width: 520px) {
    .mini-cart { width: 100%; max-width: 100%; }
    .mini-cart-header,
    .mini-cart-body,
    .mini-cart-footer { padding-inline: 20px; }
}
