/* ================================================= */
/* DARK MODE COLOR PALETTE */
/* ================================================= */
:root {
    --yellow: #FFD43B; /* Primary Highlight/Text Accent */
    --orange: #FF922B; /* Secondary Accent/CTA */
    --bg: #1a1a1a; /* Main Background (Dark Charcoal) */
    --card-bg: #2a2a2a; /* Cards & Panels Background */
    --text: #f0f0f0; /* Main Text Color (Off-White) */
    --navy: var(--yellow); /* HEADINGS/STRONG TEXT (Re-mapped to Yellow) */
    --green: var(--yellow); /* PRICE/HIGHLIGHTS (Re-mapped to Yellow) */
    --green-light: rgba(255, 212, 59, 0.15); /* Light Yellow Tint for hover/subtle BG */
    
    --border-radius: 16px;
    /* Adjusted shadow for dark mode (white glow) */
    --shadow: 0 5px 20px rgba(255, 255, 255, 0.08);
}

/* ================================================= */
/* THEME ANIMATIONS */
/* ================================================= */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Subtly shifts the background gradients for a dynamic effect */
@keyframes backgroundShift {
    0% {
        transform: translate(0, 0);
        background-position: 10% 20%, 90% 80%;
    }
    100% {
        /* Slow movement across the screen */
        transform: translate(5vw, 5vh); 
        background-position: 0% 10%, 100% 70%;
    }
}

/* Apply fade-in animation to main layout */
main {
    animation: fadeIn 0.8s ease-out 0.2s backwards;
}

/* Subtle pulse animation for the cart count */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.cart-count {
    animation: pulse 1.5s infinite ease-in-out;
}

/* ================================================= */
/* ANIMATED BACKGROUND DESIGN */
/* ================================================= */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Place behind all content */
    /* Two subtle radial gradients (yellow and orange) */
    background: radial-gradient(circle at 10% 20%, rgba(255, 212, 59, 0.05), transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(255, 146, 43, 0.04), transparent 50%);
    opacity: 0.8;
    animation: backgroundShift 60s linear infinite alternate; /* Very slow, non-distracting animation */
}

/* ================================================= */
/* RESET (Moved to top for best practice) */
/* ================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    font-size: 15px;
    transition: background-color 0.5s ease; /* Theme transition */
}

a {
    text-decoration: none;
    color: inherit;
}

/* ================================================= */
/* PROMO SLIDER — HIGHLIGHT */
/* ================================================= */
.promo-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    /* Yellow/Orange Gradient */
    background: linear-gradient(135deg, var(--yellow), var(--orange));
    padding: 0.55rem 1rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.4);
}

/* Text color remains dark for high contrast against yellow/orange */
.promo-slide {
    color: #111 !important; 
    font-size: 0.95rem;
    display: none;
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.3px;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

/* Active slide */
.promo-slide.active {
    display: block;
    opacity: 1;
}

/* Icon color */
.promo-icon {
    margin-right: 6px;
    font-size: 1.1rem;
    color: #111 !important;
}

/* MOBILE */
@media (max-width: 550px) {
    .promo-slide {
        font-size: 0.85rem;
        padding: 0.4rem;
    }
}


/* ================================================= */
/* HEADER & NAV */
/* ================================================= */

header {
    position: sticky;
    top: 0;
    z-index: 50;
    /* Dark header with transparency */
    background: rgba(42, 42, 42, 0.96); 
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text); /* White text for logo */
}

.logo-badge {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    /* Use Yellow/Orange gradient */
    background: linear-gradient(135deg, var(--yellow), var(--orange));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111; /* Dark text on badge */
    font-size: 0.8rem;
}

.logo-sub {
    font-weight: 500;
    opacity: 0.8;
}

