:root {
    --ink: #222a35;
    --muted: #667083;
    --paper: #ffffff;
    --cloud: #f5f8fb;
    --line: #dde6ee;
    --coral: #ff6b6b;
    --teal: #0aa6a6;
    --sun: #ffd166;
    --leaf: #66bb6a;
    --violet: #7c5cff;
    --blue: #4f8cff;
    --danger: #d83c4b;
    --shadow: 0 20px 55px rgba(34, 42, 53, .13);
    --soft-shadow: 0 12px 28px rgba(34, 42, 53, .08);
    --hover-shadow: 0 25px 50px -12px rgba(255, 107, 107, 0.45);
    --radius: 8px;
    --page-bg: #fbfcff;
}

[data-theme="dark"] {
    --ink: #f0f6fc;
    --muted: #8b949e;
    --paper: #161b22;
    --cloud: #21262d;
    --line: #30363d;
    --coral: #ff7b72;
    --teal: #3fb950;
    --sun: #e3b341;
    --leaf: #56d364;
    --violet: #8957e5;
    --blue: #58a6ff;
    --shadow: 0 20px 55px rgba(0, 0, 0, .4);
    --soft-shadow: 0 12px 28px rgba(0, 0, 0, .3);
    --page-bg: #0d1117;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--page-bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

a {
    color: inherit;
    text-decoration: none;
}

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

button {
    cursor: pointer;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-family: "Fredoka", Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
    line-height: 1.12;
    letter-spacing: 0;
}

p {
    color: var(--muted);
}

.section-pad {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 78px 0;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: var(--coral);
    color: white;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(255, 107, 107, .25);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    white-space: nowrap;
}

.button:hover {
    transform: translateY(-4px);
    box-shadow: var(--hover-shadow);
}

.button.small {
    min-height: 38px;
    padding: 0 16px;
    font-size: .9rem;
}

.button.ghost {
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .55);
    box-shadow: none;
    color: white;
}

.button.dark {
    background: var(--ink);
    box-shadow: 0 10px 24px rgba(34, 42, 53, .22);
}

.button.full {
    width: 100%;
}

.button.ghost-danger {
    background: #fff;
    color: var(--danger);
    border: 1px solid rgba(216, 60, 75, .25);
    box-shadow: none;
}

.text-link {
    color: var(--teal);
    font-weight: 800;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: block;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.header-top {
    position: relative;
    background: linear-gradient(135deg, #ff4081, #ff80ab, #ff4081);
    background-size: 200% 100%;
    animation: promoShimmer 6s ease infinite;
    color: #fff;
    overflow: hidden;
}

.header-top::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
    animation: promoSheen 3s ease-in-out infinite;
}

.header-top-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 22px;
    padding: 7px max(16px, calc((100vw - 1180px) / 2));
    font-size: .84rem;
    font-weight: 750;
    position: relative;
    z-index: 1;
}

.promo-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 1px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.28);
    font-size: .76rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
    animation: badgePulse 2s ease-in-out infinite;
}

.promo-sep {
    color: rgba(255,255,255,.45);
    font-weight: 400;
}

.promo-cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 30px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.22);
    color: #fff;
    font-weight: 900;
    font-size: .82rem;
    transition: background .2s ease, transform .2s ease;
}

.promo-cta:hover {
    background: rgba(255,255,255,.38);
    transform: translateX(2px);
}

.header-main {
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr) auto;
    align-items: center;
    gap: 24px;
    padding: 16px max(24px, calc((100vw - 1180px) / 2));
}

.header-gradient-line {
    display: none;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-logo-img {
    height: 72px;
    width: auto;
    object-fit: contain;
    border-radius: var(--radius);
    transform: scale(1.4);
    transform-origin: left center;
    margin-right: 32px;
}

[data-theme="dark"] .brand:not(.footer-brand) .brand-logo-img {
    content: url('/gpt/petaccessories/assets/images/dark-header-logo.png');
}

.brand strong {
    display: block;
    font-size: 1.15rem;
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.2;
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px max(24px, calc((100vw - 1180px) / 2));
    background: var(--ink);
    margin-bottom: -2px;
}

.admin-sidebar nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #425064;
    font-weight: 750;
}

.main-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: white;
    font-weight: 750;
    transition: background 0.2s ease;
}

.main-nav a.active,
.main-nav a:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

.admin-sidebar nav a.active,
.admin-sidebar nav a:hover {
    color: var(--ink);
    background: #eef8f8;
}

.main-nav .nav-auth {
    display: none;
}

.header-search {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
}

.header-search input {
    min-height: 46px;
    padding-right: 52px;
    border-radius: 999px;
    background: #f6fafc;
}

.header-search button {
    position: absolute;
    right: 5px;
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: var(--teal);
    color: white;
}

.header-search svg,
.filter-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    color: #435064;
    font-weight: 850;
    background: #f4f8fb;
}

.auth-link:hover {
    color: var(--ink);
    background: #eafafa;
}

.auth-link.register {
    background: var(--sun);
    color: var(--ink);
}

.cart-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--ink);
    color: white;
    font-weight: 800;
}

.cart-dot {
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--sun);
    color: var(--ink);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 8px;
    background: var(--cloud);
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: var(--ink);
}

.flash {
    width: min(1180px, calc(100% - 32px));
    margin: 16px auto 0;
    padding: 14px 18px;
    border-radius: var(--radius);
    background: #eafaf2;
    color: #11643c;
    font-weight: 750;
}

.flash.error {
    background: #fff0f2;
    color: var(--danger);
}

.hero-slider {
    position: relative;
    height: 78vh;
    min-height: 560px;
    max-height: 760px;
    overflow: hidden;
}

