@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&display=swap');

/* ==========================================
   DESIGN TOKENS
   A workshop palette: deep forest green (trust,
   the existing brand) + warm workbench amber
   (craft, sawdust, hand-tools) on a warm paper
   ground. Fraunces carries headings for a
   crafted, made-by-hand feel; Poppins stays for
   body copy so every existing page keeps working.
========================================== */

:root{
    --ink:#182420;
    --ink-soft:#5c6a63;
    --paper:#f7f4ee;
    --panel:#ffffff;
    --line:#e6e1d4;

    --forest:#1f6f4a;
    --forest-deep:#154d33;
    --forest-light:#2e9160;

    --amber:#d9822b;
    --amber-deep:#b5651d;
    --clay:#c0392b;

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

    --shadow-sm:0 2px 8px rgba(24,36,32,.06);
    --shadow-md:0 10px 26px rgba(24,36,32,.09);
    --shadow-lg:0 22px 48px rgba(24,36,32,.14);

    --ease:cubic-bezier(.4,0,.2,1);
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}
html{
    scroll-behavior:smooth;
}
body{
    background:var(--paper);
    color:var(--ink);
    line-height:1.6;
}
img{
    width:100%;
    display:block;
}

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

ul{
    list-style:none;
}

button{
    cursor:pointer;
    border:none;
    outline:none;
    font-family:'Poppins',sans-serif;
}

h1,h2,h3,h4{
    font-family:'Fraunces',serif;
    letter-spacing:-.01em;
}

:focus-visible{
    outline:3px solid var(--amber);
    outline-offset:3px;
    border-radius:4px;
}

@media (prefers-reduced-motion: reduce){
    *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}

/* ==========================================
   REUSABLE CONTAINER
========================================== */

.container{
    width:90%;
    max-width:1200px;
    margin:auto;
}

/* ==========================================
   TOP HEADER
========================================== */

.top-header{
    background:var(--panel);
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:24px;
    padding:16px 7%;
    box-shadow:var(--shadow-sm);
    position:relative;
    z-index:20;
    border-bottom:1px solid var(--line);
}

.logo h2{
    font-family:'Fraunces',serif;
    color:var(--forest-deep);
    font-size:28px;
    font-weight:700;
    letter-spacing:-.02em;
}

.search-bar{
    display:flex;
    width:45%;
}

.search-bar input{
    width:100%;
    padding:12px 16px;
    border:1.5px solid var(--line);
    border-right:none;
    border-radius:var(--radius-sm) 0 0 var(--radius-sm);
    font-size:15px;
    background:var(--paper);
    transition:.25s var(--ease);
}

.search-bar input:focus{
    outline:none;
    border-color:var(--forest);
    background:#fff;
}

.search-bar button{
    width:52px;
    background:var(--forest);
    color:white;
    border-radius:0 var(--radius-sm) var(--radius-sm) 0;
    transition:.25s var(--ease);
}

.search-bar button:hover{
    background:var(--forest-deep);
}


.header-icons{
    display:flex;
    gap:26px;
    align-items:center;
}

.header-icons a{
    color:var(--ink);
    font-size:14.5px;
    font-weight:500;
    transition:.25s var(--ease);
    position:relative;
}

.header-icons a i{
    margin-right:6px;
    color:var(--forest);
}

.header-icons a:hover{
    color:var(--forest);
}

