/* Seeds Catalogue Page */

.seeds-hero {
    padding: 80px 0 15px;
    background: var(--light-bg);
}

.seeds-season-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Filters */
.seeds-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.seeds-filter-btn {
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--dark-color);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.seeds-filter-btn:hover,
.seeds-filter-btn.active {
    background: var(--primary-color);
    color: white;
}

/* Seed Cards */
.seed-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.seed-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.seed-card-img {
    height: 220px;
    overflow: hidden;
    position: relative;
    background: var(--light-bg);
}

.seed-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.seed-card:hover .seed-card-img img {
    transform: scale(1.08);
}

.seed-card-img .seed-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.seed-badge-easy {
    background: #d4edda;
    color: #155724;
}

.seed-badge-medium {
    background: #fff3cd;
    color: #856404;
}

.seed-badge-hard {
    background: #f8d7da;
    color: #721c24;
}

.seed-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.seed-card-body h5 {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.seed-card-body .seed-brand {
    font-size: 0.75rem;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.seed-card-body .seed-desc {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 0.75rem;
    flex: 1;
}

.seed-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 1rem;
}

.seed-spec {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--dark-color);
}

.seed-spec i {
    color: var(--primary-color);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.seed-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
}

.seed-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-color);
}

.seed-add-btn {
    border: none;
    background: #5a8f5a;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.2rem;
    box-shadow: 0 3px 10px rgba(90,143,90,0.35);
}

.seed-add-btn:hover {
    background: #4a7d4a;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(90,143,90,0.45);
}

.seed-add-btn.added {
    background: #e67e22;
    box-shadow: 0 3px 10px rgba(230,126,34,0.35);
}

/* Floating Buy Now Bar */
.buy-now-float {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #5a8f5a, #3d6b3d);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 8px 28px rgba(61,107,61,0.4), 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    white-space: nowrap;
    animation: buyNowPulse 0.4s ease;
    backdrop-filter: blur(4px);
}

.buy-now-float:hover {
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 12px 36px rgba(61,107,61,0.5), 0 4px 12px rgba(0,0,0,0.18);
    background: linear-gradient(135deg, #4a7d4a, #2d5b2d);
}

.buy-now-float:active {
    transform: translateX(-50%) translateY(0);
    box-shadow: 0 4px 16px rgba(61,107,61,0.35);
}

.buy-now-float i {
    font-size: 1.2rem;
}

.buy-now-count {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color);
    color: var(--dark-color);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 800;
}

@keyframes buyNowPulse {
    0% { transform: translateX(-50%) scale(0.9); opacity: 0; }
    100% { transform: translateX(-50%) scale(1); opacity: 1; }
}

/* Cart Drawer */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cart-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    max-width: 90vw;
    height: 100vh;
    height: 100dvh;
    background: white;
    z-index: 1060;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
}

.cart-drawer.open {
    right: 0;
}

.cart-header {
    padding: 1.25rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-header h5 {
    margin: 0;
    font-weight: 700;
    color: var(--dark-color);
}

.cart-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    padding: 0;
    line-height: 1;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.cart-item-img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--light-bg);
}

.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-info h6 {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 0 2px;
    color: var(--dark-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-info .cart-item-price {
    font-size: 0.8rem;
    color: #999;
}

.cart-qty {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cart-qty button {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--dark-color);
    transition: all 0.2s;
}

.cart-qty button:hover {
    background: var(--light-bg);
}

.cart-qty span {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.cart-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #bbb;
}

.cart-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.cart-footer {
    padding: 1.25rem;
    border-top: 1px solid #f0f0f0;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
}

.cart-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 14px;
    background: #25d366;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cart-whatsapp-btn:hover {
    background: #1da851;
    transform: translateY(-1px);
}

.cart-whatsapp-btn i {
    font-size: 1.3rem;
}

.cart-clear-btn {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 8px;
    border: none;
    background: none;
    color: #999;
    font-size: 0.8rem;
    cursor: pointer;
    text-align: center;
}

.cart-clear-btn:hover {
    color: #e74c3c;
}

/* Navbar cart badge */
.nav-cart-badge {
    display: none;
    position: absolute;
    top: -2px;
    right: 0;
    background: #e74c3c;
    color: white;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    font-size: 0.6rem;
    font-weight: 700;
    align-items: center;
    justify-content: center;
}
.nav-cart-badge.show {
    display: flex;
}

/* Out of stock overlay */
.seed-card.out-of-stock .seed-card-img::after {
    content: "Out of Stock";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.seed-card.out-of-stock {
    opacity: 0.7;
}

/* Name input */
.cart-name-input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 0.9rem;
    margin-bottom: 10px;
    outline: none;
    transition: border-color 0.2s;
}

.cart-name-input:focus {
    border-color: var(--primary-color);
}

/* ===== Care Sheet ===== */
.care-sheet {
    background: white;
    border-radius: 24px;
    padding: 0;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    overflow: hidden;
}

.care-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 1.5rem 1.5rem 1rem;
    background: linear-gradient(135deg, #f0f7f0, #e8f5e9);
    border-bottom: 2px solid #e0e0e0;
}

.care-header img {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.care-header h5 {
    margin: 0;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--dark-color);
    line-height: 1.3;
}

.care-header-meta {
    display: flex;
    gap: 14px;
    margin-top: 6px;
    font-size: 0.88rem;
    color: #666;
    font-weight: 500;
}

.care-header-meta i {
    color: var(--primary-color);
}

/* Quick stats row */
.care-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-bottom: 2px solid #e0e0e0;
}

