/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

/* =========================================================
   VARIABLES
========================================================= */

:root{

    /* COLORS */
    --green:#16a34a;
    --green-dark:#14532d;
    --green-hover:#15803d;

    --blue:#2563eb;
    --blue-hover:#1d4ed8;

    --red:#dc2626;
    --orange:#f59e0b;

    --text:#1f2937;
    --gray:#6b7280;

    --bg:#f4f7f5;
    --white:#ffffff;

    --border:#e5e7eb;

    /* EFFECTS */
    --radius:18px;
    --radius-lg:24px;

    --shadow:
        0 5px 20px rgba(0,0,0,0.08);

    --transition:.25s ease;
}

/* =========================================================
   GLOBAL
========================================================= */

html{
    scroll-behavior:smooth;
}

body{
    margin:0;

    font-family:Arial,sans-serif;

    background:var(--bg);
    color:var(--text);

    padding-bottom:180px;

    overflow-x:hidden;
}

img{
    max-width:100%;
    display:block;
}

.logo{
    display:flex;
    align-items:center;
    gap:12px;

    text-decoration:none;

    color:#14532d;

    font-size:22px;
    font-weight:bold;
}

.logo img{
    width:100px;
    height:100px;

    object-fit:contain;
}

.logo:hover{
    opacity:.9;
}

button,
input,
textarea,
select{
    font-family:inherit;
}

button{
    cursor:pointer;
}

.hidden{
    display:none !important;
}


.no-photo{
    height:165px;

    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    gap:10px;

    background:linear-gradient(135deg,#f3f4f6,#e5e7eb);

    color:#6b7280;

    font-weight:600;

    border-radius:16px;
}
/* =========================================================
   HEADER
========================================================= */

.site-header{
    position:sticky;
    top:0;
    z-index:1000;

    background:white;

    padding:18px 30px;

    display:flex;
    align-items:center;
    justify-content:space-between;

    box-shadow:0 3px 15px rgba(0,0,0,0.06);

    position:relative; /* IMPORTANT */
}

.logo{
    font-size:22px;
    font-weight:bold;

    color:var(--green-dark);
}

/* =========================================================
   MENU
========================================================= */

.menu{
    display:flex;
    align-items:center;
    gap:25px;
}


.site-header{
    position:sticky;
    top:0;
    z-index:1000;

    background:white;

    padding:18px 30px;

    display:flex;
    align-items:center;
    justify-content:space-between;

    box-shadow:0 3px 15px rgba(0,0,0,0.06);

    position:relative; /* IMPORTANT */
}
.menu a{
    text-decoration:none;

    color:#374151;

    font-weight:800;

    transition:var(--transition);
}

.menu a:hover{
    color:var(--green);
}

/* BURGER */

.burger{
    display:none;

    font-size:30px;

    cursor:pointer;
    user-select:none;
}

#menu-toggle{
    display:none;
}

/* =========================================================
   HERO
========================================================= */

.hero{
    text-align:center;

    padding:70px 20px 40px;
}

.hero h1{
    margin-bottom:20px;

    font-size:clamp(32px,5vw,48px);

    color:var(--green-dark);
}

.hero p{
    max-width:900px;
    margin:auto;

    font-size:18px;
    line-height:1.7;

    color:#4b5563;
}

/* =========================================================
   GALLERY
========================================================= */

.gallery{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;

    padding:30px;
}

.gallery img{
    width:100%;
    height:260px;
    object-fit:cover;

    border-radius:20px;

    box-shadow:0 4px 15px rgba(0,0,0,0.08);

    transition:0.25s;
}

.gallery img:hover{
    transform:scale(1.02);
}


/* =========================================================
   CARDS
========================================================= */

.cards{
    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(260px,1fr));

    gap:28px;

    max-width:1600px;
    margin:auto;

    padding:30px;
}

/* VERSION SPECIES */

.cards--species{
    display:block;
}