/* Cart link reads as a subtle pill so it stands out as an action, not a nav item */
.header-icons a:last-child{
    background:var(--forest);
    color:#fff;
    padding:10px 18px;
    border-radius:40px;
    transition:.25s var(--ease);
}
.header-icons a:last-child i{ color:#fff; }
.header-icons a:last-child:hover{
    background:var(--forest-deep);
    transform:translateY(-2px);
    box-shadow:var(--shadow-sm);
}

/* ==========================================
   HAMBURGER MENU BUTTON
========================================== */

.hamburger{
    display:none;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:5px;
    width:40px;
    height:40px;
    background:transparent;
    cursor:pointer;
    z-index:1001;
    border:none;
    padding:0;
}

.hamburger span{
    display:block;
    width:26px;
    height:3px;
    background:var(--ink);
    border-radius:3px;
    transition:all .3s ease;
}

.hamburger.active span:nth-child(1){
    transform:rotate(45deg) translate(5px,6px);
}
.hamburger.active span:nth-child(2){
    opacity:0;
}
.hamburger.active span:nth-child(3){
    transform:rotate(-45deg) translate(5px,-6px);
}

/* ==========================================
   MOBILE DROPDOWN MENU
========================================== */

.mobile-menu{
    display:none;
    background:var(--panel);
    box-shadow:var(--shadow-md);
    padding:20px 7%;
    max-height:0;
    overflow:hidden;
    transition:max-height .4s ease, padding .3s ease;
}

.mobile-menu.active{
    max-height:500px;
    padding:20px 7%;
}

.mobile-search{
    display:flex;
    margin-bottom:15px;
}

.mobile-search input{
    flex:1;
    padding:12px;
    border:1.5px solid var(--line);
    border-right:none;
    border-radius:var(--radius-sm) 0 0 var(--radius-sm);
    font-size:15px;
}

.mobile-search button{
    width:50px;
    background:var(--forest);
    color:white;
    border:none;
    border-radius:0 var(--radius-sm) var(--radius-sm) 0;
    cursor:pointer;
}

.mobile-menu ul{
    list-style:none;
    margin-bottom:15px;
}

.mobile-menu ul li a{
    display:block;
    padding:12px 0;
    color:var(--ink);
    font-weight:500;
    font-size:16px;
    border-bottom:1px solid var(--line);
    transition:.3s;
}

.mobile-menu ul li a:hover{
    color:var(--forest);
    padding-left:10px;
}

.mobile-auth{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    padding-top:10px;
}

.mobile-auth a{
    padding:10px 20px;
    background:var(--forest);
    color:white;
    border-radius:var(--radius-sm);
    font-weight:600;
    font-size:14px;
    transition:.3s;
}

.mobile-auth a:hover{
    background:var(--forest-deep);
}

/* ==========================================
   PRIMARY NAV
   A hairline "cut line" under the bar nods to
   packaging / pattern-cutting without leaning
   on any one literal icon.
========================================== */

nav{
    background:linear-gradient(180deg, var(--forest-deep), var(--forest));
    position:relative;
}

nav::after{
    content:'';
    display:block;
    height:1px;
    background:repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 10px, transparent 10px 18px);
}

nav ul{
    display:flex;
    justify-content:center;
}
nav ul li{
    margin:0 25px;
}

nav ul li a{
    color:rgba(255,255,255,.88);
    display:block;
    padding:15px 10px;
    font-weight:600;
    font-size:14.5px;
    letter-spacing:.01em;
    transition:.25s var(--ease);
    position:relative;
}

nav ul li a::before{
    content:'';
    position:absolute;
    left:10px;
    right:10px;
    bottom:8px;
    height:2px;
    background:var(--amber);
    transform:scaleX(0);
    transform-origin:left;
    transition:transform .25s var(--ease);
}

nav ul li a:hover{
    color:#fff;
}
nav ul li a:hover::before{
    transform:scaleX(1);
}

/*====================================================================
                            HERO SECTION
======================================================================*/


.hero{
    height:80vh;

   background:
        linear-gradient(rgba(15,25,20,.6), rgba(15,25,20,.68)),
        url("/test/sigmabuys/assets/images/1.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    position:relative;
}

.hero::before{
    content:'';
    position:absolute;
    inset:0;
    background:linear-gradient(180deg, transparent 70%, var(--paper) 100%);
    pointer-events:none;
}

.hero-content{
    width:800px;
    margin-top: -60px;
    position:relative;
    z-index:2;
}

.hero-content h1{
    font-size:60px;
    color:#ffffff;
    line-height: 1.15;
    margin-bottom:22px;
    font-weight:700;
}

.hero-content p{
    font-size: 20px;
    width:700px;
    margin:0 auto 40px;
    color: #eef1ee;
}

.hero-content a{
    display:inline-block;
    background:var(--amber);
    color:#fff;
    padding:16px 45px;
    border-radius:40px;
    font-size:18px;
    font-weight:600;
    text-decoration:none;
    transition:.3s var(--ease);
    box-shadow:0 12px 24px rgba(217,130,43,.35);
}

.hero-content a:hover{
    background:var(--amber-deep);
    transform:translateY(-4px);
    box-shadow:0 16px 30px rgba(217,130,43,.45);
}

/*=====================================================
                PRODUCT GRID
======================================================*/

.product-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:30px;
}

