@import url("https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500&display=swap");


:root {
    --color-bg: #faf7f4;
    --color-bg-alt: #f3ece7;
    --color-text: #1f2a44;
    --color-accent: #b8788a;
    --color-grey: #8c8478;
    --color-border: #e4ded9;
    --color-dark: #1f2a44;
    --color-panel: #fdf9f8;
    --font-display: "Playfair Display", Georgia, serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 400;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 6%;
    border-bottom: 1px solid var(--color-border);
    background-color: var(--color-bg);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--color-text);
}

.logo-crown { fill: var(--color-accent); }
.logo-mark { flex-shrink: 0; transition: transform 0.4s ease; }
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }

.logo-text { display: flex; flex-direction: column; }

.logo-name {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    line-height: 1;
}

.logo-sub {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 4.2px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-top: 6px;
    line-height: 1;
}

.account-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--color-text);
}

.account-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--color-text);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.account-avatar-guest {
    background-color: var(--color-grey);
    font-size: 13px;
}

.account-name-text {
    font-size: 13px;
    font-weight: 600;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-icon {
    position: relative;
    font-size: 22px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--color-accent);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    order: 1;
}

.nav-links a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-accent);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
}

.hamburger:hover {
    opacity: 0.7;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.hamburger-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.hamburger-active span:nth-child(2) {
    opacity: 0;
}

.hamburger.hamburger-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hero {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 100px 6%;
    background-color: var(--color-bg-alt);
}

.hero-image {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
    object-position: center 16%;
}

.hero-image-container {
    flex: 1;
}

.hero button {
    padding: 14px 32px;
    background-color: var(--color-text);
    color: var(--color-bg);
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.hero-shop-btn {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--color-text);
    color: var(--color-bg);
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.hero-shop-btn:hover {
    background-color: var(--color-accent);
}

.hero button:hover {
    background-color: var(--color-accent);
}

.products-section {
    padding: 80px 6%;
    flex: 1;
}

.products-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-grid article {
    overflow: hidden;
    transition: transform 0.3s ease;
}

.product-grid article:hover {
    transform: translateY(-6px);
}

.product-image-container {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    display: block;
    transition: transform 0.5s ease;
}

.product-grid article:hover .product-image {
    transform: scale(1.04);
}

.product-grid article a.view-product {
    display: inline-block;
    background: none;
    border: none;
    padding: 0 0 4px;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    cursor: pointer;
    position: relative;
}

.product-grid article a.view-product::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-text);
    transition: background-color 0.3s ease;
}

.product-grid article a.view-product:hover {
    color: var(--color-accent);
}

.product-grid article a.view-product:hover::after {
    background-color: var(--color-accent);
}

.product-info {
    background-color: var(--color-panel);
    padding: 20px 22px 24px;
}
/* product.html*/

.product-detail {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    padding: 80px 6%;
    max-width: 1100px;
    margin: 0 auto;
}

.product-detail-image {
    flex: 1;
}

.product-detail-image img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
    border-radius: 6px;
    background-color: var(--color-bg-alt);
    box-shadow: 0 10px 30px rgba(31, 42, 68, 0.1)
}

.product-detail-info {
    flex: 1;
    max-width: 460px;
    padding-top: 20px;
}

.product-detail-info h1 {
    font-size: 34px;
    margin: 0 0 12px;
}

.product-detail-info .price {
    font-size: 20px;
    margin-bottom: 20px;
}

.product-detail-info p:not(.price) {
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-grey);
    margin-bottom: 30px;
}

.product-detail-info .add-to-cart {
    padding: 15px 36px;
    background-color: var(--color-text);
    color: var(--color-bg);
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.product-detail-info .add-to-cart.btn-maxed {
    background-color: var(--color-grey);
}

.product-detail-info .add-to-cart:hover {
    background-color: var(--color-accent);
}

.product-card-link,
.category-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.option-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.length-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.length-btn {
    padding: 10px 18px;
    background: none;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.length-btn:hover {
    border-color: var(--color-text);
}

.length-btn.selected {
    background-color: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
}

.quantity-section {
    margin-bottom: 30px;
}

.quantity-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--color-border);
}

.quantity-control button {
    width: 42px;
    height: 42px;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 20px;
    color: var(--color-text);
    cursor: pointer;
}

.quantity-control button:hover:not(:disabled) {
    background-color: var(--color-bg-alt);
}

.quantity-control button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.quantity-control input[type="number"] {
    width: 44px;
    height: 42px;
    border: none;
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    text-align: center;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    background: none;
    -moz-appearance: textfield;
    appearance: textfield;
}

.quantity-control input[type="number"]::-webkit-outer-spin-button,
.quantity-control input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


#qty-value {
    min-width: 44px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
}

.price-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
}

.price-row .price {
    margin-bottom: 0;
}

.old-price {
    font-size: 16px;
    color: var(--color-grey);
    text-decoration: line-through;
}

.badge {
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #ffffff;
}

.badge-sale {
    background-color: var(--color-accent);
}

.badge-soldout {
    background-color: var(--color-grey);
}

.badge-instock {
    background-color: #4f7a5a;
}

.old-price:empty,
.badge:empty {
    display: none;
}

.length-btn.sold-out {
    text-decoration: line-through;
    opacity: 0.6;
}

.product-detail-info .add-to-cart:disabled,
.product-detail-info .add-to-cart:disabled:hover {
    background-color: var(--color-grey);
    cursor: not-allowed;
}

.product-more {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 6% 80px;
}

.product-section h3 {
    font-size: 22px;
    margin: 0 0 16px;
}

.product-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-section li {
    padding: 13px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-grey);
}

.highlight-list li::before {
    content: "✓";
    color: var(--color-accent);
    font-weight: 600;
    margin-right: 10px;
}

.product-section p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-grey);
    margin: 0;
}

.price {
    font-size: 17px;
    font-weight: 600;
    color: var(--color-accent);
}

.categories-section {
    padding: 80px 6%;
    background-color: var(--color-bg-alt);
}