.nav-links {
    display: flex;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.nav-links a {
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    transition: background 0.2s, color 0.2s;
    color: var(--text);
}

.nav-links a:hover {
    background: var(--green-light); /* Yellow tint hover BG */
    color: var(--yellow); /* Yellow text hover color */
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* ================================================= */
/* BUTTONS */
/* ================================================= */

.btn {
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    transition: transform 0.1s, box-shadow 0.2s, background 0.2s;
}

.btn-primary {
    /* Use Yellow/Orange gradient */
    background: linear-gradient(135deg, var(--yellow), var(--orange));
    color: #111; /* Dark text for high contrast */
    box-shadow: 0 4px 15px rgba(255, 212, 59, 0.4); /* Yellow glow shadow */
}

.btn-primary:hover {
    transform: translateY(-2px); /* Enhanced lift */
    box-shadow: 0 8px 25px rgba(255, 212, 59, 0.6);
}

.btn-outline {
    background: var(--card-bg); /* Dark background */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Light border */
    color: var(--text); /* White text */
}

.btn-xs {
    padding: 0.25rem 0.6rem;
    font-size: 0.8rem;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.05);
}

/* LINK BUTTON */

.btn-link {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-size: 0.8rem;
    color: var(--yellow); /* Use yellow accent */
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s;
}
.btn-link:hover {
    color: var(--orange); /* Use orange on hover */
}

/* ================================================= */
/* LAYOUT */
/* ================================================= */

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1rem 3rem;
}

.section {
    margin-bottom: 2.5rem; /* Slightly more space */
}

/* ABOUT SECTION */

.about {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr);
    gap: 1.5rem;
    align-items: center;
}

.about-title {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin-bottom: 0.5rem;
    color: var(--yellow); /* Use yellow for titles */
    font-weight: 700;
}

.about-lead {
    font-size: 0.96rem;
    margin-bottom: 0.5rem;
}

.about-body {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0.8rem;
    font-size: 0.85rem;
}

.about-list li {
    margin-bottom: 0.2rem;
}

.about-list li::before {
    content: "✔ ";
    color: var(--yellow); /* Use yellow checkmark */
    font-weight: 700;
}

.about-cta {
    margin-top: 0.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.about-images {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.about-img-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.about-img-card:hover {
    transform: translateY(-4px); /* subtle movement on hover */
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.1);
}

.about-img-card img {
    width: 100%;
    display: block;
    height: 120px;
    object-fit: cover;
}

.about-img-card span {
    display: block;
    padding: 0.4rem 0.5rem;
    color: var(--text);
    background: rgba(0,0,0,0.2);
}

/* HERO QUICK HIGHLIGHTS */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr);
    gap: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    align-items: stretch;
}

.hero-card {
    /* Dark background gradient */
    background: radial-gradient(circle at top left, var(--card-bg) 10%, var(--bg));
    border-radius: 24px;
    padding: 1.4rem;
    box-shadow: var(--shadow);
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    /* Yellow tint background */
    background: rgba(255, 212, 59, 0.15); 
    color: var(--yellow);
    margin-bottom: 0.6rem;
}

.hero-card h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin-bottom: 0.4rem;
    color: var(--text);
}

.hero-card h2 span {
    color: var(--yellow); /* Highlight text with yellow */
}

.hero-card p {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.hero-tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    /* Orange tint background */
    background: rgba(255, 146, 43, 0.15); 
    color: var(--orange);
}

.hero-visual {
    border-radius: 24px;
    padding: 1.3rem;
    /* Card dark background gradient */
    background: linear-gradient(145deg, var(--card-bg), var(--bg));
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.pill-card {
    background: var(--card-bg);
    border-radius: 18px;
    padding: 0.7rem;
    font-size: 0.8rem;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    border-left: 3px solid var(--yellow); /* Yellow accent bar */
}

.pill-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.7;
    color: var(--yellow); /* Use yellow label */
}

.pill-main {
    font-weight: 600;
    color: var(--text);
}

.pill-note {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* PRODUCT CARD IMAGES */
.card-image {
    width: 100%;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    background: var(--bg);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* SECTION HEADERS & CARDS */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
    gap: 1rem;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text);
}

.section-subtitle {
    font-size: 0.85rem;
    opacity: 0.8;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
}

.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 0.9rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.85rem;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

.card-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.7;
    color: var(--yellow); /* Yellow tag */
}

.card-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
}

.card-meta {
    font-size: 0.78rem;
    opacity: 0.8;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.35rem;
    gap: 0.5rem;
}

.price {
    font-weight: 600;
    color: var(--yellow); /* Yellow price */
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    /* Yellow tint background */
    background: rgba(255, 212, 59, 0.15); 
    color: var(--yellow);
}