/*=====================================================
                PRODUCT CARD
======================================================*/

.product-card{
    background:var(--panel);
    border-radius:var(--radius-lg);
    overflow:hidden;
    box-shadow:var(--shadow-sm);
    border:1px solid var(--line);
    transition:all .35s var(--ease);
    text-align:center;
    padding-bottom:20px;
}

.product-card:hover{
    transform:translateY(-8px);
    box-shadow:var(--shadow-lg);
    border-color:transparent;
}

/*=====================================================
                PRODUCT IMAGE
======================================================*/

.product-card img{
    width:100%;
    height:230px;
    object-fit:cover;
    transition:.4s var(--ease);
}

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

/*=====================================================
                PRODUCT NAME
======================================================*/

.product-card h3{
    font-size:21px;
    color:var(--ink);
    margin:18px 15px 10px;
    font-weight:600;
}

/*=====================================================
                PRODUCT DESCRIPTION
======================================================*/

.product-card p{
    color:var(--ink-soft);
    font-size:14.5px;
    padding:0 15px;
    margin-bottom:15px;
}

/*=====================================================
                PRODUCT PRICE
======================================================*/

.product-card .price{
    display:block;
    color:var(--forest-deep);
    font-size:24px;
    font-weight:700;
    margin-bottom:18px;
    font-family:'Fraunces',serif;
}

/*=====================================================
                PRODUCT RATING
======================================================*/

.rating{
    color:#e3a008;
    margin-bottom:18px;
    font-size:15px;
    letter-spacing:2px;
}

/*=====================================================
                ADD TO CART BUTTON
======================================================*/

.product-card button{
    background:var(--forest);
    color:#fff;
    border:none;
    padding:12px 30px;
    border-radius:40px;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
    transition:.25s var(--ease);
}

.product-card button:hover{
    background:var(--forest-deep);
    transform:translateY(-3px);
    box-shadow:var(--shadow-sm);
}

.product-card button.is-added{
    background:var(--amber);
}

.product-card button:disabled{
    cursor:default;
}

/*=====================================================
                VIEW DETAILS BUTTON
======================================================*/

.product-card .details-btn{
    display:inline-block;
    margin-top:12px;
    color:var(--ink);
    text-decoration:none;
    font-weight:600;
    font-size:14px;
    border-bottom:1.5px solid transparent;
    transition:.25s var(--ease);
}

.product-card .details-btn:hover{
    color:var(--forest);
    border-bottom-color:var(--forest);
}

/*=====================================================
        SALE BADGE — styled as a workshop hang-tag
======================================================*/

.product-card{
    position:relative;
}

.sale{
    position:absolute;
    top:16px;
    left:-6px;
    background:var(--clay);
    color:#fff;
    padding:6px 16px 6px 20px;
    font-size:12.5px;
    font-weight:700;
    letter-spacing:.02em;
    clip-path:polygon(0 50%, 14px 0, 100% 0, 100% 100%, 14px 100%);
    box-shadow:var(--shadow-sm);
    z-index:2;
}

.sale::before{
    content:'';
    position:absolute;
    left:6px;
    top:50%;
    width:4px;
    height:4px;
    background:rgba(255,255,255,.85);
    border-radius:50%;
    transform:translateY(-50%);
}

/*=====================================================
            STOCK STATUS
======================================================*/

.stock{
    margin-top:10px;
    font-size:14px;
    color:var(--forest);
    font-weight:600;
}

.out-stock{
    color:var(--clay);
}

/*=====================================================
            FOOTER
======================================================*/

footer{
    background:var(--ink);
    color:#c7cfc9;
    margin-top:60px;
}

.footer-content{
    display:grid;
    grid-template-columns:2fr 1fr 1fr 1fr;
    gap:40px;
    width:90%;
    max-width:1200px;
    margin:auto;
    padding:60px 0 40px;
}