.categories-section h2 {
    text-align: center;
    font-size: 38px;
    margin-bottom: 40px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.category-grid article {
    overflow: hidden;
    transition: transform 0.3s ease;
}

.category-grid article:hover {
    transform: translateY(-6px);
}

.category-image-container {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.5s ease;
}

.category-grid article:hover .category-image {
    transform: scale(1.04);
}

.category-info {
    background-color: var(--color-panel);
    padding: 22px 24px 26px;
    text-align: center;
}

.category-info h3 {
    font-size: 24px;
    margin: 0 0 10px;
}

.category-info p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-grey);
    margin: 0 0 14px;
}

.category-info a {
    display: inline-block;
    padding: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    position: relative;
}

.category-info a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-text);
    transition: background-color 0.3s ease;
}

.category-info a:hover {
    color: var(--color-accent);
}

.category-info a:hover::after {
    background-color: var(--color-accent);
}

.about-section {
    padding: 100px 6%;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-section h2 {
    font-size: 40px;
    margin-bottom: 30px;
}

.about-section p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--color-grey);
}

.promo-banner {
    padding: 90px 6%;
    background-color: var(--color-dark);
    text-align: center;
}

.promo-banner {
    position: relative;
    border: 1px solid transparent;
    animation: promo-glow 4s ease-in-out infinite;
}

@keyframes promo-glow {
    0%, 100% { border-color: rgba(184, 120, 138, 0.15); }
    50% { border-color: rgba(184, 120, 138, 0.55); }
}

#promo-heading {
    transition: opacity 0.6s ease;
}

#promo-heading.fade-out {
    opacity: 0;
}


.promo-content h2 {
    color: var(--color-bg);
    font-size: 36px;
    margin: 0 0 16px;
}

.promo-content p {
    color: #c7cbd6;
    font-size: 16px;
    margin: 0 0 28px;
}

.promo-button {
    padding: 14px 32px;
    background-color: var(--color-accent);
    color: #ffffff;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.promo-button:hover {
    background-color: var(--color-bg);
    color: var(--color-dark);
}

.story-section {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 100px 6%;
    max-width: 1200px;
    margin: 0 auto;
}

.story-image-container {
    flex: 1;
}

.story-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}

.story-content {
    flex: 1;
    max-width: 480px;
}

.story-content h2 {
    font-size: 36px;
    margin: 0 0 20px;
}

.story-content p {
    font-size: 16px;
    line-height: 1.8;
    margin: 0 0 18px;
    color: var(--color-grey);
}

.story-link {
    color: var(--color-accent);
    text-decoration: underline;
    font-size: 15px;
}

.testimonials-section {
    padding: 90px 6%;
    background-color: var(--color-bg-alt);
}

.testimonials-section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 44px;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial {
    background-color: var(--color-panel);
    padding: 32px 28px;
}

.testimonial-quote {
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 20px;
    color: var(--color-text);
}

.testimonial-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-accent);
    margin: 0;
}

.final-cta {
    padding: 110px 6%;
    text-align: center;
    background-color: var(--color-dark);
}

.final-cta h2 {
    color: var(--color-bg);
    font-size: 40px;
    margin: 0 0 18px;
}

.final-cta p {
    color: #c7cbd6;
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto 32px;
}

.cta-button {
    padding: 15px 36px;
    background-color: var(--color-accent);
    color: #ffffff;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    background-color: var(--color-bg);
    color: var(--color-dark);
}

.footer {
    padding: 40px 6% 30px;
    background-color: #16203a;
    color: var(--color-bg);
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
}

.footer-links a {
    color: #c7cbd6;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer p {
    margin: 0;
    font-size: 13px;
    color: #8891a6;
}

.empty-message {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--color-grey);
}

.cart-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 70px 6% 90px;
    flex: 1;
}

.cart-section h1 {
    font-size: 36px;
    text-align: center;
    margin: 0 0 40px;
}

.cart-item {
    display: grid;
    grid-template-columns: 90px 1fr auto 110px;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
}

.cart-item img {
    width: 90px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 15%;
    border-radius: 4px;
    background-color: var(--color-bg-alt);
}

.cart-item h3 {
    font-size: 18px;
    margin: 0 0 6px;
}

.cart-item-meta {
    margin: 0 0 6px;
    font-size: 14px;
    color: var(--color-grey);
}

.cart-item-price {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-accent);
}

.cart-remove {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: 13px;
    color: var(--color-grey);
    text-decoration: underline;
    cursor: pointer;
}

.cart-remove:hover {
    color: var(--color-accent);
}

.cart-item .quantity-control span {
    min-width: 40px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
}

.cart-line-total {
    text-align: right;
    font-weight: 600;
}

.cart-summary {
    max-width: 360px;
    margin: 30px 0 0 auto;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    margin-bottom: 20px;
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--color-text);
    color: var(--color-bg);
    border: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.checkout-btn:hover {
    background-color: var(--color-accent);
}

.continue-link {
    display: block;
    margin-top: 16px;
    text-align: center;
    font-size: 14px;
    color: var(--color-grey);
}

.about-hero {
    max-width: 800px;
    margin: 0 auto;
    padding: 90px 6% 50px;
    text-align: center;
}

.about-hero h1 {
    font-size: 42px;
    margin: 0 0 20px;
}

.about-hero p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--color-grey);
    margin: 0;
}

.about-banner {
    width: 50%;
    margin: 0 auto;
    height: auto;
}

.about-banner img {
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit:contain;
    display: block;
    border-radius: 6px;
}

.about-story {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 6% 70px;
    text-align: center;
}

.about-story p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-grey);
    margin: 0 0 22px;
}

.about-tagline {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--color-text) !important;
    margin-top: 30px !important;
}

.about-why {
    background-color: var(--color-bg-alt);
    padding: 70px 6%;
    text-align: center;
}

.about-why h2 {
    font-size: 32px;
    margin: 0 0 36px;
}

.about-why-list {
    list-style: none;
    max-width: 500px;
    margin: 0 auto;
    padding: 0;
    text-align: left;
}