.care-stat {
    text-align: center;
    padding: 14px 10px;
    border-right: 1px solid #eee;
}

.care-stat:last-child { border-right: none; }

.care-stat-icon {
    font-size: 1.4rem;
    display: block;
    margin-bottom: 4px;
}

.care-stat-label {
    font-size: 0.7rem;
    color: #999;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.care-stat-value {
    font-size: 0.95rem;
    color: var(--dark-color);
    font-weight: 700;
    margin-top: 2px;
}

/* Steps */
.care-steps {
    padding: 1.25rem 1.5rem 1rem;
}

.care-step {
    display: flex;
    gap: 14px;
    padding: 1rem 0;
    border-bottom: 1px dashed #e0e0e0;
}

.care-step:last-child { border-bottom: none; }

.care-step-num {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    color: white;
    margin-top: 2px;
}

.care-step-num.step-sow { background: #66bb6a; }
.care-step-num.step-sprout { background: #42a5f5; }
.care-step-num.step-transplant { background: #ffa726; }
.care-step-num.step-grow { background: #ab47bc; }

.care-step-body { flex: 1; min-width: 0; }

.care-step-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--dark-color);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.care-step-title i { font-size: 1rem; }

.care-step-text {
    font-size: 1rem;
    color: #444;
    line-height: 1.75;
    margin: 0;
}

/* Mix recipe box */
.care-mix-box {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 12px 14px;
    margin-top: 10px;
    font-size: 0.95rem;
    color: #444;
    line-height: 1.7;
    border-left: 4px solid var(--primary-color);
}

.care-mix-box strong { color: var(--dark-color); }

.care-mix-ratio {
    color: #888;
    font-size: 0.88rem;
    margin-top: 4px;
}

/* Info callout */
.care-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fff8e1;
    border-radius: 12px;
    padding: 10px 14px;
    margin-top: 10px;
    font-size: 0.95rem;
    color: #7a6200;
    line-height: 1.6;
}

.care-info i { margin-top: 3px; flex-shrink: 0; font-size: 1rem; }

/* Pot highlight */
.care-pot-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-color);
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
}

/* Tips */
.care-tips { margin-top: 10px; }

.care-tip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 1rem;
    color: #444;
    line-height: 1.65;
}

.care-tip i {
    color: #66bb6a;
    margin-top: 3px;
    flex-shrink: 0;
    font-size: 1.1rem;
}

/* Remember box */
.care-remember {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: linear-gradient(135deg, #fff9e6, #fff3cc);
    border-radius: 16px;
    padding: 16px 18px;
    margin: 1rem 1.5rem 1.5rem;
}

.care-remember-icon {
    font-size: 1.5rem;
    color: #e6a817;
    flex-shrink: 0;
    margin-top: 2px;
}

.care-remember-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #b08800;
    margin-bottom: 4px;
}

.care-remember-text {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.6;
    font-weight: 500;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .seeds-hero {
        padding: 70px 0 8px;
        text-align: center;
    }

    .seeds-hero h1 { font-size: 1.5rem; }
    .seeds-hero .lead { font-size: 0.85rem; }

    /* Cards size to their own content  - no stretching to row height */
    .seed-card {
        height: auto;
    }

    .seed-card-img {
        height: 150px;
    }

    .seed-card-body {
        padding: 0.75rem;
    }

    .seed-card-body h5 {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }

    /* Hide only description on mobile  - keep brand */
    .seed-card-body .seed-desc { display: none; }

    .seed-specs {
        grid-template-columns: 1fr;
        gap: 3px;
        margin-bottom: 0.5rem;
    }

    /* Hide germination and flowering specs on mobile (keep season + seeds per packet) */
    .seed-spec-germination,
    .seed-spec-flowering {
        display: none !important;
    }

    .seed-spec {
        font-size: 0.72rem;
    }

    .seed-card-footer {
        padding-top: 0.5rem;
    }

    .seed-price {
        font-size: 1.05rem;
    }

    .seed-add-btn {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    /* Difficulty badge smaller on mobile */
    .seed-card-img .seed-badge {
        font-size: 0.6rem;
        padding: 2px 6px;
        top: 8px;
        right: 8px;
    }

    /* Buy now bar slightly smaller on mobile */
    .buy-now-float {
        bottom: 16px;
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    /* Filters scroll horizontally on mobile */
    .seeds-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .seeds-filter-btn {
        flex-shrink: 0;
        font-size: 0.75rem;
        padding: 4px 12px;
    }

    /* Care sheet mobile */
    .care-header { padding: 1.25rem; }
    .care-header img { width: 50px; height: 50px; }
    .care-header h5 { font-size: 1.05rem; }
    .care-header-meta { font-size: 0.8rem; gap: 10px; }
    .care-steps { padding: 1rem; }
    .care-step-num { width: 36px; height: 36px; font-size: 0.95rem; }
    .care-step-title { font-size: 0.95rem; }
    .care-step-text { font-size: 0.92rem; }
    .care-mix-box { font-size: 0.88rem; }
    .care-tip { font-size: 0.92rem; }
    .care-remember { margin: 0.75rem 1rem 1.25rem; padding: 14px; }
    .care-remember-text { font-size: 0.95rem; }

    /* Pollinator pack banner compact on mobile */
    .seeds-season-badge {
        font-size: 0.75rem;
        padding: 4px 12px;
    }

    /* Cart drawer full width on mobile */
    .cart-drawer {
        width: 100vw;
        max-width: 100vw;
        right: -100vw;
    }

    /* Ensure cart footer isn't hidden behind mobile browser chrome */
    .cart-footer {
        padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 20px));
    }
}