.hero-slider::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: -120px;
    right: -80px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,107,107,.22) 0%, transparent 70%);
    animation: blobFloat 8s ease-in-out infinite;
    pointer-events: none;
}

.hero-slider::after {
    content: "";
    position: absolute;
    z-index: 2;
    bottom: -100px;
    left: -60px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(10,166,166,.18) 0%, transparent 70%);
    animation: blobFloat 10s ease-in-out 2s infinite;
    pointer-events: none;
}

.slides,
.slide {
    position: absolute;
    inset: 0;
}

.slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity .7s ease;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(90deg, rgba(20, 28, 39, .86), rgba(20, 28, 39, .54) 46%, rgba(20, 28, 39, .12));
    animation: overlayPulse 8s ease-in-out infinite;
}

@keyframes overlayPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .92; }
}

.slide-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    color: white;
}

.slide-copy {
    width: min(680px, 100%);
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(34, 42, 53, .72), rgba(34, 42, 53, .42));
    box-shadow: 0 28px 70px rgba(0, 0, 0, .24);
    backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
}

.slide-content span,
.section-heading span,
.story-copy span,
.shop-hero span,
.page-hero span,
.newsletter-band span,
.admin-hero span {
    color: var(--teal);
    font-size: .82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.slide-content span {
    color: var(--sun);
}

.slide-content h1 {
    max-width: 730px;
    margin: 12px 0 18px;
    font-size: 4rem;
}

.slide-content p {
    max-width: 580px;
    color: rgba(255, 255, 255, .86);
    font-size: 1.14rem;
}

.slide-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 4px;
}

.slide-points strong {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .15);
    color: white;
    font-size: .82rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 18px;
}

.slider-controls {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 26px;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.slider-controls button {
    width: 42px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .5);
}

.slider-controls button.active {
    background: var(--sun);
    box-shadow: 0 0 12px rgba(255,209,102,.6);
    animation: dotGlow 2s ease-in-out infinite;
}

@keyframes dotGlow {
    0%, 100% { box-shadow: 0 0 8px rgba(255,209,102,.4); }
    50% { box-shadow: 0 0 18px rgba(255,209,102,.8); }
}

.slider-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.8rem;
    font-weight: 900;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.slider-arrow:hover {
    background: var(--coral);
    border-color: var(--coral);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 12px 40px rgba(255, 107, 107, 0.5);
}

.slider-arrow.prev {
    left: 32px;
}

.slider-arrow.next {
    right: 32px;
}

.home-page .category-ribbon,
.home-page .product-section {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-left: max(16px, calc((100vw - 1180px) / 2));
    padding-right: max(16px, calc((100vw - 1180px) / 2));
}