.card{
    position:relative;

    background:var(--white);

    border-radius:var(--radius-lg);

    overflow:hidden;

    box-shadow:var(--shadow);

    transition:var(--transition);

    display:flex;
    flex-direction:column;
}

.card:hover{
    transform:translateY(-4px);
}

.card img{
    width:100%;

    aspect-ratio:4/3;

    object-fit:cover;

    cursor:pointer;

    transition:.3s;
}

.card img:hover{
    transform:scale(1.03);
}

.card-title{
    padding:18px 15px 0;

    text-align:center;

    font-size:20px;
    font-weight:bold;

    color:var(--green-dark);
}

.cultivar{
    padding:15px 15px 5px;

    text-align:center;

    font-size:15px;

    color:var(--gray);

    min-height:50px;
}

/* =========================================================
   LOST CARD / OUT STOCK
========================================================= */

.lost-card img{
    filter:grayscale(100%);
    opacity:.6;
}

.out-card{
    opacity:.5;
    filter:grayscale(1);
}

/* =========================================================
   BADGES
========================================================= */

.badge-out,
.badge-soon{
    position:absolute;

    left:-40px;

    padding:8px 60px;

    transform:rotate(-25deg);

    color:white;

    font-size:14px;
    font-weight:bold;

    box-shadow:0 2px 10px rgba(0,0,0,.2);

    pointer-events:none;
}

.badge-out{
    top:15px;
    background:var(--red);
}

.badge-soon{
    top:15px;
    background:var(--orange);
}

/* =========================================================
   PRICES
========================================================= */

.prices{
    padding:15px;

    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:10px;
}

.prices button{
    border:none;

    background:var(--green);
    color:white;

    padding:12px 16px;

    border-radius:14px;

    font-weight:bold;

    transition:var(--transition);
}

.prices button:hover{
    background:var(--green-hover);
    transform:translateY(-2px);
}

.disabled-btn{
    opacity:.3;
    cursor:not-allowed;
}

/* =========================================================
   METHOD SECTION
========================================================= */

.method-section{
    max-width:1200px;

    margin:60px auto;

    padding:0 20px;
}

.method-section h2{
    text-align:center;

    font-size:32px;

    color:var(--green-dark);

    margin-bottom:50px;
}

.method-block{
    display:flex;
    align-items:center;
    gap:40px;

    margin-bottom:60px;

    padding:25px;

    background:white;

    border-radius:20px;

    box-shadow:
    0 8px 25px rgba(0,0,0,.06);
}

.method-block.reverse{
    flex-direction:row-reverse;
}

.method-block img{
    width:45%;

    height:300px;

    object-fit:cover;

    border-radius:16px;
}

.method-text{
    flex:1;
}

.method-text h3{
    margin-bottom:12px;

    font-size:22px;

    color:var(--green);
}

.method-text p{
    font-size:16px;
    line-height:1.8;

    color:#374151;
}

/* VERSION NO IMAGE */

.method-block.no-image{
    display:block;

    max-width:900px;

    margin-left:auto;
    margin-right:auto;
}

.method-block.no-image .method-text{
    width:100%;
}

.method-block.no-image .method-text p{
    font-size:17px;
}

/* =========================================================
   POPUP
========================================================= */

.popup{
    position:fixed;
    inset:0;

    background:rgba(0,0,0,.6);

    display:flex;
    justify-content:center;
    align-items:center;

    z-index:5000;

    padding:20px;
}

.popup-content{
    position:relative;

    width:700px;
    max-width:100%;

    max-height:95vh;

    overflow:auto;

    background:white;

    border-radius:25px;

    animation:popupAnim .2s ease;
}

@keyframes popupAnim{

    from{
        opacity:0;
        transform:scale(.95);
    }

    to{
        opacity:1;
        transform:scale(1);
    }
}

#close-popup,
#close-order{
    position:absolute;

    top:15px;
    right:20px;

    font-size:30px;

    color:#374151;

    cursor:pointer;
}

