:root {
    /* Colors */
    --cc-primary-color: #d9534f;
    --cc-secondary-color: #212529;
    --cc-background-color: #f8f9fa;
    --cc-border-color: #e9ecef;
    --cc-text-color: #333;
    --cc-text-muted: #6c757d;
    --cc-success-color: #28a745;
    --cc-shadow-color: rgba(0, 0, 0, 0.08);
    
    /* Spacing */
    --cc-spacing-xs: 5px;
    --cc-spacing-sm: 10px;
    --cc-spacing-md: 15px;
    --cc-spacing-lg: 20px;
    --cc-spacing-xl: 30px;
    
    /* Typography */
    --cc-font-size-sm: 12px;
    --cc-font-size-base: 14px;
    --cc-font-size-lg: 16px;
    --cc-font-size-xl: 18px;
    
    /* Borders and Shadows */
    --cc-border-radius: 4px;
    --cc-box-shadow: 0 1px 3px var(--cc-shadow-color);
    --cc-box-shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Multiple products page styles */
.coffee-choices-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--cc-spacing-lg);
}

.coffee-choices-intro {
    text-align: center;
    margin-bottom: var(--cc-spacing-xl);
}

.coffee-choices-intro p {
    font-size: var(--cc-font-size-lg);
    color: var(--cc-text-muted);
    margin: 0;
}

.custom-promo-card {
    background: #fff;
    border-radius: 12px;
    padding: var(--cc-spacing-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    position: relative;
    transition: box-shadow 0.3s ease;
}

/* Remove max-width when inside grid container */
.custom-promo-cards-container .custom-promo-card {
    max-width: none;
}

.custom-promo-card:hover {
    box-shadow: var(--cc-box-shadow-hover);
}

/* Product link overlay - clickable area */
.custom-promo-card .product-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 120px; /* Stop before the quantity/cart area */
    z-index: 1;
    cursor: pointer;
}

/* Ensure interactive elements are above the overlay */
.custom-promo-card .frequency-quantity-section,
.custom-promo-card .add-to-cart-btn,
.custom-promo-card form {
    position: relative;
    z-index: 2;
}

/* Desktop 3-column layout */
@media (min-width: 1200px) {
    .custom-promo-cards-container {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 30px;
        row-gap: 40px;
        margin: 20px 0;
    }
    
    /* When in a grid container, ensure consistent sizing */
    .custom-promo-cards-container .custom-promo-card {
        max-width: none;
        width: 100%;
        margin: 0;
    }
    
    /* When standalone, maintain max-width */
    .custom-promo-card:not(.custom-promo-cards-container .custom-promo-card) {
        max-width: 280px;
    }
}

/* Tablet 2-column layout */
@media (min-width: 768px) and (max-width: 1199px) {
    .custom-promo-cards-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin: 20px 0;
    }
}