.home-page .category-ribbon {
    background: linear-gradient(135deg, #fff4e8, #e7fbff 48%, #f1efff, #fff4e8);
    background-size: 300% 300%;
    animation: bgShift 10s ease infinite;
}

.home-page .product-section {
    background: linear-gradient(135deg, #fff9df, #fff0f2 46%, #eefafa, #fff9df);
    background-size: 300% 300%;
    animation: bgShift 12s ease infinite;
}

.home-page .product-section.recent {
    background: linear-gradient(135deg, #ecfbf4, #f5f0ff 48%, #fff6df, #ecfbf4);
    background-size: 300% 300%;
    animation: bgShift 14s ease infinite;
}

.home-page .category-card {
    border: 0;
}

.home-page .product-card:nth-child(4n+1) {
    border-top: 5px solid var(--coral);
}

.home-page .product-card:nth-child(4n+2) {
    border-top: 5px solid var(--teal);
}

.home-page .product-card:nth-child(4n+3) {
    border-top: 5px solid var(--sun);
}

.home-page .product-card:nth-child(4n+4) {
    border-top: 5px solid var(--leaf);
}

.section-heading {
    max-width: 720px;
    margin-bottom: 30px;
}

.section-heading.with-link {
    display: flex;
    align-items: end;
    justify-content: space-between;
    max-width: none;
    gap: 20px;
}

.section-heading h2 {
    margin: 8px 0 0;
    font-size: 2.55rem;
}

.category-ribbon {
    padding-top: 68px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.category-card {
    position: relative;
    min-height: 245px;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--ink);
    box-shadow: var(--soft-shadow);
}

.category-card img {
    width: 100%;
    height: 100%;
    min-height: 245px;
    object-fit: cover;
    opacity: .78;
    transition: transform .3s ease, opacity .3s ease;
}

.category-card:hover img {
    transform: scale(1.06);
    opacity: .62;
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(34, 42, 53, .05), rgba(34, 42, 53, .88));
}

.category-card span,
.category-card small {
    position: absolute;
    z-index: 2;
    left: 16px;
    right: 16px;
}

.category-card span {
    bottom: 58px;
    color: white;
    font-size: 1.18rem;
    font-weight: 900;
}

.category-card small {
    bottom: 16px;
    color: rgba(255, 255, 255, .82);
    line-height: 1.35;
}

.tone-0 { border-bottom: 6px solid var(--violet); }
.tone-1 { border-bottom: 6px solid var(--coral); }
.tone-2 { border-bottom: 6px solid var(--teal); }
.tone-3 { border-bottom: 6px solid var(--sun); }
.tone-4 { border-bottom: 6px solid var(--leaf); }
.tone-5 { border-bottom: 6px solid var(--blue); }

.feature-band {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px max(16px, calc((100vw - 1180px) / 2));
    background: transparent;
}

.feature-panel {
    padding: 48px 34px;
    background: white;
    color: var(--ink);
    border-radius: var(--radius);
    box-shadow: var(--soft-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

[data-theme="dark"] .feature-panel {
    background: var(--cloud);
}

.feature-panel:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature-icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--coral), var(--sun));
    color: white;
    font-weight: 900;
}

.feature-panel:nth-of-type(1) .feature-icon { background: linear-gradient(135deg, var(--coral), var(--sun)); box-shadow: 0 8px 24px rgba(255, 107, 107, .28); }
.feature-panel:nth-of-type(2) .feature-icon { background: linear-gradient(135deg, var(--teal), #2cc4c4); box-shadow: 0 8px 24px rgba(10, 166, 166, .28); }
.feature-panel:nth-of-type(3) .feature-icon { background: linear-gradient(135deg, var(--violet), #a78bfa); box-shadow: 0 8px 24px rgba(124, 92, 255, .28); }
.feature-panel:nth-of-type(4) .feature-icon { background: linear-gradient(135deg, var(--leaf), #81c784); box-shadow: 0 8px 24px rgba(102, 187, 106, .28); }

.feature-panel h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.feature-panel p {
    color: inherit;
    opacity: 0.9;
}

.usp-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px max(16px, calc((100vw - 1180px) / 2));
    background: transparent;
}

.usp-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    padding: 28px 20px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--soft-shadow);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

[data-theme="dark"] .usp-item {
    background: var(--cloud);
}

.usp-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.usp-icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--coral), var(--sun));
    color: #fff;
}

.usp-item:nth-child(2) .usp-icon { background: linear-gradient(135deg, var(--teal), #2cc4c4); }
.usp-item:nth-child(3) .usp-icon { background: linear-gradient(135deg, var(--violet), #a78bfa); }
.usp-item:nth-child(4) .usp-icon { background: linear-gradient(135deg, var(--leaf), #81c784); }

.usp-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .3s ease;
}

.usp-item:hover .usp-icon svg {
    transform: scale(1.15) rotate(-5deg);
}

.usp-item strong {
    font-size: .95rem;
    font-weight: 850;
    color: var(--ink);
}

.usp-item span:last-child {
    color: var(--muted);
    font-size: .85rem;
}

.stats-band {
    background: linear-gradient(135deg, #222a35, #2d3c50 46%, #1a3c44);
    padding: 58px 0;
    border-bottom: 6px solid;
    border-image: linear-gradient(90deg, var(--coral), var(--sun), var(--teal), var(--violet)) 1;
}

.stats-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.stat-card {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2px;
    padding: 32px 16px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius);
    background: rgba(255,255,255,.04);
    backdrop-filter: blur(6px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    transition: transform 0.3s, background 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,.08);
}

.stat-number {
    font-family: "Fredoka", Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--sun);
    line-height: 1;
    min-width: 60px;
}

.stat-card > span {
    font-size: 2rem;
    font-weight: 800;
    color: var(--coral);
    line-height: 1;
}

.stat-card p {
    width: 100%;
    margin: 6px 0 0;
    text-align: center;
    color: rgba(255,255,255,.68);
    font-weight: 750;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.product-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--soft-shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hover-shadow);
    border-color: var(--coral);
}

.product-media {
    position: relative;
    display: block;
    aspect-ratio: 1 / .82;
    overflow: hidden;
    background: var(--cloud);
}

.product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

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

.product-mini-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 10px 14px 0;
    background: white;
}

.product-mini-gallery img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border: 2px solid #eef3f7;
    border-radius: 8px;
    transition: border-color .2s ease, transform .2s ease;
}

.product-card:hover .product-mini-gallery img {
    border-color: rgba(10, 166, 166, .3);
}

.product-mini-gallery img:hover {
    transform: translateY(-2px);
}

.product-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--sun);
    color: var(--ink);
    font-size: .78rem;
    font-weight: 900;
    animation: badgePulse 3s ease-in-out infinite;
}

.product-body {
    padding: 18px;
}

.product-category {
    color: var(--teal);
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.product-card h3 {
    min-height: 46px;
    margin: 6px 0 8px;
    font-size: 1.12rem;
}

.product-card p {
    min-height: 52px;
    margin-bottom: 16px;
    font-size: .95rem;
}

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

.price-stack {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.old-price {
    color: #98a2b3;
    font-size: .86rem;
    text-decoration: line-through;
}

.story-split {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    align-items: stretch;
    background: var(--ink);
}

.story-image {
    min-height: 520px;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px max(32px, calc((100vw - 1180px) / 2)) 64px 58px;
    color: white;
}

.story-copy h2 {
    max-width: 520px;
    margin: 10px 0 18px;
    font-size: 2.6rem;
}

.story-copy p {
    max-width: 560px;
    color: rgba(255, 255, 255, .78);
}

.story-copy .button {
    align-self: flex-start;
    margin-top: 14px;
    background: var(--sun);
    color: var(--ink);
}

.recent {
    background: linear-gradient(180deg, #fbfcff, #f2fbf8);
}

.testimonial-section {
    padding-top: 72px;
    padding-bottom: 62px;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--soft-shadow);
    transition: transform .25s ease, box-shadow .25s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.testimonial-card.tone-coral { border-top: 5px solid var(--coral); }
.testimonial-card.tone-teal { border-top: 5px solid var(--teal); }
.testimonial-card.tone-violet { border-top: 5px solid var(--violet); }

.testimonial-stars {
    display: flex;
    gap: 3px;
}

.testimonial-stars svg {
    width: 20px;
    height: 20px;
    fill: var(--sun);
    stroke: none;
}

.testimonial-card p {
    color: #3d4859;
    font-size: 1.02rem;
    line-height: 1.6;
    font-style: italic;
    flex: 1;
    margin: 0;
}

.testimonial-author strong {
    display: block;
    font-size: .95rem;
    color: var(--ink);
}

.testimonial-author span {
    display: block;
    color: var(--muted);
    font-size: .84rem;
    margin-top: 2px;
}

.newsletter-section-wrapper {
    background: var(--ink);
    padding: 72px 0;
    margin-top: 60px;
}
.newsletter-band {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 30px;
    margin: 0 auto;
    max-width: 1180px;
    width: calc(100% - 32px);
    padding: 32px 40px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #202832, #25414c 46%, #ff6b6b);
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.newsletter-band h2 {
    max-width: 680px;
    margin: 8px 0 0;
    font-size: 2rem;
    color: white;
}

.newsletter-band span {
    color: var(--sun);
}

.newsletter-band p {
    max-width: 570px;
    margin: 10px 0 0;
    color: rgba(255, 255, 255, .76);
}

.newsletter-band form {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    backdrop-filter: blur(8px);
}

.newsletter-band input {
    min-width: 240px;
    border: 0;
}

.newsletter-band .button {
    background: var(--sun);
    color: var(--ink);
    box-shadow: 0 12px 28px rgba(255, 209, 102, .24);
}

.newsletter-art {
    display: flex;
    align-items: center;
    gap: 10px;
}

.newsletter-art img {
    width: 84px;
    height: 84px;
    border: 3px solid rgba(255, 255, 255, .55);
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 14px 35px rgba(0, 0, 0, .16);
}

.newsletter-art img:last-child {
    margin-left: -28px;
    transform: rotate(5deg);
}

input,
textarea,
select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    color: var(--ink);
    padding: 11px 13px;
    outline: none;
}

textarea {
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(10, 166, 166, .12);
}

label {
    display: grid;
    gap: 7px;
    color: #435065;
    font-weight: 800;
}

.shop-hero,
.page-hero {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 24px;
    margin-bottom: 36px;
    padding: 44px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #f4fbff, #fff7e4);
    border: 1px solid var(--line);
}

.shop-hero.category-mode {
    grid-template-columns: minmax(0, 1fr) 280px auto;
    background: linear-gradient(135deg, #202832, #25414c 48%, #f36b67);
    color: white;
    overflow: hidden;
}

.shop-hero.category-mode p,
.shop-hero.category-mode .shop-hero span {
    color: rgba(255, 255, 255, .78);
}

.category-hero-image {
    width: 280px;
    aspect-ratio: 1.25 / 1;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, .2);
    border-radius: var(--radius);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .18);
}

.category-hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: white;
    font-weight: 850;
}

.category-hero-stats strong {
    display: inline-grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--sun);
    color: var(--ink);
}

.shop-hero h1,
.page-hero h1 {
    margin: 8px 0 10px;
    font-size: 3rem;
}

.page-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 40px auto 0;
}