#popup-image{
    width:100%;

    height:350px;

    object-fit:cover;
}

.popup-content h2{
    padding:20px 25px 10px;

    color:var(--green-dark);
}

.popup-content p{
    padding:0 25px;

    line-height:1.7;

    color:#4b5563;
}

#popup-size{
    width:calc(100% - 50px);

    margin:20px 25px;

    padding:14px;

    border:1px solid #d1d5db;
    border-radius:12px;
}

#add-cart{
    width:calc(100% - 50%);

    margin:0 25px 30px;

    border:none;

    background:var(--green);
    color:white;

    padding:16px;

    border-radius:15px;

    font-size:16px;
    font-weight:bold;
}

#add-cart:hover{
    background:var(--green-hover);
}

/* =========================================================
   CART
========================================================= */

.cart-bar{
    position:fixed;

    bottom:0;
    left:0;

    width:100%;

    background:white;

    border-top:1px solid var(--border);

    box-shadow:
    0 -5px 20px rgba(0,0,0,.08);

    padding:15px 20px;

    z-index:4000;
}

#cart-items{
    display:flex;
    gap:15px;

    overflow-x:auto;

    padding-bottom:10px;
}

.cart-item{
    min-width:260px;

    background:#f9fafb;

    border-radius:16px;

    padding:12px;

    display:flex;
    align-items:center;
    gap:12px;
}

.cart-item img{
    width:60px;
    height:60px;

    object-fit:cover;

    border-radius:12px;
}

.cart-info{
    flex:1;
}

.cart-name{
    font-weight:bold;
    margin-bottom:5px;
}

.cart-price{
    font-size:14px;
    color:#4b5563;

    margin-bottom:10px;
}

.cart-species{
    font-size:13px;

    color:var(--gray);

    margin-bottom:8px;

    font-style:italic;
}

/* =========================================================
   QUANTITY
========================================================= */

.qty-controls{
    display:flex;
    align-items:center;
    gap:10px;
}

.qty-controls button{
    width:30px;
    height:30px;

    border:none;

    border-radius:8px;

    background:var(--green);
    color:white;

    font-size:18px;
}

.qty-controls span{
    min-width:20px;

    text-align:center;

    font-weight:bold;
}

/* =========================================================
   CART GROUP
========================================================= */

.cart-group{
    background:white;

    margin-bottom:15px;

    border:2px solid var(--border);
    border-radius:18px;

    padding:12px;
}

.cart-group.out-of-stock{
    opacity:.35;
    filter:grayscale(1);
}

.cart-group-header{
    display:flex;
    align-items:center;
    gap:12px;

    border-bottom:1px dashed #d1d5db;

    padding-bottom:10px;
    margin-bottom:10px;
}

.cart-group-header img{
    width:60px;
    height:60px;

    object-fit:cover;

    border-radius:12px;
}

.cart-sizes{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.cart-size{
    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:8px 5px;

    border-bottom:1px dashed #eee;
}

.no-stock{
    margin-top:5px;

    color:var(--red);

    font-size:13px;
    font-weight:bold;
}

.cart-total{
    margin-top:10px;

    font-size:18px;
    font-weight:bold;

    color:var(--green-dark);
}

/* =========================================================
   VALIDATE CART
========================================================= */

#validate-cart{
    width:100%;

    margin-top:12px;

    border:none;

    background:var(--blue);
    color:white;

    padding:16px;

    border-radius:15px;

    font-size:17px;
    font-weight:bold;

    transition:var(--transition);
}

#validate-cart:hover{
    background:var(--blue-hover);
}

/* =========================================================
   FORMS
========================================================= */

form{
    padding:25px;
}

form input,
form textarea,
.search-bar input,
.search-bar select{
    width:100%;

    padding:14px;

    border:1px solid #d1d5db;
    border-radius:12px;

    outline:none;
}

form textarea{
    resize:vertical;
    min-height:120px;
}