.about-why-list li {
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 15px;
    color: var(--color-grey);
}

.about-why-list li::before {
    content: "✓";
    color: var(--color-accent);
    font-weight: 600;
    margin-right: 12px;
}

.about-mission {
    max-width: 700px;
    margin: 0 auto;
    padding: 80px 6% 100px;
    text-align: center;
}

.about-mission h2 {
    font-size: 32px;
    margin: 0 0 20px;
}

.about-mission p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--color-grey);
}

.contact-hero {
    max-width: 700px;
    margin: 0 auto;
    padding: 90px 6% 20px;
    text-align: center;
}

.contact-hero h1 {
    font-size: 42px;
    margin: 0 0 20px;
}

.contact-hero p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--color-grey);
    margin: 0;
}

.contact-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
    padding: 50px 6% 100px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 40px 20px;
    background-color: var(--color-panel);
    text-decoration: none;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.contact-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
}

.contact-icon {
    font-size: 28px;
}

.fa-whatsapp { color: #25D366; }
.fa-instagram { color: #E1306C; }
.fa-facebook { color: #1877F2; }
.fa-tiktok { color: #000000; }
.fa-envelope { color: var(--color-accent); }

.contact-label {
    font-family: var(--font-display);
    font-size: 18px;
}

.contact-value {
    font-size: 14px;
    color: var(--color-grey);
}

.about-full-story {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 6% 60px;
}

.about-full-story h2 {
    font-size: 32px;
    text-align: center;
    margin: 0 0 30px;
}

.about-full-story p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-grey);
    margin: 0 0 20px;
}

.auth-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 6% 100px;
}

.auth-box {
    background-color: var(--color-panel);
    padding: 48px 40px;
    border-radius: 6px;
    width: 100%;
    max-width: 380px;
}

.auth-box h1 {
    text-align: center;
    margin: 0 0 28px;
    font-size: 26px;
}

.auth-box label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.auth-box input {
    width: 100%;
    padding: 11px 14px;
    margin-bottom: 18px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.auth-submit {
    width: 100%;
    padding: 13px;
    background-color: var(--color-text);
    color: var(--color-bg);
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.auth-submit:hover {
    background-color: var(--color-accent);
}

.auth-switch {
    text-align: center;
    font-size: 13px;
    color: var(--color-grey);
    margin: 20px 0 0;
}

.auth-switch a {
    color: var(--color-accent);
}

.error-message {
    color: #c0392b;
    font-size: 13px;
    text-align: center;
    margin: 12px 0 0;
}

.account-link {
    font-size: 13px;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
}

.account-link:hover {
    color: var(--color-accent);
}

.password-field {
    position: relative;
    margin-bottom: 18px;
}

.password-field input {
    margin-bottom: 0;
    padding-right: 42px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    opacity: 0.6;
    width: auto;
}

.toggle-password:hover {
    opacity: 1;
}

.account-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 70px 6% 90px;
    flex: 1;
}

.account-header h1 {
    margin: 0;
    font-size: 30px;
}

.account-sticky-top .account-header {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.account-sticky-top {
    position: sticky;
    top: var(--sticky-offset, 120px);
    z-index: 50;
    background-color: #eef0f4;
    padding: 16px 6%;
    border-bottom: none;
    box-shadow: 0 2px 6px rgba(31, 42, 68, 0.04);
}

.account-sticky-top .logout-standalone {
    margin-top: 16px;
}

.account-body {
    padding-top: 30px;
    border-top: none;
}

.logout-standalone {
    display: block;
    width: 90px;
    margin-left: 86%;
    margin-top: 20px;
    padding: 8px 18px;
    background: none;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    transition: border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}

.logout-standalone:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background-color: var(--color-bg-alt);
}

.logout-link:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.orders-heading {
    font-size: 20px;
    margin-bottom: 20px;
}

.order-card {
    background-color: var(--color-panel);
    border-radius: 6px;
    padding: 20px 24px;
    margin-bottom: 16px;
}

.order-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--color-border);
}

.order-date {
    font-size: 13px;
    color: var(--color-grey);
}

.order-status {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 3px;
    background-color: var(--color-accent);
    color: #ffffff;
}

.order-item-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--color-grey);
}

.order-total-row {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--color-border);
}.order-success-section {
    max-width: 500px;
    margin: 0 auto;
    padding: 100px 6% 120px;
    text-align: center;
    flex: 1;
}

.success-icon {
    width: 64px;
    height: 64px;
    background-color: #4f7a5a;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 24px;
}

.order-success-section h1 {
    font-size: 32px;
    margin: 0 0 14px;
}

.order-success-section p {
    color: var(--color-grey);
    margin: 0 0 30px;
}

.btn-order-success {
    display: inline-block;
    padding: 13px 32px;
    background-color: var(--color-text);
    color: var(--color-bg);
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.btn-order-success:hover {
    background-color: var(--color-accent);
}

.order-success-section .continue-link {
    display: block;
    font-size: 13px;
    color: var(--color-grey);
}

.order-card {
    background-color: #f3ece7;
    border-radius: 6px;
    padding: 20px 24px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(31, 42, 68, 0.06);
}

.order-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--color-border);
}

.order-date {
    font-size: 13px;
    color: var(--color-grey);
}

.order-status {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 3px;
    background-color: var(--color-accent);
    color: #ffffff;
}

.order-item-row {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    margin-bottom: 12px;
}

.order-item-image {
    width: 46px;
    height: 56px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.order-item-name {
    flex: 1;
    color: var(--color-text);
}

.order-item-price {
    color: var(--color-grey);
    white-space: nowrap;
}

.order-total-row {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--color-border);
}

.settings-section {
    max-width: 480px;
    margin: 0 auto;
    padding: 60px 6% 90px;
    flex: 1;
}

.settings-section h1 {
    font-size: 30px;
    margin: 0 0 30px;
}

