/* Shop-specific styles for Sweet Pea & Poppy Cookie Co. */

/* Header Cart Button */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-btn {
    position: relative;
    background: none;
    border: 2px solid var(--deep-rose);
    color: var(--deep-rose);
    padding: 0.5rem;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    min-width: 60px;
}

.cart-btn:hover {
    background: var(--deep-rose);
    color: white;
    transform: scale(1.05);
}

.cart-icon {
    font-size: 1.2rem;
}

.cart-count {
    background: var(--deep-rose);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    min-width: 20px;
}

.cart-btn:hover .cart-count {
    background: white;
    color: var(--deep-rose);
}

/* Holiday Banner */
.holiday-banner {
    background: linear-gradient(135deg, var(--primary-rose) 0%, var(--secondary-coral) 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.banner-content h2 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    font-weight: bold;
}

.banner-content p {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Product Layout */
.product-featured {
    margin-bottom: 3rem;
}

.advent-card {
    background: linear-gradient(135deg, var(--warm-neutral) 0%, white 100%);
    border: 2px solid var(--primary-rose);
    box-shadow: 0 8px 30px rgba(212, 165, 165, 0.2);
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(212, 165, 165, 0.2);
}

.advent-card .product-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
    align-items: start;
}

.product-image {
    position: relative;
    overflow: hidden;
}

.advent-card .product-image {
    grid-column: 1;
}

.product-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.advent-card .product-image img {
    height: 300px;
}

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

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-gold);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.advent-card .product-info > div {
    grid-column: 2;
}

.product-title {
    color: var(--deep-rose);
    margin: 0 0 1rem 0;
    font-size: 1.4rem;
    font-weight: bold;
}

.product-description {
    color: var(--text-medium);
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
}

.product-features {
    margin: 1.5rem 0;
}

.product-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-features li {
    padding: 0.3rem 0;
    color: var(--text-medium);
    position: relative;
    padding-left: 1.5rem;
}

.product-features li::before {
    content: "✓";
    color: var(--accent-gold);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.product-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.product-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--deep-rose);
}

.product-count {
    color: var(--text-medium);
    font-size: 0.9rem;
}

.product-stock {
    text-align: right;
}

.stock-text {
    font-size: 0.9rem;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
}

.stock-available {
    background: #e8f5e8;
    color: #2d5a2d;
}

.stock-low {
    background: #fff3e0;
    color: #d97706;
}

.stock-out {
    background: #fee;
    color: #dc2626;
}

/* Order Timeline */
.order-timeline {
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--soft-neutral);
    border-radius: 8px;
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.5rem 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--warm-neutral);
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-date {
    font-weight: bold;
    color: var(--deep-rose);
}

.timeline-desc {
    color: var(--text-medium);
    font-size: 0.9rem;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.section-title {
    text-align: center;
    color: var(--deep-rose);
    margin: 2rem 0 0.5rem 0;
    font-size: 2rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-medium);
    margin: 0 0 2rem 0;
    font-size: 1.1rem;
}

/* Buttons */
.btn-full {
    width: 100%;
    margin-top: auto;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
}

/* Product Action Controls */
.product-action {
    margin-top: auto;
}

.quantity-controls {
    margin-top: 0.5rem;
}

.quantity-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    background: var(--warm-neutral);
    border-radius: 8px;
    border: 2px solid var(--primary-rose);
}

.in-cart-label {
    font-weight: bold;
    color: var(--deep-rose);
    font-size: 0.9rem;
}

.quantity-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    background: var(--deep-rose);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    line-height: 1;
}

.qty-btn:hover {
    background: var(--accent-gold);
    transform: scale(1.1);
}

.qty-btn:active {
    transform: scale(0.95);
}

.qty-minus {
    background: #6b7280;
}

.qty-minus:hover {
    background: #4b5563;
}

.qty-number {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--deep-rose);
    min-width: 25px;
    text-align: center;
    padding: 0 0.5rem;
}

.btn:disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
    transform: none;
}

.btn:disabled:hover {
    background: #ccc;
    transform: none;
}

/* Info Section */
.info-section {
    margin: 3rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-card {
    background: var(--warm-neutral);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent-gold);
}

.info-card h3 {
    color: var(--deep-rose);
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
}

.info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(212, 165, 165, 0.2);
}

.info-card li:last-child {
    border-bottom: none;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

/* Prevent body scroll when modal is open */
.modal-open {
    overflow: hidden;
    height: 100vh;
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
}

.checkout-modal {
    max-width: 700px;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--warm-neutral);
    border-radius: 12px 12px 0 0;
}

.modal-header h2 {
    margin: 0;
    color: var(--deep-rose);
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-medium);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: var(--deep-rose);
    color: white;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #eee;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    background: var(--soft-neutral);
    border-radius: 0 0 12px 12px;
}