form button{
    width:100%;

    border:none;

    background:var(--green);
    color:white;

    padding:16px;

    border-radius:14px;

    font-size:16px;
    font-weight:bold;

    transition:var(--transition);
}

form button:hover{
    background:var(--green-hover);
}

/* =========================================================
   CONTACT
========================================================= */

.contact-container{
    max-width:800px;

    margin:60px auto;

    padding:0 20px;

    display:flex;
    justify-content:center;
}

#contact-form{
    width:100%;
    max-width:600px;

    background:white;

    padding:30px;

    border-radius:18px;

    box-shadow:
    0 10px 30px rgba(0,0,0,.08);

    display:flex;
    flex-direction:column;
    gap:12px;

    animation:fadeIn .4s ease;
}

#contact-form label{
    font-weight:600;
    color:#374151;
}

#contact-form input:focus,
#contact-form textarea:focus{
    border-color:var(--green);

    box-shadow:
    0 0 0 3px rgba(22,163,74,.15);
}

#website{
    display:none !important;
}

/* =========================================================
   SEARCH BAR
========================================================= */

.search-bar{
    display:flex;
    gap:10px;

    max-width:900px;

    margin:20px auto;
}

/* =========================================================
   IMAGE PREVIEW
========================================================= */

.image-preview{
    margin-bottom:25px;
}

.image-preview img{
    width:100%;

    max-height:350px;

    object-fit:cover;

    border-radius:20px;

    box-shadow:var(--shadow);
}

/* =========================================================
   DELETE
========================================================= */

.danger-card{
    max-width:650px;
    text-align:center;
}

.delete-preview img{
    width:100%;

    max-height:320px;

    object-fit:cover;

    border-radius:20px;

    margin-bottom:20px;
}

.delete-preview h2{
    margin-bottom:5px;

    color:#991b1b;
}

.warning-box{
    margin:30px 0;

    background:#fee2e2;

    color:#991b1b;

    padding:18px;

    border-radius:15px;

    font-weight:bold;
}

.btn-delete{
    width:100%;

    border:none;

    padding:18px;

    border-radius:15px;

    background:var(--red);
    color:white;

    font-size:17px;
    font-weight:bold;
}

.btn-delete:hover{
    background:#b91c1c;
}

/* =========================================================
   SUCCESS
========================================================= */

.success-box{
    max-width:900px;

    margin:20px auto;

    padding:18px 20px;

    background:#dcfce7;

    color:#166534;

    border-radius:14px;

    text-align:center;

    font-weight:bold;

    box-shadow:
    0 4px 15px rgba(0,0,0,.05);
}

/* =========================================================
   ORDER RECAP
========================================================= */

.order-recap{
    margin-top:20px;

    padding:15px;

    border:2px dashed #d1d5db;
    border-radius:15px;

    background:#fafafa;
}

.order-recap h3{
    margin-bottom:10px;

    font-size:16px;
}

.order-total{
    margin-top:10px;

    text-align:right;

    font-weight:bold;
}

.order-group{
    margin-bottom:15px;

    padding:10px;

    border:1px solid var(--border);
    border-radius:12px;

    background:white;
}

.order-group-title{
    font-weight:bold;
    margin-bottom:5px;
}

.order-item{
    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:8px 0;

    border-top:1px dashed #eee;
}

.order-item span{
    font-size:14px;
}

.order-species{
    margin-top:2px;

    font-size:12px;

    color:var(--gray);

    font-style:italic;
}

.order-controls{
    display:flex;
    gap:8px;
}

.order-controls button{
    width:28px;
    height:28px;

    border:none;

    border-radius:6px;

    background:var(--green);
    color:white;
}

.order-controls button:disabled{
    opacity:.3;
    cursor:not-allowed;
}

/* =========================================================
   EMPTY STATE
========================================================= */

.empty-state{
    max-width:600px;

    margin:40px auto;

    padding:60px 20px;

    text-align:center;

    font-size:18px;

    color:var(--gray);

    background:#f9fafb;

    border:2px dashed #d1d5db;
    border-radius:16px;
}