.footer-brand h3{
    font-family:'Fraunces',serif;
    color:var(--forest-light);
    font-size:25px;
    margin-bottom:12px;
}

.footer-brand p{
    font-size:15px;
    line-height:1.7;
    color:#98a39c;
}

.footer-links h4{
    color:#fff;
    font-size:17px;
    margin-bottom:18px;
    font-weight:600;
    font-family:'Poppins',sans-serif;
}

.footer-links ul{
    list-style:none;
}

.footer-links ul li{
    margin-bottom:10px;
}

.footer-links ul li a{
    color:#98a39c;
    font-size:15px;
    transition:.25s var(--ease);
}

.footer-links ul li a:hover{
    color:var(--forest-light);
    padding-left:5px;
}

.social-icons{
    display:flex;
    gap:12px;
}

.social-icons a{
    display:flex;
    align-items:center;
    justify-content:center;
    width:40px;
    height:40px;
    background:rgba(255,255,255,.07);
    border-radius:50%;
    color:#c7cfc9;
    font-size:16px;
    transition:.25s var(--ease);
}

.social-icons a:hover{
    background:var(--forest);
    color:#fff;
    transform:translateY(-3px);
}

.footer-bottom{
    text-align:center;
    padding:20px;
    border-top:1px solid rgba(255,255,255,.08);
}

.footer-bottom p{
    font-size:13.5px;
    color:#7b877f;
}

/*=====================================================
       RESPONSIVE - TABLET (max-width: 992px)
======================================================*/

@media(max-width:992px){

    .top-header{
        flex-wrap:wrap;
        padding:15px 5%;
    }

    .search-bar{
        width:40%;
    }

    .header-icons{
        gap:15px;
    }

    .header-icons a{
        font-size:14px;
    }

    nav ul li{
        margin:0 15px;
    }

    .hero{
        height:60vh;
    }

    .hero-content{
        width:90%;
    }

    .hero-content h1{
        font-size:42px;
    }

    .hero-content p{
        font-size:18px;
        width:100%;
    }

    .product-grid{
        grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
        gap:20px;
    }

    .footer-content{
        grid-template-columns:1fr 1fr;
        gap:30px;
    }
}

/*=====================================================
       RESPONSIVE - MOBILE (max-width: 768px)
======================================================*/

@media(max-width:768px){

    /* Header */
    .top-header{
        padding:12px 5%;
    }

    .search-bar{
        display:none;
    }

    .header-icons{
        display:none;
    }

    .hamburger{
        display:flex;
    }

    .mobile-menu{
        display:block;
    }

    nav{
        display:none;
    }

    /* Hero */
    .hero{
        height:50vh;
    }

    .hero-content h1{
        font-size:32px;
    }

    .hero-content p{
        font-size:16px;
        width:100%;
    }

    .hero-content a{
        padding:14px 35px;
        font-size:17px;
    }

    /* Product Cards */
    .product-card h3{
        font-size:18px;
    }

    .product-card .price{
        font-size:20px;
    }

    .product-card button{
        padding:10px 22px;
        font-size:14px;
    }

    .product-card img{
        height:200px;
    }

    /* Footer */
    .footer-content{
        grid-template-columns:1fr;
        gap:30px;
        padding:40px 0 30px;
    }

    .footer-brand{
        text-align:center;
    }

    .footer-links{
        text-align:center;
    }

    .social-icons{
        justify-content:center;
    }
}

/*=====================================================
       RESPONSIVE - SMALL MOBILE (max-width: 480px)
======================================================*/

@media(max-width:480px){

    .logo h2{
        font-size:22px;
    }

    .hero{
        height:45vh;
    }

    .hero-content h1{
        font-size:26px;
        margin-bottom:15px;
    }

    .hero-content p{
        font-size:14px;
        margin-bottom:25px;
    }

    .hero-content a{
        padding:12px 28px;
        font-size:15px;
    }

    .product-grid{
        grid-template-columns:1fr;
        gap:20px;
    }

    .product-card img{
        height:220px;
    }

    .mobile-menu.active{
        max-height:600px;
    }
}