.page-hero.compact {
    grid-template-columns: 1fr;
    margin: 0 0 34px;
}

.shop-search {
    display: flex;
    gap: 10px;
    min-width: 360px;
}

.shop-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 28px;
}

.shop-category-showcase {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    margin: -14px 0 30px;
}

.shop-category-showcase a {
    position: relative;
    min-height: 150px;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--ink);
    box-shadow: var(--soft-shadow);
}

.shop-category-showcase img {
    width: 100%;
    height: 100%;
    min-height: 150px;
    object-fit: cover;
    opacity: .72;
    transition: transform .25s ease, opacity .25s ease;
}

.shop-category-showcase a:hover img,
.shop-category-showcase a.active img {
    transform: scale(1.06);
    opacity: .56;
}

.shop-category-showcase a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(34, 42, 53, .05), rgba(34, 42, 53, .86));
}

.shop-category-showcase .filter-icon,
.shop-category-showcase strong {
    position: absolute;
    z-index: 2;
    left: 14px;
}

.shop-category-showcase .filter-icon {
    top: 14px;
    background: rgba(255, 255, 255, .18);
    color: white;
}

.shop-category-showcase strong {
    right: 14px;
    bottom: 14px;
    color: white;
    line-height: 1.15;
}

.shop-category-showcase a.active {
    outline: 4px solid var(--sun);
    outline-offset: 0;
}

.filter-panel {
    position: sticky;
    top: 102px;
    align-self: start;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--radius);
    background: #222a35;
    box-shadow: 0 18px 42px rgba(34, 42, 53, .2);
}

.filter-panel h2 {
    margin: 2px 0 16px;
    color: white;
    font-size: 1.2rem;
}

.filter-panel a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 12px;
    border-radius: 8px;
    color: rgba(255, 255, 255, .72);
    font-weight: 800;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.filter-panel a.active,
.filter-panel a:hover {
    background: linear-gradient(135deg, rgba(10, 166, 166, .95), rgba(255, 107, 107, .9));
    color: white;
    transform: translateX(4px);
}

.filter-head span {
    color: var(--sun);
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.filter-icon {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .1);
    color: var(--sun);
}

.filter-panel a.active .filter-icon,
.filter-panel a:hover .filter-icon {
    background: rgba(255, 255, 255, .18);
    color: white;
}

.result-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    font-weight: 850;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
    gap: 46px;
    align-items: start;
}

.gallery-main {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--cloud);
    box-shadow: var(--shadow);
    cursor: zoom-in;
}

.gallery-main img {
    width: 100%;
    aspect-ratio: 1 / .72;
    object-fit: cover;
    transition: transform .35s ease;
}