/* =========================================================
   SPECIES
========================================================= */

.species-block{
    margin-bottom:40px;
}

.species-title{
    margin:20px 0 10px;

    padding-left:10px;

    font-size:22px;

    color:var(--green);

    border-left:4px solid var(--green);
}

.species-row{
    display:flex;
    flex-wrap:wrap;
    align-items:flex-start;
    gap:15px;
}

.species-row .card{
    width:220px;
    flex:0 0 auto;
}

.species-separator{
    margin-top:25px;

    border:none;
    border-top:1px solid #ddd;
}

/* =========================================================
   FOOTER
========================================================= */

footer{
    padding:40px;

    text-align:center;

    color:var(--gray);
}

/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes fadeIn{

    from{
        opacity:0;
        transform:translateY(10px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* =========================================================
   TABLET
========================================================= */

@media(max-width:992px){

    .method-block{
        flex-direction:column;
    }

    .method-block.reverse{
        flex-direction:column;
    }

    .method-block img{
        width:100%;
    }
}

/* =========================================================
   MOBILE
========================================================= */
@media(max-width:768px){

    .burger{
        display:block;
        z-index:2001;
    }

    .menu{
        position:absolute;

        top:100%;
        left:0;
        right:0;

        background:white;

        flex-direction:column;
        gap:0;

        display:flex;

        opacity:0;
        visibility:hidden;

        transform:translateY(-10px);

        transition:.25s ease;

        box-shadow:0 10px 20px rgba(0,0,0,0.08);
    }

    .menu a{
        padding:16px 20px;
        border-top:1px solid #eee;
    }

    #menu-toggle:checked + .burger + .menu{
        opacity:1;
        visibility:visible;

        transform:translateY(0);
    }
}


@media(max-width:768px){

    body{
        padding-bottom:220px;
    }

    /* HEADER */

    .site-header{
        padding:15px 20px;
    }

    .burger{
        display:block;
    }

    .menu{
        position:absolute;

        top:70px;
        left:0;
        right:0;

        background:white;

        flex-direction:column;
        gap:0;

        display:none;

        box-shadow:
        0 10px 20px rgba(0,0,0,.08);
    }

    .menu a{
        padding:16px 20px;

        border-top:1px solid #eee;
    }

    #menu-toggle:checked + .burger + .menu{
        display:flex;
    }

    /* HERO */

    .hero{
        padding:50px 15px 30px;
    }

    .hero p{
        font-size:16px;
    }

    /* GALLERY */

    .gallery{
        grid-template-columns:1fr;

        padding:20px;
    }

    /* CARDS */

    .cards{
        grid-template-columns:1fr;

        padding:20px;
    }

    .species-row{
        overflow-x:auto;

        flex-wrap:nowrap;

        padding-bottom:10px;
    }

    .species-row .card{
        width:220px;
    }

    /* POPUP */

    .popup{
        padding:0;
    }

    .popup-content{
        width:100%;
        height:100%;

        max-height:100%;

        border-radius:0;
    }

    #popup-image{
        height:260px;
    }

    #add-cart{
        width:calc(100% - 50px);
    }

    /* CART */

    #cart-items{
        flex-direction:column;
    }

    .cart-item{
        min-width:100%;
    }

    /* CONTACT */

    #contact-form{
        padding:20px;
    }

    /* BUTTON */

    button{
        min-height:48px;
    }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media(max-width:480px){

    .hero h1{
        font-size:30px;
    }

    .hero p{
        font-size:15px;
    }

    .card-title{
        font-size:18px;
    }

    .method-section h2{
        font-size:26px;
    }

    .method-text h3{
        font-size:20px;
    }

    .method-text p{
        font-size:15px;
    }

    .popup-content h2{
        font-size:22px;
    }

    .search-bar{
        flex-direction:column;
    }

    .prices{
        flex-direction:column;
    }

    .prices button{
        width:100%;
    }
}