.settings-card {
    background-color: var(--color-panel);
    padding: 28px 26px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.settings-card h2 {
    font-size: 19px;
    margin: 0 0 18px;
}

.settings-card label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.settings-card input, .settings-card select {
    width: 100%;
    padding: 11px 14px;
    margin-bottom: 18px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.settings-card .password-field input {
    margin-bottom: 0;
}

.settings-message {
    font-size: 13px;
    margin: 12px 0 0;
}

.settings-message.ok { color: #4f7a5a; }
.settings-message.fail { color: #c0392b; }

.settings-link {
    color: var(--color-text);
    font-size: 17px;
    text-decoration: none;
}

.settings-link:hover {
    color: var(--color-accent);
}

.danger-text { 
    font-size: 13px; 
    color: var(--color-grey); 
    margin: 0 0 16px; 
}

.delete-account-btn {
    width: 100%;
    padding: 13px;
    background: none;
    border: 1px solid #c0392b;
    color: #c0392b;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.delete-account-btn:hover { 
    background-color: #c0392b; 
    color: #ffffff;
}

.nav-settings-mobile { 
    display: none;
}

.success-icon.failed { background-color: #c0392b; }

.verify-banner {
    background-color: #fff4e5;
    border: 1px solid #f0c987;
    color: #7a5200;
    padding: 14px 18px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 24px;
}

.verify-banner button {
    background: none;
    border: none;
    color: #7a5200;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
}

.order-status.status-shipped { 
    background-color: #c58a1f; 
}
.order-status.status-delivered { 
    background-color: #4f7a5a; 
}
.order-tracking { 
    font-size: 13px; 
    color: var(--color-grey); 
    margin: 0 0 14px; 
}

.shipping-section { 
    max-width: 520px; 
    margin: 30px 0 0 auto; 
    background: var(--color-panel); 
    padding: 24px; border-radius: 6px; 
}
.shipping-section h2 { 
    font-size: 19px; 
    margin: 0 0 16px; 
}
.shipping-section label { 
    display: block; 
    font-size: 13px; 
    font-weight: 600; 
    margin-bottom: 6px; 
}
.shipping-section input, .shipping-section select {
    width: 100%; 
    padding: 11px 14px; 
    margin-bottom: 16px;
    border: 1px solid var(--color-border); 
    border-radius: 4px;
    font-size: 14px; 
    font-family: inherit; 
    background: #ffffff;
}
.order-address { 
    font-size: 13px; color: var(--color-grey); 
    margin: 0 0 14px; line-height: 1.6; 
}

.summary-small { 
    font-size: 14px; 
    color: var(--color-grey); 
    margin-bottom: 10px; 
}

[data-theme="dark"] {
    --color-bg: #14171f;
    --color-bg-alt: #1b1f2a;
    --color-text: #ece8e3;
    --color-accent: #d08ba0;
    --color-grey: #a39d94;
    --color-border: #2c3140;
    --color-dark: #0e1016;
    --color-panel: #1f2430;
    color-scheme: dark;
}

[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
    background-color: var(--color-bg);
    color: var(--color-text);
}

[data-theme="dark"] .shipping-section input,
[data-theme="dark"] .shipping-section select {
    background-color: var(--color-bg);
}

[data-theme="dark"] .promo-content h2,
[data-theme="dark"] .final-cta h2 {
    color: #ece8e3;
}

[data-theme="dark"] .verify-banner {
    background-color: #3a2f18;
    border-color: #6b5420;
    color: #f0d9a0;
}

[data-theme="dark"] .verify-banner button { color: #f0d9a0; }

[data-theme="dark"] .product-image-container,
[data-theme="dark"] .category-image-container {
    background-color: var(--color-bg-alt);
}

/* switch */
.switch-row { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    gap: 16px; 
}
.switch-row p { 
    margin: 4px 0 0; 
    font-size: 13px; 
    color: var(--color-grey); 
}

.settings-card .switch { 
    position: relative; 
    display: inline-block; 
    width: 52px; 
    height: 30px; 
    margin: 0; 
    flex-shrink: 0; 
}
.settings-card .switch input { 
    position: absolute; 
    width: 100%; 
    height: 100%; 
    opacity: 0; 
    margin: 0; 
    padding: 0; 
    cursor: pointer; 
    z-index: 2; 
}

.slider { position: absolute; 
    inset: 0; background: #cfc8c0; 
    border-radius: 30px; 
    transition: background-color 0.3s ease; 
}
.slider::before {
    content: ""; 
    position: absolute; 
    width: 24px; 
    height: 24px; 
    left: 3px; 
    top: 3px;
    background: #ffffff; 
    border-radius: 50%; 
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
}
.switch input:checked + .slider { 
    background: var(--color-accent); 
}
.switch input:checked + .slider::before { 
    transform: translateX(22px); 
}
.switch input:focus-visible + .slider { 
    outline: 2px solid var(--color-accent); 
    outline-offset: 2px; 
}

body { 
    transition: background-color 0.3s ease, color 0.3s ease; 
}

/* dark mode fixes */
.account-avatar { color: var(--color-bg); }

[data-theme="dark"] .account-sticky-top { 
    background-color: var(--color-bg-alt); 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); 
}
[data-theme="dark"] .order-card { background-color: var(--color-panel); }
[data-theme="dark"] .fa-tiktok { color: #ffffff; }

.welcome-bar {
    position: sticky;
    top: var(--nav-h, 80px);
    z-index: 90;
    background: var(--color-dark);
    color: #f3ece7;
    text-align: center;
    font-size: 12px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 9px 6%;
    border-bottom: 2px solid var(--color-accent);
}

.account-logout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    margin-left: auto;
    margin-bottom: 30px;
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.account-logout:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #ffffff;
}

html { scroll-behavior: smooth; }

body { animation: pageIn 0.5s ease both; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-card-link, .category-card-link, .order-card, .settings-card, .cart-item {
    animation: fadeUp 0.55s ease both;
}
.product-card-link:nth-child(2), .category-card-link:nth-child(2) { animation-delay: 0.06s; }
.product-card-link:nth-child(3), .category-card-link:nth-child(3) { animation-delay: 0.12s; }
.product-card-link:nth-child(4), .category-card-link:nth-child(4) { animation-delay: 0.18s; }
.product-card-link:nth-child(n+5), .category-card-link:nth-child(n+5) { animation-delay: 0.22s; }

.product-card-link, .category-card-link { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.product-card-link:hover, .category-card-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(31, 42, 68, 0.12);
}

.product-image, .category-image { transition: transform 0.6s ease; }
.product-card-link:hover .product-image,
.category-card-link:hover .category-image { transform: scale(1.04); }

button, .auth-submit, .checkout-btn, .btn-order-success { transition: transform 0.15s ease, background-color 0.3s ease, color 0.3s ease; }
button:active:not(:disabled), .auth-submit:active, .checkout-btn:active { transform: scale(0.98); }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* loading placeholders: shown while a grid is still empty */
#featured-products:empty, #random-products:empty, #category-products:empty,
#new-arrivals-grid:empty, #all-categories:empty, #homepage-categories:empty,
#orders-list:empty, #cart-items:empty {
    min-height: 240px;
    border-radius: 6px;
    background: linear-gradient(100deg, var(--color-bg-alt) 30%, var(--color-panel) 50%, var(--color-bg-alt) 70%);
    background-size: 200% 100%;
    animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.received-btn {
    width: 100%;
    margin-top: 14px;
    padding: 12px;
    background: var(--color-text);
    color: var(--color-bg);
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.received-btn:hover { background: var(--color-accent); color: #ffffff; }
.received-btn:disabled { opacity: 0.6; cursor: default; }

.modal-overlay {
    position: fixed; inset: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    background: rgba(14, 16, 22, 0.55);
    backdrop-filter: blur(4px);
    opacity: 0; transition: opacity 0.2s ease;
}
.modal-overlay.show { opacity: 1; }

.modal-box {
    width: 100%; max-width: 400px; text-align: center;
    background: var(--color-panel);
    border-radius: 14px; padding: 38px 30px 28px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    transform: translateY(14px) scale(0.97);
    transition: transform 0.25s ease;
}
.modal-overlay.show .modal-box { transform: none; }

.modal-icon {
    width: 58px; height: 58px; margin: 0 auto 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--color-accent); color: #ffffff; font-size: 24px;
}
.modal-box h2 { font-size: 22px; margin: 0 0 10px; }
.modal-box p { color: var(--color-grey); font-size: 14px; line-height: 1.7; margin: 0 0 22px; }
.modal-actions { display: flex; flex-direction: column; gap: 10px; }

.modal-primary, .modal-secondary {
    width: 100%; padding: 13px; border-radius: 6px;
    font-size: 14px; font-weight: 600; cursor: pointer;
}
.modal-primary { background: var(--color-text); color: var(--color-bg); border: none; }
.modal-primary:hover { background: var(--color-accent); color: #ffffff; }
.modal-primary:disabled { opacity: 0.6; cursor: default; }
.modal-secondary { background: transparent; color: var(--color-text); border: 1px solid var(--color-border); }
.modal-note { margin: 14px 0 0 !important; font-size: 13px !important; min-height: 18px; }

.order-status.status-cancelled { background-color: #c0392b; }
.order-cancel-note { font-size: 13px; color: var(--color-grey); margin: 0 0 14px; line-height: 1.6; }

.orders-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.page-btn {
    width: auto;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.page-btn:hover:not(:disabled):not(.active) { border-color: var(--color-accent); color: var(--color-accent); }
.page-btn.active { background: var(--color-text); color: var(--color-bg); border-color: var(--color-text); }
.page-btn:disabled { opacity: 0.35; cursor: default; }
.page-gap { color: var(--color-grey); padding: 0 4px; }




/* */

@media (min-width: 1025px) {
    .product-grid.category-page-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .product-grid.shop-random-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {


    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: auto;
        width: 140px;
        flex-direction: column;
        gap: 0;
        background-color: var(--color-bg);
        box-shadow: 0 12px 24px rgba(31, 42, 68, 0.12);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    }


    .nav-links a {
        padding: 14px 20px;
        border-top: 1px solid var(--color-border);
        font-size: 14px;
    }

    .nav-links.nav-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links a:hover {
        background-color: var(--color-bg-alt);
    }

    .logo { gap: 9px; }
    .logo-mark { width: 32px; height: 32px; }
    .logo-name { font-size: 17px; letter-spacing: 2.5px; }
    .logo-sub { font-size: 7.5px; letter-spacing: 3px; margin-top: 5px; }

    .hero {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 70px 6%;
    }

    .hero-content {
    max-width: 100%;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero-image-container {
        max-width: 100%;
    }

    .hero-image {
        height: 320px;
    }

    .products-section, 
    .categories-section {
        padding: 60px 6%;
    }

    .products-section h2,
    .categories-section h2 {
        font-size: 30px;
    }

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

    .product-detail {
        flex-direction: column;
        gap: 32px;
        padding: 50px 6%;
    }

    .product-detail-info {
        max-width: 100%;
        padding-top: 0;
    }

    .product-more {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-bottom: 60px;
    }

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

    .about-banner {
        width: 100%;
        margin: 0 auto;
        height: 50%
    }

    .about-banner img {
        width: 100%;
        aspect-ratio: 16 / 7;
        object-fit:contain;
        display: block;
        border-radius: 6px;
    }

    .about-section h2 {
        font-size: 30px;
    }

    .promo-banner {
        padding: 70px 6%;
    }

    .promo-content h2 {
        font-size: 28px;
    }

    .story-section {
        flex-direction: column;
        align-items: stretch;
        padding: 70px 6%;
        gap: 32px;
    }

    .story-content {
        max-width: 100%;
    }

    .story-image {
        height: 300px;
    }

    .testimonials-section {
        padding: 70px 6%;
    }

    .final-cta {
        padding: 80px 6%;
    }

    .final-cta h2 {
        font-size: 30px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 16px 20px;
    }

    .cart-item {
        grid-template-columns: 80px 1fr auto;
        gap: 12px 16px;
    }

    .cart-item img {
        width: 80px;
        grid-row: 1 / 3;
    }

    .cart-item-info {
        grid-column: 2 / 4;
    }

    .cart-item .quantity-control {
        grid-column: 2;
        justify-self: start;
    }

    .cart-item .quantity-control button {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .cart-item .quantity-control span {
        min-width: 34px;
    }

    .cart-line-total {
        grid-column: 3;
        text-align: right;
    }

    .cart-summary {
        max-width: 100%;
    }

    .navbar {
    padding: 16px 5%;
    }

    .nav-actions {
        gap: 12px;
    }

    .account-link {
        font-size: 12px;
        max-width: 90px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .cart-icon {
        font-size: 19px;
    }

    .contact-links {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 30px 6% 70px;
    }

    .contact-card {
        flex-direction: row;
        align-items: center;
        text-align: left;
        padding: 18px 20px;
        gap: 16px;
    }

    .contact-icon {
        font-size: 26px;
        flex-shrink: 0;
    }

    .contact-label {
        display: block;
    }

    .contact-value {
        display: block;
        word-break: break-word;
    }

    .settings-link { 
        display: none !important; 
    }

    .nav-settings-mobile { 
        display: block; 
    }

     .shipping-section { 
        max-width: 100%; 
    }

    .logo { 
        margin-left: 16px; 
    }
    .hamburger { 
        padding: 8px 6px; 
    }
}

@media (max-width: 480px) {
    .product-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }


    .logo-mark { display: none; }

    .hero-image {
        height: 220px;
        object-position: center 30%;
    }

    .logout-standalone {
        margin-left: 68%;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px 20px;
        padding: 0 6%;
    }

     .hamburger { 
        padding: 8px 6px; 
    }
    
}

/* =====================================================================
   REDESIGN STAGE 1: foundations, buttons, product and category cards
   To undo this stage, delete everything from this line down to the
   "STAGE 1 END" line, and remove the @import line at the very top.
   ===================================================================== */

:root {
    --font-body: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --img-bg: #f1eeea;
}

[data-theme="dark"] { --img-bg: #1b1f2a; }

/* ---- typography ---- */
body {
    font-family: var(--font-body);
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
    font-family: var(--font-body);
    font-weight: 300;
    letter-spacing: 0.03em;
}

.products-section h2,
.categories-section h2,
.testimonials-section h2,
.about-section h2 {
    font-size: clamp(26px, 3.4vw, 34px);
    letter-spacing: 0.06em;
    margin-bottom: 48px;
}

.hero h1 { font-weight: 300; letter-spacing: 0.02em; }

.nav-links a {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.16em;
}

/* ---- section spacing ---- */
.products-section,
.categories-section { padding: 96px 6%; }

@media (max-width: 768px) {
    .products-section,
    .categories-section { padding: 64px 5%; }
}

/* ---- outlined pill buttons (hero, banners) ---- */
.hero-shop-btn,
.promo-button,
.cta-button {
    border-radius: 999px;
    padding: 14px 38px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.hero-shop-btn {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-text);
}

.hero-shop-btn:hover {
    background: var(--color-text);
    color: var(--color-bg);
}

.promo-button,
.cta-button {
    background: transparent;
    color: #f3ece7;
    border: 1px solid rgba(243, 236, 231, 0.65);
}

.promo-button:hover,
.cta-button:hover {
    background: #f3ece7;
    color: #1f2a44;
    border-color: #f3ece7;
}

/* ---- solid action buttons: same colours, softer shape ---- */
.product-detail-info .add-to-cart,
.checkout-btn,
.auth-submit,
.btn-order-success {
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* ---- product cards: borderless, quiet, image first ---- */
.product-card-link,
.category-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-card-link:hover,
.category-card-link:hover {
    transform: none;
    box-shadow: none;
}

.product-grid { gap: 36px 22px; }

.product-grid article { background: none; overflow: visible; }
.product-grid article:hover { transform: none; }

.product-image-container,
.category-image-container { background: var(--img-bg); overflow: hidden; }

.product-image,
.category-image { transition: transform 1.1s cubic-bezier(0.22, 0.61, 0.36, 1); }

.product-card-link:hover .product-image,
.category-card-link:hover .category-image,
.product-grid article:hover .product-image,
.category-grid article:hover .category-image { transform: scale(1.05); }

.product-info {
    background: transparent;
    padding: 16px 2px 0;
    text-align: left;
}

.product-info h3 {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin: 0 0 6px;
    line-height: 1.5;
}

.product-info p:not(.price),
.product-info .view-product { display: none; }

.product-info .price {
    font-size: 13px;
    color: var(--color-grey);
    margin: 0;
    letter-spacing: 0.04em;
}

/* ---- category tiles: picture and a centred label ---- */
.category-grid { gap: 36px 22px; }

.category-grid article { background: none; overflow: visible; }
.category-grid article:hover { transform: none; }

.category-info {
    background: transparent;
    padding: 16px 4px 0;
    text-align: center;
}

.category-info h3 {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0;
}

.category-info p,
.category-info span { display: none; }

/* ---- two columns on phones, like the reference sites ---- */
@media (max-width: 480px) {
    .product-grid,
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 12px;
    }

    .product-info h3 { font-size: 12px; }
    .category-info h3 { font-size: 11px; letter-spacing: 0.1em; }
}

/* ===== STAGE 1 END ===== */

/* =====================================================================
   REDESIGN STAGE 1B: Gucci-style colours (white and black)
   To undo, delete everything from this line down to "STAGE 1B END".
   ===================================================================== */

:root {
    --color-bg: #ffffff;
    --color-bg-alt: #f6f6f6;
    --color-text: #000000;
    --color-accent: #555555;
    --color-grey: #6e6e6e;
    --color-border: #e5e5e5;
    --color-dark: #000000;
    --color-panel: #f7f7f7;
    --img-bg: #f4f4f4;
}

[data-theme="dark"] {
    --color-bg: #000000;
    --color-bg-alt: #0d0d0d;
    --color-text: #ffffff;
    --color-accent: #bdbdbd;
    --color-grey: #9a9a9a;
    --color-border: #262626;
    --color-dark: #141414;
    --color-panel: #111111;
    --img-bg: #141414;
}

/* ---- header: clean and black ---- */
.logo-crown { fill: var(--color-text); }
.logo-sub { color: var(--color-grey); }

.cart-count {
    background-color: var(--color-text);
    color: var(--color-bg);
}

.welcome-bar {
    background: #000000;
    color: #ffffff;
    border-bottom: 0;
}

[data-theme="dark"] .welcome-bar {
    background: #141414;
    border-bottom: 1px solid #262626;
}

/* ---- sections ---- */
.hero { background-color: var(--color-bg-alt); }

.promo-banner {
    animation: none;
    border: 0;
    background-color: #000000;
}

[data-theme="dark"] .promo-banner { background-color: #141414; }

.final-cta { background-color: #000000; }
[data-theme="dark"] .final-cta { background-color: #141414; }

.promo-content h2,
.final-cta h2 { color: #ffffff; }

/* ---- footer: solid black, like the reference ---- */
.footer {
    background-color: #000000;
    color: #ffffff;
}

[data-theme="dark"] .footer { border-top: 1px solid #262626; }

.footer-links a { color: #bdbdbd; }
.footer-links a:hover { color: #ffffff; }
.footer p { color: #8a8a8a; }

/* ---- small details ---- */
.account-avatar-guest { background-color: var(--color-grey); }

.product-detail-info .add-to-cart:hover,
.checkout-btn:hover,
.auth-submit:hover,
.btn-order-success:hover {
    background-color: #333333;
    color: #ffffff;
}

[data-theme="dark"] .product-detail-info .add-to-cart:hover,
[data-theme="dark"] .checkout-btn:hover,
[data-theme="dark"] .auth-submit:hover,
[data-theme="dark"] .btn-order-success:hover {
    background-color: #d9d9d9;
    color: #000000;
}

/* ===== STAGE 1B END ===== */

/* ---- home page products: four across on desktop ---- */
@media (min-width: 900px) {
    .products-section #featured-products { grid-template-columns: repeat(4, 1fr); }
}

/* =====================================================================
   REDESIGN STAGE 2: header and mobile menu
   To undo, delete everything from this line down to "STAGE 2 END".
   ===================================================================== */

/* ---- desktop header: slimmer, with an underline that draws in ---- */
@media (min-width: 769px) {
    .navbar { padding: 18px 6%; }

    .nav-links { gap: 34px; }

    .nav-links a {
        position: relative;
        font-size: 11.5px;
        font-weight: 500;
        letter-spacing: 0.2em;
        padding: 6px 0;
    }

    .nav-links a::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 1px;
        background: currentColor;
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.35s ease;
    }

    .nav-links a:hover { color: var(--color-text); }
    .nav-links a:hover::after { transform: scaleX(1); }
}

/* ---- phones and tablets: centred logo, full-screen menu ---- */
@media (max-width: 768px) {
    .navbar {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        padding: 12px 5%;
    }

    .hamburger { justify-self: start; }

    .logo {
        justify-self: center;
        margin-left: 0;
    }

    .nav-actions {
        justify-self: end;
        gap: 14px;
    }

    .nav-links {
        position: fixed;
        top: var(--sticky-offset, 108px);
        left: 0;
        right: 0;
        bottom: 0;
        width: auto;
        padding: 10px 6% 48px;
        overflow-y: auto;
        background-color: var(--color-bg);
        box-shadow: none;
        opacity: 0;
        visibility: hidden;
        transform: translateX(-28px);
        transition: opacity 0.35s ease, transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1), visibility 0.35s;
    }

    .nav-links.nav-open {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-links a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 19px 0;
        border-top: 0;
        border-bottom: 1px solid var(--color-border);
        font-size: 14px;
        font-weight: 400;
        letter-spacing: 0.16em;
    }

    .nav-links a::after {
        content: "\203A";
        font-size: 22px;
        font-weight: 300;
        color: var(--color-grey);
    }

    .nav-links a:hover {
        background: transparent;
        color: var(--color-text);
    }

    .nav-links.nav-open a { animation: menuLinkIn 0.5s ease both; }
    .nav-links.nav-open a:nth-child(1) { animation-delay: 0.05s; }
    .nav-links.nav-open a:nth-child(2) { animation-delay: 0.09s; }
    .nav-links.nav-open a:nth-child(3) { animation-delay: 0.13s; }
    .nav-links.nav-open a:nth-child(4) { animation-delay: 0.17s; }
    .nav-links.nav-open a:nth-child(5) { animation-delay: 0.21s; }
    .nav-links.nav-open a:nth-child(6) { animation-delay: 0.25s; }
    .nav-links.nav-open a:nth-child(7) { animation-delay: 0.29s; }
    .nav-links.nav-open a:nth-child(8) { animation-delay: 0.33s; }

    /* stop the page scrolling behind the open menu */
    body:has(.nav-links.nav-open) { overflow: hidden; }
}

@keyframes menuLinkIn {
    from { opacity: 0; transform: translateX(-14px); }
    to { opacity: 1; transform: none; }
}

/* keep the header uncluttered on small phones: avatar only */
@media (max-width: 560px) {
    .account-name-text { display: none; }
}

/* ===== STAGE 2 END ===== */

/* ===== FIX: order status badges were faded in dark mode =====
   To undo, delete from this line down to "FIX END". */
.order-status {
    background-color: var(--color-text);
    color: var(--color-bg);
}

.order-status.status-shipped { background-color: #c58a1f; color: #ffffff; }
.order-status.status-delivered { background-color: #4f7a5a; color: #ffffff; }
.order-status.status-cancelled { background-color: #c0392b; color: #ffffff; }
/* ===== FIX END ===== */

/* =====================================================================
   REDESIGN STAGE 3: product page (Gucci / Louis Vuitton style)
   To undo, delete everything from this line down to "STAGE 3 END".
   ===================================================================== */

/* ---- breadcrumb ---- */
.breadcrumb {
    max-width: 1280px;
    margin: 0 auto;
    padding: 22px 6% 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--color-grey);
}

.breadcrumb a {
    color: var(--color-text);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 1px;
}

.breadcrumb a:hover { color: var(--color-grey); }
.crumb-current { color: var(--color-grey); }

/* ---- picture ---- */
.product-detail-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
    border-radius: 0;
    box-shadow: none;
    background: var(--img-bg, var(--color-bg-alt));
}

/* ---- text and options ---- */
.product-eyebrow {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-grey);
    margin: 0 0 10px;
}

.product-detail-info h1 {
    font-size: clamp(22px, 2.6vw, 28px);
    font-weight: 300;
    letter-spacing: 0.03em;
    line-height: 1.3;
}

#detail-description { margin-bottom: 12px; }

#detail-description.clamped {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-btn {
    display: none;
    background: none;
    border: 0;
    padding: 0;
    margin: 0 0 26px;
    font-size: 13px;
    color: var(--color-text);
    text-decoration: underline;
    cursor: pointer;
}

.length-btn {
    border-radius: 999px;
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    font-size: 13px;
}

.length-btn:hover { border-color: var(--color-text); }

.length-btn.selected {
    background: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
}

.product-detail-info .add-to-cart { width: 100%; }

/* ---- folding rows: Features, Why You'll Love It ---- */
.product-more {
    display: block;
    max-width: none;
    margin: 30px 0 0;
    padding: 0;
    gap: 0;
}

.product-more .product-section {
    border-top: 1px solid var(--color-border);
    margin: 0;
    padding: 0;
}

.product-more .product-section:last-child { border-bottom: 1px solid var(--color-border); }

.product-more .product-section h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 18px 0;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-align: left;
    cursor: pointer;
}

.product-section.accordion h3::after {
    content: "+";
    font-size: 22px;
    font-weight: 300;
    color: var(--color-grey);
}

.product-section.accordion:not(.collapsed) h3::after { content: "\2212"; }
.product-section.accordion.collapsed > :not(h3) { display: none; }

.product-more .product-section > :not(h3) {
    margin: 0;
    padding: 0 0 20px;
    font-size: 14px;
    color: var(--color-grey);
    line-height: 1.7;
}

.discover-more {
    display: inline-block;
    margin-top: 26px;
    font-size: 13px;
    letter-spacing: 0.04em;
    color: var(--color-text);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
}

.discover-more:hover { color: var(--color-grey); }

/* ---- desktop: picture fills the left half, details on the right ---- */
@media (min-width: 769px) {
    .product-detail {
        max-width: none;
        gap: 0;
        padding: 24px 0 0;
        align-items: flex-start;
    }

    .product-detail-image { flex: 0 0 50%; max-width: 50%; }

    .product-detail-info {
        flex: 1;
        max-width: none;
        padding: 56px 8% 90px;
    }

    .product-detail-info > * { max-width: 460px; }
}

/* ---- phones: picture edge to edge, details underneath ---- */
@media (max-width: 768px) {
    .breadcrumb { padding: 14px 5% 14px; }

    .product-detail {
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-width: none;
    }

    .product-detail-image { width: 100%; flex: none; }

    .product-detail-info {
        width: 100%;
        max-width: 100%;
        padding: 24px 5% 8px;
    }
}

/* ---- recently viewed ---- */
.recent-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px 6% 90px;
    border-top: 1px solid var(--color-border);
}

.recent-section h2 {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 300;
    letter-spacing: 0.06em;
    margin: 0 0 32px;
}

.recent-section .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 12px;
}

@media (min-width: 769px) {
    .recent-section .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 36px 22px;
    }
}

@media (max-width: 768px) {
    .recent-section { padding: 40px 5% 64px; }
}

/* ---- small bar under the header while you scroll: picture, name, Add to Cart ---- */
.sticky-buy {
    position: fixed;
    top: var(--sticky-offset, 108px);
    left: 0;
    right: 0;
    margin: 0 auto;
    width: min(90%, 720px);
    z-index: 85;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-14px);
    transition: opacity 0.3s ease, transform 0.35s ease, visibility 0.3s;
}

.sticky-buy.show {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.sticky-thumb {
    width: 44px;
    height: 54px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--img-bg, var(--color-bg-alt));
}

.sticky-name {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    letter-spacing: 0.03em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sticky-add {
    flex-shrink: 0;
    width: auto;
    padding: 11px 22px;
    border: 0;
    border-radius: 999px;
    background: var(--color-text);
    color: var(--color-bg);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
}

.sticky-add:disabled { opacity: 0.45; cursor: default; }

/* ===== STAGE 3 END ===== */

/* =====================================================================
   REDESIGN STAGE 4: round bag button on the top bar, crown logo on phones
   To undo, delete everything from this line down to "STAGE 4 END".
   ===================================================================== */

/* ---- the bar under the header, like Gucci's ---- */
.sticky-buy {
    width: min(92%, 720px);
    height: 56px;
    padding: 0 10px 0 0;
    gap: 14px;
    overflow: hidden;
    background: #8f9093;
    border: 0;
    border-radius: 4px;
}

[data-theme="dark"] .sticky-buy { background: #2b2b2b; }

.sticky-thumb {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 0;
    background: #ffffff;
    object-fit: cover;
    object-position: center 20%;
}

.sticky-name {
    color: #ffffff;
    font-weight: 500;
}

/* round ring button with a shopping bag inside */
.sticky-add {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid #ffffff;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.sticky-add svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sticky-add .icon-check { display: none; }
.sticky-add.done .icon-bag { display: none; }
.sticky-add.done .icon-check { display: block; }
.sticky-add:hover:not(:disabled) { background: #ffffff; color: #1a1a1a; }
.sticky-add.busy { opacity: 0.6; }

/* ---- phones: only the crown mark, centred, like the LV page ---- */
@media (max-width: 768px) {
    .logo-text { display: none; }

    .logo-mark {
        display: block;
        width: 42px;
        height: 42px;
    }
}

/* ===== STAGE 4 END ===== */