.gallery-main:hover img {
    transform: scale(1.65);
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 14px;
}

.gallery-thumbs button {
    overflow: hidden;
    padding: 0;
    border: 3px solid white;
    border-radius: 12px;
    background: white;
    box-shadow: var(--soft-shadow);
    transition: border-color .2s ease, transform .2s ease;
}

.gallery-thumbs button.active {
    border-color: var(--teal);
}

.gallery-thumbs button:hover {
    transform: translateY(-3px);
}

.gallery-thumbs img {
    width: 100%;
    aspect-ratio: 1 / .78;
    object-fit: cover;
}

.product-summary {
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--soft-shadow);
}

.product-summary h1 {
    margin: 8px 0 14px;
    font-size: 3rem;
}

.summary-text {
    font-size: 1.08rem;
}

.detail-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 24px 0;
}

.detail-price span {
    color: #98a2b3;
    font-size: 1.05rem;
    text-decoration: line-through;
}

.detail-price strong {
    color: var(--coral);
    font-size: 2rem;
}

.add-cart-form {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
}

.summary-notes {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.summary-notes span {
    padding: 12px 14px;
    border-radius: 8px;
    background: var(--cloud);
    color: #435065;
    font-weight: 800;
}

.product-description {
    width: min(900px, 100%);
    margin: 64px auto 0;
    padding: 36px;
    border-radius: var(--radius);
    background: white;
    border: 1px solid var(--line);
}

.product-description h2 {
    font-size: 2rem;
}

.product-description ul,
.rich-content ul {
    padding-left: 22px;
}

.related-products {
    width: 100%;
    padding-bottom: 0;
}

.cart-grid,
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    align-items: start;
}

.cart-items,
.checkout-form,
.cart-summary {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--soft-shadow);
}

.cart-row {
    display: grid;
    grid-template-columns: 96px 1fr 90px 110px 100px;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border-bottom: 1px solid var(--line);
}

.cart-row:last-child {
    border-bottom: 0;
}

.cart-row img {
    width: 96px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius);
}

.cart-row h2 {
    margin-bottom: 4px;
    font-size: 1.05rem;
}

.cart-row span {
    color: var(--muted);
}

.cart-summary {
    display: grid;
    gap: 14px;
    padding: 24px;
}

.cart-summary h2 {
    font-size: 1.35rem;
}

.cart-summary div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.total-line {
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: 1.2rem;
}

.checkout-form {
    display: grid;
    gap: 16px;
    padding: 24px;
}

.auth-page {
    display: grid;
    place-items: center;
    min-height: 620px;
    background:
        linear-gradient(135deg, rgba(255, 246, 223, .86), rgba(234, 250, 250, .9)),
        url("../images/products/hero-products.jpg") center/cover;
    width: 100%;
    max-width: none;
    padding-inline: 16px;
}

.auth-card {
    width: min(520px, 100%);
    display: grid;
    gap: 16px;
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.auth-card span {
    color: var(--teal);
    font-size: .82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.auth-card h1 {
    margin-bottom: 0;
    font-size: 2.35rem;
}

.auth-card form {
    display: grid;
    gap: 14px;
}

.form-row {
    display: grid;
    gap: 14px;
}

.form-row.two {
    grid-template-columns: repeat(2, 1fr);
}

.form-row.three {
    grid-template-columns: repeat(3, 1fr);
}

.empty-state {
    display: grid;
    justify-items: center;
    max-width: 640px;
    margin: 0 auto;
    padding: 54px 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    text-align: center;
    box-shadow: var(--soft-shadow);
}

.empty-state h1,
.empty-state h2 {
    margin-bottom: 8px;
    font-size: 2rem;
}

.success-state {
    border-color: rgba(102, 187, 106, .35);
    background: #f2fbf3;
}

.rich-content {
    max-width: 900px;
    color: #3d4859;
}

.rich-content h2 {
    margin-top: 36px;
    font-size: 1.7rem;
}

.site-footer {
    background: #202832;
    color: white;
    border-top: 6px solid;
    border-image: linear-gradient(90deg, var(--coral), var(--sun), var(--teal), var(--violet)) 1;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 36px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 58px 0 42px;
}

.footer-top p,
.footer-brand small,
.footer-bottom {
    color: rgba(255, 255, 255, .68);
}

.footer-top h3 {
    margin-bottom: 15px;
    font-size: 1rem;
}

.footer-top a:not(.brand) {
    display: block;
    margin: 8px 0;
    color: rgba(255, 255, 255, .76);
}

.footer-top a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: .92rem;
}

.login-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
    background:
        linear-gradient(135deg, rgba(255, 107, 107, .12), rgba(10, 166, 166, .12)),
        url("../images/products/hero-products.jpg") center/cover;
}

.login-card {
    width: min(430px, 100%);
    padding: 30px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.login-card h1 {
    margin: 28px 0 8px;
    font-size: 2rem;
}

.login-card form {
    display: grid;
    gap: 15px;
}

.login-hint {
    display: block;
    margin-top: 16px;
    color: var(--muted);
}

.admin-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
    background: #f4f7fb;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 24px;
    background: white;
    border-right: 1px solid var(--line);
}

.admin-sidebar nav {
    display: grid;
    gap: 6px;
    margin-top: 32px;
}

.admin-main {
    min-width: 0;
    padding: 32px;
}

.admin-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
    padding: 30px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, white, #eefafa);
    border: 1px solid var(--line);
}

.admin-hero h1 {
    margin: 8px 0 10px;
    font-size: 2.4rem;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.admin-stats article,
.admin-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--soft-shadow);
}

.admin-stats article {
    padding: 22px;
}

