:root {
    --arm-green-dark: #0d2818;
    --arm-green: #1e5631;
    --arm-green-light: #2f8f4e;
    --arm-gold: #f2b134;
    --arm-terracotta: #d9702a;
    --arm-cream: #fdf8ef;
    --arm-text: #23301f;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
}

body {
    background-color: var(--arm-cream);
    color: var(--arm-text);
    overflow-x: hidden;
}

a { text-decoration: none; }

.navbar-brand-logo {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--arm-green-dark) !important;
    letter-spacing: 0.5px;
}
.navbar-brand-logo span { color: var(--arm-terracotta); }

.navbar-arm {
    background: rgba(253, 248, 239, 0.92);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 18px rgba(13, 40, 24, 0.08);
}

.navbar-nav .nav-link {
    padding-left: .65rem !important;
    padding-right: .65rem !important;
    font-size: .95rem;
}
@media (max-width: 1199.98px) {
    .navbar-nav .nav-link { font-size: .9rem; padding-left: .5rem !important; padding-right: .5rem !important; }
}

.btn-arm {
    background: linear-gradient(135deg, var(--arm-green-light), var(--arm-green));
    color: #fff;
    border: none;
    font-weight: 600;
    transition: transform .25s ease, box-shadow .25s ease;
}
.btn-arm:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(30, 86, 49, 0.35);
}

.btn-outline-arm {
    border: 2px solid var(--arm-green);
    color: var(--arm-green);
    font-weight: 600;
    background: transparent;
}
.btn-outline-arm:hover { background: var(--arm-green); color: #fff; }

/* ---------------- HERO with 3D animation ---------------- */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    background-image: linear-gradient(135deg, rgba(13,40,24,0.88), rgba(30,86,49,0.75)), url('https://images.unsplash.com/photo-1488459716781-31db52582fe9?q=80&w=1600&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    overflow: hidden;
    perspective: 1400px;
}

#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.55;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    text-shadow: 0 8px 30px rgba(0,0,0,.35);
}
.hero-content .highlight { color: var(--arm-gold); }

.hero-content p.lead {
    font-size: 1.15rem;
    color: #eef7ef;
    max-width: 520px;
}

.hero-3d-stage {
    position: relative;
    z-index: 2;
    height: 420px;
}

/* ---- Animated hero produce illustration ---- */
.delivery-scene {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-illustration {
    width: 100%;
    max-width: 420px;
    filter: drop-shadow(0 20px 25px rgba(0,0,0,.3));
}
.hero-shadow {
    animation: shadowPulse 3.6s ease-in-out infinite;
    transform-origin: center;
}
.basket-float {
    animation: gentleFloat 3.6s ease-in-out infinite;
    transform-origin: center;
}
.box-float {
    animation: gentleFloat 3.6s ease-in-out infinite;
    animation-delay: .3s;
    transform-origin: center;
}
.pin-float {
    animation: pinBob 2.4s ease-in-out infinite;
    transform-origin: bottom center;
}
.leaf-float {
    animation: leafDrift 4s ease-in-out infinite;
}
.leaf-1 { animation-delay: 0s; }
.leaf-2 { animation-delay: .8s; }
.leaf-3 { animation-delay: 1.6s; }
.leaf-4 { animation-delay: 2.4s; }

@keyframes gentleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
@keyframes shadowPulse {
    0%, 100% { opacity: .3; transform: scaleX(1); }
    50% { opacity: .18; transform: scaleX(0.88); }
}
@keyframes pinBob {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-6px) scale(1.04); }
}
@keyframes leafDrift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: .85; }
    50% { transform: translate(6px, -14px) rotate(12deg); opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotateY(-12deg) rotateX(6deg); }
    50% { transform: translateY(-22px) rotateY(-8deg) rotateX(3deg); }
}

.scroll-cue {
    position: absolute;
    bottom: 24px; left: 50%; transform: translateX(-50%);
    color: #fff; opacity: .75; z-index: 2;
    animation: bob 2s infinite;
    font-size: 1.6rem;
}
@keyframes bob { 0%,100%{transform:translate(-50%,0);} 50%{transform:translate(-50%,8px);} }

/* ---------------- Sections ---------------- */
.section-title {
    font-weight: 800;
    color: var(--arm-green-dark);
}
.section-title .accent { color: var(--arm-terracotta); }

.section-pad { padding: 5rem 0; }

.category-pill {
    border-radius: 50px;
    padding: .55rem 1.25rem;
    border: 2px solid var(--arm-green);
    color: var(--arm-green);
    font-weight: 600;
    background: #fff;
    transition: all .2s ease;
}
.category-pill.active, .category-pill:hover {
    background: var(--arm-green);
    color: #fff;
}

/* Product cards with subtle 3D tilt */
.product-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(13,40,24,.08);
    transition: transform .35s ease, box-shadow .35s ease;
    transform-style: preserve-3d;
    will-change: transform;
    height: 100%;
}
.product-card:hover {
    box-shadow: 0 25px 45px rgba(13,40,24,.18);
}
.product-card .pc-img-wrap { position: relative; overflow: hidden; height: 190px; background:#eef3ec;}
.product-card .pc-img-wrap img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .5s ease;
}
.product-card:hover .pc-img-wrap img { transform: scale(1.08) rotate(1deg); }

.badge-stock-out {
    position: absolute; top: 10px; left: 10px;
    background: #b3261e; color:#fff; font-size:.72rem; padding:.3rem .6rem; border-radius:50px;
}
.badge-featured {
    position: absolute; top: 10px; right: 10px;
    background: var(--arm-gold); color:#3a2a00; font-size:.72rem; padding:.3rem .6rem; border-radius:50px; font-weight:700;
}

.price-tag { color: var(--arm-terracotta); font-weight: 800; font-size: 1.15rem; }

.footer-arm {
    background: var(--arm-green-dark);
    color: #d9e8dc;
}
.footer-arm a { color: #cfe9d6; }
.footer-arm a:hover { color: var(--arm-gold); }

.cart-badge {
    position: absolute; top: -6px; right: -10px;
    background: var(--arm-terracotta); color:#fff;
    font-size: .7rem; border-radius: 50%;
    width: 20px; height: 20px; display:flex; align-items:center; justify-content:center;
}

/* Payment page */
.payment-box {
    background: #fff; border-radius: 20px; box-shadow: 0 15px 40px rgba(13,40,24,.1);
    padding: 2rem;
}
.upload-drop {
    border: 2px dashed var(--arm-green-light);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    color: var(--arm-green);
    cursor: pointer;
    transition: background .2s ease;
}
.upload-drop:hover { background: #f1f9f2; }

@media (max-width: 767.98px) {
    .hero { min-height: auto; padding: 7rem 0 4rem; text-align:center; }
    .hero-3d-stage { height: 300px; margin-top: 2rem; }
    .hero-illustration { max-width: 260px; }
    .hero-content p.lead { max-width: 100%; margin-left:auto; margin-right:auto; }
}