/* Cart Styles */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: bold;
    color: var(--deep-rose);
    margin: 0 0 0.5rem 0;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.cart-item-controls .qty-btn {
    background: var(--deep-rose);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.cart-item-controls .qty-btn:hover {
    background: var(--accent-gold);
    transform: scale(1.05);
}

.cart-item-controls .qty-minus {
    background: #6b7280;
}

.cart-item-controls .qty-minus:hover {
    background: #4b5563;
}

.cart-item-controls .qty-display {
    font-size: 1rem;
    font-weight: bold;
    color: var(--deep-rose);
    min-width: 25px;
    text-align: center;
    padding: 0 0.3rem;
}

.cart-item-controls .remove-btn {
    background: #dc2626;
    color: white;
    border: none;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
}

.cart-item-controls .remove-btn:hover {
    background: #b91c1c;
    transform: scale(1.05);
}

.cart-item-price {
    font-weight: bold;
    color: var(--text-dark);
    margin-left: 1rem;
}

.cart-total {
    text-align: right;
    padding: 1rem 0;
    border-top: 2px solid var(--primary-rose);
    margin-top: 1rem;
    font-size: 1.2rem;
    color: var(--deep-rose);
}

.empty-cart {
    text-align: center;
    color: var(--text-medium);
    padding: 2rem;
}

/* Checkout Form */
.form-section {
    margin: 2rem 0;
}

.form-section h3 {
    color: var(--deep-rose);
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    border-bottom: 2px solid var(--primary-rose);
    padding-bottom: 0.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.form-grid input {
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-grid input:focus {
    outline: none;
    border-color: var(--primary-rose);
    box-shadow: 0 0 0 3px rgba(212, 165, 165, 0.1);
}

.checkout-items {
    background: var(--warm-neutral);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.checkout-total {
    text-align: right;
    font-size: 1.3rem;
    color: var(--deep-rose);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--primary-rose);
}

/* Pickup Selection */
.pickup-section h4 {
    color: var(--deep-rose);
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.pickup-options {
    display: grid;
    gap: 0.75rem;
}

.pickup-option {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    position: relative;
}

.pickup-option:hover {
    border-color: var(--primary-rose);
    box-shadow: 0 2px 8px rgba(212, 165, 165, 0.15);
}

.pickup-option.selected {
    border-color: var(--deep-rose);
    background: var(--warm-neutral);
    box-shadow: 0 4px 12px rgba(212, 165, 165, 0.2);
}

.pickup-option input[type="radio"] {
    margin: 0.25rem 0 0 0;
    accent-color: var(--deep-rose);
    transform: scale(1.2);
}

.pickup-option-content {
    flex: 1;
}

.pickup-date {
    font-weight: 600;
    color: var(--deep-rose);
    font-size: 1rem;
    margin: 0 0 0.25rem 0;
}

.pickup-time {
    color: var(--text-medium);
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
}

.pickup-capacity {
    color: var(--accent-gold);
    font-size: 0.8rem;
    font-weight: 500;
    margin: 0;
}

/* Mixed Cart Warning */
.pickup-notice {
    background: linear-gradient(135deg, #fef3c7 0%, #fef9e7 100%);
    border: 2px solid var(--accent-gold);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.pickup-notice-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.pickup-notice-icon {
    color: #d97706;
    font-size: 1.5rem;
    margin-top: 0.1rem;
}

.pickup-notice-content {
    flex: 1;
}

.pickup-notice-title {
    color: #92400e;
    font-weight: bold;
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
}

.pickup-notice-text {
    color: #92400e;
    margin: 0 0 0.75rem 0;
}

.pickup-notice-list {
    margin: 0;
    padding-left: 1.25rem;
    color: #92400e;
}

.pickup-notice-list li {
    margin: 0.25rem 0;
}

.pickup-confirmation {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pickup-confirmation:hover {
    background: rgba(255, 255, 255, 0.8);
}

.pickup-confirmation input[type="checkbox"] {
    margin-top: 0.1rem;
    accent-color: var(--deep-rose);
    transform: scale(1.1);
}

.pickup-confirmation-text {
    color: #92400e;
    font-weight: 500;
}

.pickup-dates-section {
    margin-top: 1rem;
}

.pickup-dates-section h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

/* Stripe Elements */
#card-element {
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
}

#card-element.StripeElement--focus {
    border-color: var(--primary-rose);
    box-shadow: 0 0 0 3px rgba(212, 165, 165, 0.1);
}

#card-errors {
    color: #fa755a;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-rose);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-actions {
        gap: 0.5rem;
    }
    
    .cart-btn {
        min-width: 50px;
        padding: 0.4rem;
    }
    
    .cart-icon {
        font-size: 1rem;
    }
    
    .advent-card .product-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .advent-card .product-image {
        grid-column: 1;
    }
    
    .advent-card .product-info > div {
        grid-column: 1;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .product-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .product-stock {
        text-align: left;
    }
    
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        max-height: 80vh;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-footer {
        padding: 1rem 1.5rem;
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .info-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .banner-content h2 {
        font-size: 1.5rem;
    }
    
    .banner-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .holiday-banner {
        padding: 1.5rem 0;
    }
    
    .product-card {
        margin: 0 -1rem;
        border-radius: 0;
    }
    
    .info-card {
        padding: 1.5rem;
        margin: 0 -1rem;
        border-radius: 0;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .product-title {
        font-size: 1.2rem;
    }
    
    .product-price {
        font-size: 1.5rem;
    }
}