.admin-stats span {
    color: var(--coral);
    font-size: 2rem;
    font-weight: 900;
}

.admin-stats p {
    margin-bottom: 0;
    font-weight: 800;
}

.admin-card {
    padding: 24px;
}

.admin-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.admin-card-head h1,
.admin-card-head h2 {
    margin: 0;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.admin-product-mini,
.admin-product-list article,
.category-admin-list article,
.page-admin-list article {
    display: grid;
    align-items: center;
    gap: 14px;
}

.admin-product-mini {
    grid-template-columns: 52px 1fr;
    font-weight: 850;
}

.admin-product-mini img,
.admin-product-list img,
.category-admin-list img {
    width: 52px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius);
}

.admin-grid {
    display: grid;
    gap: 24px;
    align-items: start;
}

.admin-grid.two-col {
    grid-template-columns: minmax(360px, .9fr) minmax(0, 1.1fr);
}

.product-admin-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(360px, .7fr);
}

.admin-form {
    display: grid;
    gap: 16px;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-row input {
    width: 18px;
    min-height: 18px;
}

.admin-product-list,
.category-admin-list,
.page-admin-list {
    display: grid;
    gap: 12px;
}

.admin-product-list article,
.category-admin-list article {
    grid-template-columns: 64px 1fr auto;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.page-admin-list article {
    grid-template-columns: 1fr auto;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.page-admin-list article.active {
    border-color: rgba(10, 166, 166, .35);
    background: #f0fbfb;
}

.admin-product-list h3,
.category-admin-list h3,
.page-admin-list h3 {
    margin-bottom: 4px;
    font-size: 1rem;
}

.admin-product-list p,
.category-admin-list p,
.page-admin-list p {
    margin-bottom: 0;
    font-size: .9rem;
}

.row-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.row-actions form {
    margin: 0;
}

.link-danger {
    border: 0;
    background: transparent;
    color: var(--danger);
    font-weight: 850;
}

@keyframes promoShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes promoSheen {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

@keyframes gradientSlide {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes subtleBreathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.015); }
}

@keyframes bgShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.08); }
    66% { transform: translate(-20px, 15px) scale(.94); }
}

@keyframes brandSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .65s ease, transform .65s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .5s ease, transform .5s ease;
}

.reveal-stagger.revealed > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.revealed > *:nth-child(1) { transition-delay: .06s; }
.reveal-stagger.revealed > *:nth-child(2) { transition-delay: .13s; }
.reveal-stagger.revealed > *:nth-child(3) { transition-delay: .20s; }
.reveal-stagger.revealed > *:nth-child(4) { transition-delay: .27s; }
.reveal-stagger.revealed > *:nth-child(5) { transition-delay: .34s; }
.reveal-stagger.revealed > *:nth-child(6) { transition-delay: .41s; }
.reveal-stagger.revealed > *:nth-child(7) { transition-delay: .48s; }
.reveal-stagger.revealed > *:nth-child(8) { transition-delay: .55s; }

.whatsapp-float {
    position: fixed;
    z-index: 30;
    left: 24px;
    bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 8px 18px 8px 14px;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    font-weight: 800;
    font-size: .92rem;
    box-shadow: 0 10px 28px rgba(37,211,102,.35);
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
    animation: whatsappBounce 3s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(37,211,102,.45);
    background: #20bd5a;
}

.whatsapp-float svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
    flex-shrink: 0;
}

@keyframes whatsappBounce {
    0%, 100% { transform: translateY(0); }
    5% { transform: translateY(-6px); }
    10% { transform: translateY(0); }
    15% { transform: translateY(-3px); }
    20%, 100% { transform: translateY(0); }
}