/* Mobile single column */
@media (max-width: 767px) {
    .custom-promo-cards-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 20px 0;
    }
    
    .custom-promo-card {
        max-width: 100%;
        margin: 0 auto;
        padding: 15px;
    }
    
    .custom-promo-card .product-content {
        display: flex;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .custom-promo-card .product-image {
        flex: 0 0 100px;
        height: 100px;
        margin-bottom: 0;
    }
    
    .custom-promo-card .product-info {
        flex: 1;
        text-align: left;
    }
    
    .custom-promo-card .product-title {
        font-size: 16px;
        min-height: auto;
        justify-content: flex-start;
        line-height: 1.3;
    }
    
    .custom-promo-card .product-type {
        margin-bottom: 5px;
        font-size: 10px;
    }
    
    .custom-promo-card .product-price {
        margin-bottom: 0;
    }
    
    .custom-promo-card .new-price {
        font-size: 20px;
    }
    
    .custom-promo-card .old-price {
        font-size: 13px;
    }
    
    .custom-promo-card .product-link-overlay {
        bottom: 150px; /* Adjust for mobile */
    }
    
    .custom-promo-card .frequency-quantity-section,
    .custom-promo-card .quantity-only-section {
        padding: 15px;
        margin: 15px 0;
    }
    
    .custom-promo-card .frequency-quantity-title,
    .custom-promo-card .quantity-title {
        font-size: 12px;
        letter-spacing: 1.2px;
    }
    
    .custom-promo-card .frequency-quantity-subtitle {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .custom-promo-card .frequency-selector {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .custom-promo-card .subscription-benefits {
        font-size: 13px;
    }
    
    .custom-promo-card .subscription-benefits i {
        font-size: 18px;
    }
    
    .custom-promo-card .frequency-quantity-section .product-weight-qty,
    .custom-promo-card .quantity-only-section .product-weight-qty {
        margin: 0 0 12px 0;
        padding: 10px 15px;
    }
    
    /* Keep weight and quantity on same line on mobile */
    @media (max-width: 400px) {
        .custom-promo-card .weight-qty-wrapper {
            flex-direction: row;
            gap: 10px;
            flex-wrap: nowrap;
        }
        
        .custom-promo-card .weight-feature {
            font-size: 12px;
            white-space: nowrap;
        }
        
        .custom-promo-card .weight-feature .coffee-bag-icon {
            width: 14px;
            height: 14px;
            margin-right: 3px;
        }
        
        .custom-promo-card .input-group {
            min-width: 0;
            flex-shrink: 1;
        }
        
        .custom-promo-card .input-group input[type="number"] {
            width: 35px;
            padding: 2px;
        }
        
        .custom-promo-card .input-group button {
            width: 25px;
            height: 25px;
            font-size: 14px;
        }
    }
    
    /* Ensure centering on mobile too */
    .custom-promo-card .weight-qty-wrapper {
        justify-content: center;
        gap: 20px;
    }
    
    .custom-promo-card .weight-feature {
        font-size: 13px;
    }
    
    .custom-promo-card .promotion-badge {
        font-size: 11px;
        padding: 3px 12px;
        top: 10px;
        left: 10px;
    }
    
    .custom-promo-card .discount-badge {
        width: 40px;
        height: 40px;
        font-size: 12px;
        top: 5px;
        right: 5px;
    }
    
    .custom-promo-card .add-to-cart-btn {
        padding: 10px 20px;
        font-size: 13px;
        margin-top: 8px;
    }
}

/* Promotion badge */
.custom-promo-card .promotion-badge {
    background: #ffd700;
    color: var(--cc-text-color);
    padding: var(--cc-spacing-xs) var(--cc-spacing-md);
    border-radius: 20px;
    font-size: var(--cc-font-size-sm);
    font-weight: 600;
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 3;
    margin: 0;
}

/* Product image */
.custom-promo-card .product-image {
    position: relative;
    margin-bottom: var(--cc-spacing-sm);
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-promo-card .product-image img {
    max-width: 80%;
    max-height: 100%;
    height: auto;
    object-fit: contain;
}

/* Discount badge */
.custom-promo-card .discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff6b6b;
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

/* Product type */
.custom-promo-card .product-type {
    font-size: 11px;
    text-transform: uppercase;
    color: #666;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

/* Product title */
.custom-promo-card .product-title {
    font-size: 18px;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 6px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Product price */
.custom-promo-card .product-price {
    margin-bottom: 10px;
}

.custom-promo-card .old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
    margin-right: 8px;
}

.custom-promo-card .new-price {
    font-size: 24px;
    font-weight: 700;
    color: #2d3436;
}

/* Frequency & Quantity Section */
.custom-promo-card .frequency-quantity-section {
    background: #93cbfe;   /* was  #8ef8cf; */
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

/* Quantity-only section for non-subscription products */
.custom-promo-card .quantity-only-section {
    background: #f0f4f8;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
    border: 1px solid #e2e8f0;
}

.custom-promo-card .frequency-quantity-title,
.custom-promo-card .quantity-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #374151;
    margin: 0 0 8px 0;
}

.custom-promo-card .frequency-quantity-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 16px 0;
    line-height: 1.4;
}

.custom-promo-card .subscription-frequency {
    margin: 0 0 16px 0;
}

.custom-promo-card .frequency-selector {
    width: 100%;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 44px;
}

.custom-promo-card .frequency-selector:hover {
    border-color: #9ca3af;
}

.custom-promo-card .frequency-selector:focus {
    border-color: #059669;
    outline: none;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.custom-promo-card .subscription-benefits {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
}

.custom-promo-card .subscription-benefits i {
    color: #0a8bfd;  /* was #059669; */
    font-size: 20px;
}

/* Weight and quantity section - within frequency section  gac */
.custom-promo-card .frequency-quantity-section .product-weight-qty,
.custom-promo-card .quantity-only-section .product-weight-qty {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 12px 16px;   /*was 12px 20px */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 16px 0;
    width: 100%;
    box-sizing: border-box;
}

/* Wrapper for weight and quantity content */
.custom-promo-card .weight-qty-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    flex-wrap: nowrap;
}

/* Weight display */
.custom-promo-card .weight-feature {
    font-size: 14px;
    font-weight: 600;
    color: #2d3436;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex: 0 0 auto;
}

.custom-promo-card .weight-feature .coffee-bag-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 4px;
    display: inline-block;
}

/* Quantity controls */
.custom-promo-card form.add-to-cart-or-refresh {
    display: block;
    margin: 0;
}

.custom-promo-card .frequency-quantity-section .product-weight-qty .input-group,
.custom-promo-card .quantity-only-section .product-weight-qty .input-group {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 0 0 auto;
    width: auto;
    position: static;
    border-collapse: initial;
}

.custom-promo-card .frequency-quantity-section .product-weight-qty .input-group button,
.custom-promo-card .quantity-only-section .product-weight-qty .input-group button {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    color: #333;
    font-size: 20px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s;
    border-radius: 4px;
}

.custom-promo-card .frequency-quantity-section .product-weight-qty .input-group button:hover,
.custom-promo-card .quantity-only-section .product-weight-qty .input-group button:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #000;
}

.custom-promo-card .frequency-quantity-section .product-weight-qty .input-qty,
.custom-promo-card .quantity-only-section .product-weight-qty .input-qty {
    width: 40px;
    height: 30px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 600;
    color: #2d3436;
    display: inline-block;
}

/* Remove number input arrows */
.custom-promo-card .frequency-quantity-section .product-weight-qty .input-qty::-webkit-inner-spin-button,
.custom-promo-card .frequency-quantity-section .product-weight-qty .input-qty::-webkit-outer-spin-button,
.custom-promo-card .quantity-only-section .product-weight-qty .input-qty::-webkit-inner-spin-button,
.custom-promo-card .quantity-only-section .product-weight-qty .input-qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.custom-promo-card .frequency-quantity-section .product-weight-qty .input-qty[type=number],
.custom-promo-card .quantity-only-section .product-weight-qty .input-qty[type=number] {
    -moz-appearance: textfield;
}

/* Product content wrapper for desktop */
.custom-promo-card .product-content {
    display: block;
}

.custom-promo-card .product-info {
    text-align: center;
}

.custom-promo-card .product-name {
    font-size: 16px;
    font-weight: 600;
    margin: 10px 0 5px 0;
    color: var(--cc-secondary-color);
    line-height: 1.4;
}

.custom-promo-card .product-grind {
    font-size: 13px;
    color: var(--cc-text-muted);
    margin: 5px 0;
    /* font-style: italic; */
}

/* Add to cart button */
.custom-promo-card .add-to-cart-btn {
    background:  #0a8bfd;            /* was #039667; */
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 40px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
    width: 100%;
    white-space: nowrap;
    display: block;
}

.custom-promo-card .add-to-cart-btn:hover {
    background: #047857;
}

.custom-promo-card .add-to-cart-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.custom-promo-card .add-to-cart-btn.success {
    background: #10b981;
}

.custom-promo-card .add-to-cart-btn.error {
    background: #ef4444;
}