/* ==========================================
   🧪 CUSTOM BLEND SECTION
   ========================================== */
.custom-blend-section {
    background: linear-gradient(160deg, rgba(200, 131, 107, 0.07) 0%, rgba(58, 34, 20, 0.04) 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.blend-builder {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 3rem;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}

/* ── Controls grid ── */
.blend-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.blend-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.blend-field label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

/* Custom select — hides native arrow, adds CSS chevron */
.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '▾';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1rem;
    pointer-events: none;
}

.select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 14px;
    background: var(--surface-color);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    outline: none;
}

.select-wrapper select:focus,
.select-wrapper select:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(200, 131, 107, 0.12);
}

/* ── Preview card ── */
.blend-preview-panel {
    position: sticky;
    top: 100px;
}

.blend-preview-card {
    background: var(--text-color);
    border-radius: 24px;
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    box-shadow: 0 16px 40px rgba(58, 34, 20, 0.2);
}

.blend-preview-icon {
    font-size: 2rem;
    color: var(--primary-color);
    line-height: 1;
}

.blend-preview-title {
    font-size: 1.2rem;
    color: #FDDEC8;
    margin: 0;
}

.blend-preview-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.blend-preview-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
}

.blend-preview-list li .blend-li-label {
    color: rgba(253, 222, 200, 0.55);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.72rem;
}

.blend-preview-list li .blend-li-value {
    color: #FFFFFF;
    font-weight: 600;
}

.blend-preview-price {
    font-family: 'Lancelot', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.blend-add-btn {
    background-color: var(--primary-color);
    color: #FFFFFF;
    width: 100%;
    box-shadow: 0 6px 18px rgba(200, 131, 107, 0.35);
    font-family: 'Poppins', sans-serif;
}

.blend-add-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(200, 131, 107, 0.45);
}

/* Pulse animation on successful add */
@keyframes blendPulse {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.06);
    }

    100% {
        transform: scale(1);
    }
}

.blend-add-btn.added {
    animation: blendPulse 0.4s ease;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .blend-builder {
        grid-template-columns: 1fr;
    }

    .blend-preview-panel {
        position: static;
    }
}

@media (max-width: 600px) {
    .blend-controls {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   🛍 PRODUCTS SECTION
   ========================================== */

.products {
    background-color: transparent;
    position: relative;
}

/* ── Custom Order Card ── */
.custom-order-card {
    background: linear-gradient(145deg, var(--primary-color) 0%, var(--text-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none !important;
    box-shadow: 0 12px 36px rgba(58, 34, 20, 0.18) !important;
    position: relative;
    overflow: hidden;
}

/* Decorative radial glow */
.custom-order-card::before {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
    top: -60px;
    right: -60px;
    pointer-events: none;
}

.custom-order-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 48px rgba(58, 34, 20, 0.25) !important;
}

.custom-order-inner {
    padding: 3rem 2.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.custom-order-icon {
    font-size: 3.5rem;
    line-height: 1;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.custom-order-card h3 {
    font-size: 1.8rem;
    color: #FFFFFF !important;
    line-height: 1.2;
    margin: 0;
}

.custom-order-card p {
    color: rgba(255, 220, 200, 0.85);
    font-size: 1rem;
    line-height: 1.65;
    max-width: 320px;
    margin: 0;
    min-height: unset !important;
    font-family: 'Poppins', sans-serif;
}

.custom-order-btn {
    background-color: #4CAF80;
    color: #FFFFFF;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

.custom-order-btn:hover {
    background-color: #3d9b6a;
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    color: #FFFFFF;
}


.checkout-ad-container {
    text-align: center;
    margin-top: 3rem;
    padding: 0 5%;
}

.checkout-ad-btn {
    width: 100%;
    max-width: 600px;
    padding: 1.2rem;
    font-size: 1.3rem;
    border-radius: 50px;
    background-color: var(--primary-color);
    color: #FFFFFF;
    box-shadow: 0 8px 20px rgba(200, 131, 107, 0.25);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.checkout-ad-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(200, 131, 107, 0.35);
}

.product-grid {
    display: flex;
    gap: 2rem;
    max-width: 100%;
    margin: 0 auto;
    padding-bottom: 2rem;
}

/* CAROUSEL VIEW */
.product-grid.carousel-view {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.product-grid.carousel-view::-webkit-scrollbar {
    height: 8px;
}

.product-grid.carousel-view::-webkit-scrollbar-track {
    background: rgba(237, 227, 217, 0.4);
    border-radius: 4px;
}

.product-grid.carousel-view::-webkit-scrollbar-thumb {
    background: rgba(200, 131, 107, 0.4);
    border-radius: 4px;
}

/* GRID VIEW */
.product-grid.grid-view {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
    scroll-snap-type: none;
    max-width: 1150px;
    /* Limits the row to exactly 3 cards */
    margin: 0 auto;
}

.product-grid.grid-view .custom-order-card {
    display: none;
}

.product-card {
    background-color: var(--surface-color);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 8px 24px rgba(58, 34, 20, 0.07);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.product-grid.carousel-view .product-card {
    flex: 0 0 100%;
    max-width: 500px;
    scroll-snap-align: center;
}

.product-grid.grid-view .product-card {
    flex: 1 1 350px;
    max-width: 450px;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(58, 34, 20, 0.12);
}

.img-container {
    height: 360px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(237, 227, 217, 0.25);
    margin: 1rem 1rem 0 1rem;
    border-radius: 20px;
    padding: 1rem;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
    transition: transform 0.5s ease;
}

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

.product-info {
    padding: 0 2rem 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.product-info p {
    color: var(--text-muted);
    font-family: var(--font-title);
    font-size: 1rem;
    margin: auto 0;
    padding-bottom: 1.5rem;
    min-height: 45px;
}

.size-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.size-btn,
.chicory-btn,
.roast-btn {
    flex: 1;
    padding: 0.5rem;
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-muted);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.size-btn.active,
.size-btn:hover,
.chicory-btn.active,
.chicory-btn:hover,
.roast-btn.active,
.roast-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: rgba(200, 131, 107, 0.08);
}

.price-size {
    font-family: var(--font-title);
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.3rem;
}