.back-to-top {
    position: fixed;
    z-index: 30;
    right: 24px;
    bottom: 24px;
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: var(--coral);
    color: #fff;
    font-size: 1.35rem;
    font-weight: 900;
    box-shadow: 0 10px 28px rgba(255,107,107,.35);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity .3s ease, transform .3s ease, background .2s ease;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover {
    background: var(--ink);
    box-shadow: 0 14px 32px rgba(34,42,53,.35);
}

@media (max-width: 1120px) {
    .category-grid,
    .product-grid,
    .testimonial-grid,
    .shop-category-showcase {
        grid-template-columns: repeat(3, 1fr);
    }

    .feature-band,
    .usp-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-admin-grid,
    .admin-grid.two-col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .header-top-inner {
        flex-wrap: wrap;
        gap: 6px 14px;
        padding-inline: 16px;
        font-size: .78rem;
    }

    .promo-sep:nth-child(4) {
        display: none;
    }

    .header-main {
        grid-template-columns: auto 1fr auto;
        padding-inline: 16px;
    }

    .brand-logo-img {
        transform: scale(1);
        height: 52px;
        margin-right: 8px;
    }

    .header-search {
        grid-column: 1 / -1;
        grid-row: 2;
        max-width: none;
    }

    .nav-toggle {
        display: inline-block;
        justify-self: end;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: white;
        box-shadow: var(--shadow);
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav .nav-auth {
        display: block;
    }

    .cart-pill span:last-child {
        display: none;
    }

    .auth-link {
        display: none;
    }

    .hero-slider {
        height: 72vh;
        min-height: 520px;
    }

    .slide-overlay {
        background: linear-gradient(180deg, rgba(20, 28, 39, .82), rgba(20, 28, 39, .58));
    }

    .slide-content h1 {
        font-size: 2.65rem;
    }

    .slider-arrow {
        width: 44px;
        height: 44px;
    }

    .slider-arrow.prev {
        left: 18px;
    }

    .slider-arrow.next {
        right: 18px;
    }

    .section-heading.with-link,
    .shop-hero,
    .shop-hero.category-mode,
    .newsletter-band,
    .story-split,
    .product-detail-grid,
    .shop-layout,
    .cart-grid,
    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .shop-search {
        min-width: 0;
    }

    .category-hero-image {
        width: 100%;
        aspect-ratio: 16 / 9;
    }

    .filter-panel {
        position: static;
    }

    .story-copy {
        padding: 44px 24px;
    }

    .story-image {
        min-height: 340px;
    }

    .product-summary h1,
    .shop-hero h1,
    .page-hero h1 {
        font-size: 2.35rem;
    }

    .cart-row {
        grid-template-columns: 82px 1fr;
    }

    .cart-row > strong,
    .cart-row label {
        grid-column: 2;
    }

    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
    }

    .admin-sidebar nav {
        grid-template-columns: repeat(3, 1fr);
    }

    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 680px) {
    .section-pad {
        width: min(100% - 24px, 1180px);
        padding: 52px 0;
    }

    .site-header {
        min-height: 72px;
        gap: 10px;
    }

    .brand small {
        display: none;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .slide-content {
        width: min(100% - 24px, 1180px);
    }

    .slide-content h1 {
        font-size: 2.2rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .hero-actions,
    .newsletter-band form,
    .shop-search,
    .add-cart-form {
        flex-direction: column;
        display: grid;
        grid-template-columns: 1fr;
    }

    .category-grid,
    .product-grid,
    .testimonial-grid,
    .shop-category-showcase,
    .feature-band,
    .usp-strip,
    .stats-inner,
    .footer-top,
    .form-row.two,
    .form-row.three,
    .admin-stats,
    .admin-sidebar nav {
        grid-template-columns: 1fr;
    }

    .header-top-inner {
        font-size: .76rem;
        gap: 4px 10px;
    }

    .header-top-inner .promo-sep,
    .header-top-inner span:nth-child(3) {
        display: none;
    }

    .header-main {
        gap: 10px;
    }

    .header-search {
        display: none;
    }

    .section-heading h2,
    .story-copy h2,
    .newsletter-band h2 {
        font-size: 2rem;
    }

    .shop-hero,
    .page-hero,
    .product-summary,
    .product-description,
    .newsletter-band,
    .admin-main,
    .admin-card,
    .admin-hero {
        padding: 22px;
    }

    .slide-copy {
        padding: 22px;
    }

    .slide-points {
        display: none;
    }

    .newsletter-art img {
        width: 70px;
        height: 70px;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .whatsapp-float {
        left: 16px;
        bottom: 16px;
        padding: 8px 14px;
        min-height: 44px;
    }

    .whatsapp-float span {
        display: none;
    }

    .back-to-top {
        right: 16px;
        bottom: 16px;
    }

    .admin-product-list article,
    .category-admin-list article,
    .page-admin-list article {
        grid-template-columns: 1fr;
    }

    .row-actions {
        justify-content: flex-start;
    }
}

/* --- New Aesthetic Utilities --- */
.text-gradient {
    background-image: linear-gradient(135deg, var(--coral), var(--sun), var(--teal));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius);
    box-shadow: var(--soft-shadow);
    position: relative;
    z-index: 2;
}

[data-theme="dark"] .glass-panel {
    background: rgba(33, 38, 45, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}

.blob-container {
    position: relative;
    overflow: hidden;
}

.blob-bg {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    z-index: 0;
    animation: floatBlob 15s ease-in-out infinite alternate;
    pointer-events: none;
}

[data-theme="dark"] .blob-bg {
    opacity: 0.3;
}

.blob-1 { top: -10%; left: -10%; width: 400px; height: 400px; background: var(--coral); animation-delay: 0s; }
.blob-2 { bottom: -10%; right: -10%; width: 500px; height: 500px; background: var(--teal); animation-delay: -5s; }
.blob-3 { top: 40%; left: 40%; width: 300px; height: 300px; background: var(--sun); animation-delay: -10s; }

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(40px, 40px) scale(1.05); }
}

.theme-toggle {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: var(--cloud);
    color: var(--ink);
    border: none;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.theme-toggle:hover {
    background: var(--line);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.theme-toggle .moon-icon { display: none; }
[data-theme="dark"] .theme-toggle .sun-icon { display: none; }
[data-theme="dark"] .theme-toggle .moon-icon { display: block; }

/* --- Social Icons --- */
.social-icons {
    display: flex;
    gap: 14px;
    margin: 16px 0;
}

.social-icons a {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: white;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-icons a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.social-icons a:nth-child(1) { background: #1877F2; }
.social-icons a:nth-child(2) { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.social-icons a:nth-child(3) { background: #1DA1F2; }

.social-icons svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.social-icons a:nth-child(2) svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* --- Parallax Banner --- */
.parallax-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 480px;
    background-image: url('../images/products/slider-walking.jpg');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    text-align: center;
    color: white;
    padding: 60px 24px;
}

.parallax-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(34, 42, 53, 0.85), rgba(10, 166, 166, 0.65));
    z-index: 1;
}

.parallax-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
}

.parallax-content h2 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    margin-bottom: 16px;
    font-weight: 900;
}

.parallax-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 32px;
    opacity: 0.95;
    color: inherit;
    line-height: 1.6;
}

.parallax-content .button {
    background: var(--coral);
    border-color: var(--coral);
    color: white;
    font-size: 1.1rem;
    padding: 14px 32px;
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.3);
}

.parallax-content .button:hover {
    background: white;
    color: var(--coral);
    transform: translateY(-3px);
}

/* --- Press Logos --- */
.press-section {
    padding: 40px 0;
    text-align: center;
    border-bottom: 1px solid var(--line);
    background: transparent;
}
.press-section span {
    display: block;
    margin-bottom: 24px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--ink);
    opacity: 0.5;
}
.press-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 48px 64px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}
.press-logos h2 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--ink);
    opacity: 0.3;
    transition: opacity 0.3s;
    margin: 0;
}
[data-theme="dark"] .press-logos h2,
[data-theme="dark"] .press-section span {
    color: white;
}
.press-logos h2:hover {
    opacity: 0.8;
}