/* SERVICES */

.services-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.services-list li {
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

/* CONTACT */

.contact-note {
    margin-top: 0.4rem;
}

/* CART & AUTH PANELS */

.cart-toggle {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--orange);
    color: #111; /* Dark text on orange */
    border-radius: 999px;
    font-size: 0.7rem;
    padding: 0 0.3rem;
}

.side-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(360px, 90vw);
    height: 100vh;
    /* Dark panel background */
    background: var(--card-bg); 
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    transform: translateX(100%);
    transition: transform 0.25s ease-out;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.side-panel.open {
    transform: translateX(0);
}

.side-panel-header {
    padding: 0.8rem 1rem 0.7rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.side-panel-header h3 {
    font-size: 1rem;
    margin: 0;
    color: var(--text);
}

.side-panel-body {
    padding: 0.75rem 1rem 1rem;
    overflow-y: auto;
    flex: 1;
    font-size: 0.85rem;
}

.side-panel-footer {
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
}

.cart-item-title {
    font-weight: 500;
    color: var(--text);
}

.cart-qty {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
}

.cart-qty button {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: var(--bg);
    color: var(--text);
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    line-height: 1;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.cart-note {
    font-size: 0.78rem;
    margin-bottom: 0.5rem;
}

.cart-checkout-btn {
    width: 100%;
    margin-bottom: 0.35rem;
}

.auth-note {
    font-size: 0.8rem;
    opacity: 0.85;
    margin-top: 0.4rem;
}

/* FORMS */

.form-group {
    margin-bottom: 0.6rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.4rem 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    font-size: 0.85rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--yellow);
}

.details-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0.8rem 0;
}

.details-contact-title {
    font-size: 0.95rem;
    margin: 0 0 0.4rem;
    color: var(--text);
}

.details-desc {
    margin: 0.3rem 0;
    font-size: 0.85rem;
}

.details-category {
    font-size: 0.8rem;
    opacity: 0.7;
}

.details-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--yellow); /* Yellow price */
    margin: 0.3rem 0;
}

.details-form textarea {
    resize: vertical;
}

.details-submit-btn {
    width: 100%;
    margin-top: 0.4rem;
}

.details-store-info {
    margin-top: 0.8rem;
    font-size: 0.8rem;
}

/* GALLERY */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.75rem;
}

.gallery-item {
    background: var(--card-bg);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.2s;
}
.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    display: block;
    height: 120px;
    object-fit: cover;
}

.gallery-item figcaption {
    font-size: 0.75rem;
    padding: 0.35rem 0.45rem;
    text-align: center;
    background: var(--bg);
    color: var(--text);
}

/* GALLERY MODAL */

.gallery-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 110;
    padding: 1rem;
}

.gallery-modal-inner {
    background: var(--card-bg);
    border-radius: 16px;
    max-width: 520px;
    width: 100%;
    padding: 0.75rem 0.75rem 0.9rem;
    position: relative;
}

.gallery-modal img {
    width: 100%;
    border-radius: 12px;
    max-height: 70vh;
    object-fit: contain;
}

.gallery-modal-close {
    position: absolute;
    top: 0.35rem;
    right: 0.45rem;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: var(--text);
    border-radius: 999px;
    width: 26px;
    height: 26px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.2s;
}

.gallery-modal-close:hover {
    background: var(--yellow);
    color: #111;
}

/* FOOTER */

footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.9rem 1rem;
    font-size: 0.8rem;
    text-align: center;
    background: var(--bg);
    color: var(--text);
}

/* ================================================= */
/* RESPONSIVE - MOBILE FIRST */
/* ================================================= */

@media (max-width: 860px) {
    .about {
        grid-template-columns: minmax(0, 1fr);
    }

    .about-images {
        order: -1;
    }

    .hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-visual {
        order: 2;
    }

    .nav-links {
        display: none;
    }

    .nav {
        padding-inline: 0.6rem;
    }
}

@media (max-width: 500px) {
    main {
        padding-inline: 0.7rem;
    }

    .hero-card,
    .hero-visual {
        padding: 1rem;
    }

    .about-img-card img {
        height: 100px;
    }

    .gallery-item img {
        height: 100px;
    }
}