/* --- Shop by Size --- */
.size-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1180px;
    margin: 0 auto;
}
.size-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    display: block;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow);
}
.size-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.size-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
    pointer-events: none;
}
.size-label {
    position: absolute;
    bottom: 24px;
    left: 24px;
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    z-index: 2;
    transition: transform 0.3s;
}
.size-card:hover img {
    transform: scale(1.05);
}
.size-card:hover .size-label {
    transform: translateY(-5px);
}

/* --- Trending Carousel --- */
.carousel-container {
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
}
.product-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 24px;
    margin-bottom: -24px;
    scrollbar-width: none;
}
.product-carousel::-webkit-scrollbar {
    display: none;
}
.carousel-item {
    flex: 0 0 calc(25% - 18px);
    scroll-snap-align: start;
    min-width: 280px;
}

/* --- Interactive FAQ --- */
.faq-section {
    background-color: var(--cloud);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.faq-accordion {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 32px;
}
.faq-item {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: var(--soft-shadow);
}
.faq-item summary {
    padding: 24px;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    position: relative;
    color: var(--ink);
    transition: background 0.2s;
}
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--coral);
}
.faq-item[open] summary::after {
    content: '−';
}
.faq-item p {
    padding: 0 24px 24px 24px;
    color: var(--ink);
    opacity: 0.8;
    margin: 0;
    line-height: 1.6;
}

/* --- Instagram Feed --- */
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    width: 100%;
}
.ig-post {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    display: block;
}
.ig-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.ig-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.ig-post:hover img {
    transform: scale(1.1);
}
.ig-post:hover .ig-overlay {
    opacity: 1;
}

/* Responsive updates for new sections */
@media (max-width: 900px) {
    .size-grid { grid-template-columns: repeat(2, 1fr); }
    .instagram-grid { grid-template-columns: repeat(3, 1fr); }
    .carousel-item { flex: 0 0 calc(50% - 12px); }
}

@media (max-width: 600px) {
    .size-grid { grid-template-columns: 1fr; }
    .instagram-grid { grid-template-columns: repeat(2, 1fr); }
    .carousel-item { flex: 0 0 calc(100% - 24px); }
    .press-logos { gap: 32px; }
    .press-logos h2 { font-size: 1.5rem; }
}

/* --- Advanced Product Actions --- */
.product-media-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
}
.product-hover-actions {
    position: absolute;
    top: 16px;
    right: -60px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
    transition: right 0.3s ease;
}
.product-card:hover .product-hover-actions {
    right: 16px;
}
.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--paper);
    border: 1px solid var(--line);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s, background 0.2s, color 0.2s;
    padding: 0;
}
.action-btn svg {
    width: 18px;
    height: 18px;
}
.action-btn:hover {
    transform: scale(1.1);
    color: var(--coral);
}
.action-btn.wishlist-btn.active svg {
    fill: var(--coral);
    stroke: var(--coral);
}
.action-btn.compare-btn.active svg {
    stroke: var(--violet);
}

/* --- Quick View Modal --- */
.quick-view-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.quick-view-overlay.active {
    opacity: 1;
    visibility: visible;
}
.quick-view-modal {
    background: var(--paper);
    width: 90%;
    max-width: 900px;
    border-radius: var(--radius);
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.quick-view-overlay.active .quick-view-modal {
    transform: translateY(0) scale(1);
}
.close-quick-view {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--paper);
    border: 1px solid var(--line);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    box-shadow: var(--soft-shadow);
}
.close-quick-view:hover {
    color: var(--coral);
}
.quick-view-content {
    max-height: 90vh;
    overflow-y: auto;
}
.quick-view-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.quick-view-image {
    background: var(--cloud);
}
.quick-view-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.quick-view-details {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.quick-view-details h2 {
    margin-top: 0;
    font-size: 2rem;
    color: var(--ink);
}
.quick-view-details .price-stack {
    font-size: 1.5rem;
    margin-bottom: 24px;
}
.quick-view-details p {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 32px;
}
.quick-view-details .quantity-row {
    display: flex;
    gap: 16px;
}
.quick-view-details .quantity-row input {
    width: 80px;
}
.quick-view-loader {
    padding: 60px;
    text-align: center;
    color: var(--muted);
}
@media (max-width: 768px) {
    .quick-view-grid {
        grid-template-columns: 1fr;
    }
    .quick-view-image img {
        aspect-ratio: 16/9;
    }
    .quick-view-details {
        padding: 24px;
    }
}

/* --- Product Attributes (Swatches & Sizes) --- */
.product-attributes {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px 0;
    gap: 12px;
}
.color-swatches {
    display: flex;
    gap: 6px;
}
.swatch {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    display: inline-block;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: transform 0.2s;
}
.swatch:hover {
    transform: scale(1.2);
}
.size-boxes {
    display: flex;
    gap: 4px;
}
.size-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--paper);
}
.size-box:hover {
    border-color: var(--coral);
    color: var(--coral);
    background: rgba(255, 107, 107, 0.05);
}
