/* mCream Shop Page Styles */

/* Shop Page Body */
.shop-page {
    padding-top: 80px;
    padding-bottom: 90px; /* Space for bottom navigation (70px nav + 20px buffer) */
    min-height: 100vh; /* fallback */
    min-height: 100dvh; /* dynamic viewport height */
}

/* Header Styles */
.shop-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(52, 9, 48, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.header-logo {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.logo-link {
    display: flex;
    align-items: center;
}

.header-nav {
    display: flex;
    gap: 25px;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-link {
    font-family: 'mCream', Arial, sans-serif;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    padding: 8px 12px;
}

.nav-link:hover {
    color: var(--mcream-mint-green);
}

.nav-link.active {
    color: var(--mcream-mint-green);
    border-bottom: 2px solid var(--mcream-mint-green);
}

.nav-btn {
    font-size: 0.9rem;
    padding: 8px 16px;
    min-width: auto;
}

/* Cart Button */
.cart-button {
    position: relative;
    background: rgba(57, 143, 147, 0.3);
    border: 2px solid var(--mcream-dark-cyan);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-button:hover {
    background: rgba(57, 143, 147, 0.5);
    transform: translateY(-2px);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--mcream-tyrian-purple);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    border: 2px solid var(--mcream-dark-purple);
}

/* Main Shop Container */
.shop-main {
    position: relative;
    z-index: 1;
    padding: 40px 20px 80px;
    min-height: calc(100vh - 80px); /* fallback */
    min-height: calc(100dvh - 80px); /* dynamic viewport height */
    overflow: visible;
}

.shop-container {
    max-width: 1400px;
    margin: 0 auto;
    overflow: visible;
}

.shop-title {
    font-family: 'mCream', Arial, sans-serif;
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 10px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.shop-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--mcream-mint-green);
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Delivery Info Banner */
.delivery-info-banner {
    background: rgba(57, 143, 147, 0.2);
    border: 1px solid var(--mcream-dark-cyan);
    border-radius: 12px;
    padding: 15px 20px;
    text-align: center;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.delivery-info-banner p {
    margin: 0;
    color: white;
    font-size: 1rem;
}

/* Shop Controls */
.shop-controls {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    align-items: center;
}

.search-container {
    position: relative;
    flex: 1;
    min-width: 250px;
    max-width: 500px;
}

.search-input {
    width: 100%;
    padding: 14px 50px 14px 18px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    backdrop-filter: blur(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-input:focus {
    outline: none;
    border-color: var(--mcream-mint-green);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 20px rgba(198, 229, 219, 0.15), 0 0 0 3px rgba(198, 229, 219, 0.1);
    transform: translateY(-1px);
}

.search-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    transition: color 0.3s ease;
}

.search-input:focus ~ .search-icon {
    color: var(--mcream-mint-green);
}

.filter-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    font-family: 'mCream', Arial, sans-serif;
    padding: 12px 24px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-size: 0.95rem;
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(198, 229, 219, 0.1), rgba(57, 143, 147, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.filter-btn:hover::before {
    opacity: 1;
}

.filter-btn.active {
    background: linear-gradient(135deg, rgba(57, 143, 147, 0.6), rgba(57, 143, 147, 0.4));
    border-color: var(--mcream-mint-green);
    box-shadow: 0 4px 16px rgba(57, 143, 147, 0.3), 0 0 0 3px rgba(198, 229, 219, 0.1);
    transform: translateY(-1px);
}

.filter-btn.active::before {
    opacity: 0;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* Loading Spinner */
.loading-spinner {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid var(--mcream-mint-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-spinner p {
    color: white;
    font-size: 1.1rem;
}

/* Product Card */
.product-card {
    display: block;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border-color: var(--mcream-mint-green);
}

.product-card:focus {
    outline: 2px solid var(--mcream-mint-green);
    outline-offset: 2px;
}

.product-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--mcream-tyrian-purple);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
}

.product-badge.out-of-stock {
    background: rgba(200, 50, 50, 0.9);
}

.product-badge.low-stock {
    background: rgba(255, 165, 0, 0.9);
}

.product-name {
    padding: 15px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    color: white;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.3;
    word-wrap: break-word;
    hyphens: auto;
    
}

/* No Products Message */
.no-products {
    text-align: center;
    padding: 60px 20px;
    color: white;
    font-size: 1.2rem;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background: rgba(52, 9, 48, 0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 2000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
}

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

.cart-header {
    padding: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-family: 'mCream', Arial, sans-serif;
    color: white;
    margin: 0;
    font-size: 1.8rem;
}

.close-cart-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.close-cart-btn:hover {
    color: var(--mcream-mint-green);
}

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

.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(255, 255, 255, 0.6);
    gap: 20px;
}

.empty-cart svg {
    opacity: 0.5;
}

.empty-cart p {
    font-size: 1.1rem;
}

/* Cart Item */
.cart-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cart-item-name {
    font-family: 'mCream', Arial, sans-serif;
    color: white;
    font-size: 1.1rem;
    margin: 0;
    text-transform: uppercase;
}

.cart-item-variation {
    color: var(--mcream-mint-green);
    font-size: 0.9rem;
}

.cart-item-price {
    color: white;
    font-weight: 600;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.quantity-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.quantity-display {
    color: white;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.remove-item-btn {
    background: rgba(200, 50, 50, 0.3);
    border: 1px solid rgba(200, 50, 50, 0.5);
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-left: auto;
    transition: all 0.3s ease;
}

.remove-item-btn:hover {
    background: rgba(200, 50, 50, 0.5);
}

/* Cart Footer */
.cart-footer {
    padding: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
    margin-bottom: 10px;
}

/* Cart Totals Breakdown */
.cart-totals-breakdown {
    margin-bottom: 15px;
}

.cart-total-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.cart-total-line.cart-final-total {
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.tax-rate-display {
    font-size: 0.85rem;
    color: var(--mcream-mint-green);
    font-weight: normal;
}

.cart-note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-bottom: 15px;
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

.checkout-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Cart Overlay */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-overlay.visible {
    opacity: 1;
    visibility: visible;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: rgba(52, 9, 48, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    height: auto;
    max-height: 90vh;
    position: relative;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

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

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 30px 40px 40px;
    overflow-y: auto;
    flex: 1;
}

.modal-body h2 {
    font-family: 'mCream', Arial, sans-serif;
    color: white;
    font-size: 2.2rem;
    margin-bottom: 20px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header-nav {
        gap: 15px;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .shop-page {
        padding-top: 70px;
    }
    
    .header-logo {
        height: 40px;
    }
    
    .header-nav {
        display: none;
    }
    
    .shop-title {
        font-size: 2.5rem;
    }
    
    .shop-subtitle {
        font-size: 1rem;
    }
    
    .shop-controls {
        flex-direction: column;
        gap: 20px;
    }
    
    .search-container {
        width: 100%;
        max-width: 100%;
    }
    
    .filter-buttons {
        width: 100%;
        justify-content: center;
        gap: 10px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .modal-body {
        padding: 30px 20px;
    }
}

/* Product Detail Modal Styles */
.product-detail {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}

.product-detail-image {
    position: sticky;
    top: 0;
}

.product-detail-image img {
    width: 100%;
    border-radius: 12px;
    
}

.product-detail-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-detail-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-detail-category {
    color: var(--mcream-mint-green);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.product-detail-info h2 {
    font-family: 'mCream', Arial, sans-serif;
    color: white;
    font-size: 1.8rem;
    margin: 0;
    line-height: 1.2;
}

.product-availability {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.availability-badge {
    background: rgba(57, 143, 147, 0.3);
    border: 1px solid var(--mcream-dark-cyan);
    padding: 4px 10px;
    border-radius: 6px;
    color: white;
    font-size: 0.75rem;
}

/* Variation Selector */
.variation-selector-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.variation-selector-label {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.variation-selector-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.variation-dropdown {
    flex: 1;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23C6E5DB' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 45px;
}

.variation-dropdown:hover {
    border-color: var(--mcream-mint-green);
    background-color: rgba(255, 255, 255, 0.15);
}

.variation-dropdown:focus {
    outline: none;
    border-color: var(--mcream-mint-green);
    background-color: rgba(255, 255, 255, 0.15);
}

.variation-dropdown option {
    background: var(--mcream-dark-purple);
    color: white;
    padding: 10px;
}

.variation-dropdown option:disabled {
    color: rgba(255, 255, 255, 0.4);
}

.variation-stock-indicator {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    min-width: 120px;
    justify-content: center;
}

.variation-stock-indicator.in-stock {
    border-color: rgba(77, 255, 136, 0.3);
    color: #4DFF88;
}

.variation-stock-indicator.low-stock {
    border-color: rgba(255, 184, 77, 0.3);
    color: #FFB84D;
}

.variation-stock-indicator.out-of-stock {
    border-color: rgba(255, 77, 77, 0.3);
    color: #FF4D4D;
}

.variation-price-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.variation-price-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.variation-price-amount {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'mCream', Arial, sans-serif;
}

/* Collapsible Sections */
.collapsible-section {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.collapsible-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.collapsible-title {
    color: var(--mcream-mint-green);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.collapsible-arrow {
    color: var(--mcream-mint-green);
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.collapsible-section.expanded .collapsible-arrow {
    transform: rotate(180deg);
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.collapsible-section.expanded .collapsible-content {
    max-height: 500px;
}

.collapsible-inner {
    padding: 0 16px 16px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Add to Cart Section */
.add-to-cart-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-add-to-cart {
    width: 100%;
    padding: 16px 24px;
    background: var(--mcream-dark-cyan);
    border: 2px solid var(--mcream-mint-green);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'mCream', Arial, sans-serif;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-add-to-cart:not(:disabled):hover {
    background: rgba(57, 143, 147, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(57, 143, 147, 0.4);
}

.btn-add-to-cart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.lab-results-link {
    display: block;
    text-align: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--mcream-mint-green);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.lab-results-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--mcream-mint-green);
}

/* Tablet and Mobile Responsive Styles */
@media (max-width: 768px) {
    .modal {
        padding: 10px;
    }
    
    .modal-content {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 12px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .product-detail {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-detail-image {
        position: relative;
        max-width: 250px;
        margin: 0 auto;
    }
    
    .product-detail-info h2 {
        font-size: 1.5rem;
    }
    
    .variation-selector-row {
        flex-direction: column;
    }
    
    .variation-stock-indicator {
        width: 100%;
    }
    
    .variation-price-amount {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .shop-title {
        font-size: 2rem;
    }
    
    .delivery-info-banner p {
        font-size: 0.9rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .filter-btn {
        font-size: 0.85rem;
        padding: 10px 18px;
        letter-spacing: 1px;
    }
    
    .search-input {
        padding: 12px 45px 12px 16px;
        font-size: 0.95rem;
    }
    
    .search-icon {
        right: 16px;
    }
    
    .modal {
        padding: 5px;
    }
    
    .modal-content {
        border-radius: 8px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .modal-body h2 {
        font-size: 1.8rem;
    }
    
    .product-detail-category {
        font-size: 0.75rem;
    }
    
    .product-detail-info h2 {
        font-size: 1.3rem;
    }
    
    .variation-selector-container {
        padding: 15px;
    }
    
    .variation-dropdown {
        font-size: 0.9rem;
    }
    
    .variation-price-amount {
        font-size: 1.4rem;
    }
    
    .btn-add-to-cart {
        font-size: 1rem;
        padding: 14px 20px;
    }
    
    .collapsible-title {
        font-size: 0.85rem;
    }
    
    .collapsible-inner {
        font-size: 0.85rem;
    }
}

/* ===================================
   Google Places Autocomplete Styles
   =================================== */

/* Input field styling */
.address-autocomplete-input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.address-autocomplete-input:focus {
    outline: none;
    border-color: var(--mcream-mint-green);
    background: rgba(255, 255, 255, 0.15);
}

.address-autocomplete-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Input hint text */
.input-hint {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 5px;
    font-style: italic;
}

/* Google Places Autocomplete Dropdown Container */
.pac-container {
    background-color: #2a0a26;
    border: 1px solid var(--mcream-mint-green);
    border-radius: 8px;
    margin-top: 5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    font-family: 'Poppins', sans-serif;
    z-index: 10000 !important;
}

/* After the pano image (Google Powered By logo area) */
.pac-container:after {
    background-image: none !important;
    height: 0px;
}

/* Individual autocomplete items */
.pac-item {
    padding: 12px 15px;
    cursor: pointer;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.95rem;
    line-height: 1.4;
}

.pac-item:first-child {
    border-top: none;
}

.pac-item:hover,
.pac-item-selected {
    background-color: rgba(57, 143, 147, 0.3);
}

/* The matched text styling */
.pac-item-query {
    color: white;
    font-weight: 600;
}

/* Icon styling */
.pac-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%2339FF14" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path><circle cx="12" cy="10" r="3"></circle></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
    width: 20px;
    margin-right: 10px;
}

/* Secondary text (address details) */
.pac-item span:not(.pac-item-query) {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

/* Powered by Google logo */
.pac-logo:after {
    background-image: none;
    padding: 5px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .pac-container {
        max-width: calc(100vw - 40px);
        font-size: 0.9rem;
    }
    
    .pac-item {
        padding: 10px 12px;
    }
}

/* ===================================
   Account Addresses Styles
   =================================== */

.add-address-form {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.add-address-form h3 {
    color: var(--mcream-mint-green);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.add-address-form .form-group {
    margin-bottom: 15px;
}

.add-address-form label {
    display: block;
    color: white;
    margin-bottom: 8px;
    font-weight: 500;
}

.add-address-form input[type="text"] {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.add-address-form input[type="text"]:focus {
    outline: none;
    border-color: var(--mcream-mint-green);
    background: rgba(255, 255, 255, 0.15);
}

.address-preview {
    margin: 15px 0;
}

.address-preview-card {
    background: rgba(57, 143, 147, 0.2);
    border: 1px solid var(--mcream-mint-green);
    border-radius: 8px;
    padding: 15px;
}

.address-preview-card h5 {
    color: var(--mcream-mint-green);
    margin: 0 0 10px 0;
    font-size: 0.9rem;
}

.address-preview-card p {
    color: white;
    margin: 5px 0;
    font-size: 0.95rem;
}

.saved-addresses-container {
    margin-top: 30px;
}

.saved-addresses-container h3 {
    color: var(--mcream-mint-green);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

#saved-addresses-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.address-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.address-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.address-card.default-address {
    border-color: var(--mcream-mint-green);
    background: rgba(57, 143, 147, 0.1);
}

.address-card-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.address-info {
    flex: 1;
}

.default-badge {
    display: inline-block;
    background: var(--mcream-mint-green);
    color: var(--mcream-dark-purple);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.address-street {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    margin: 5px 0;
}

.address-city {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 5px 0;
}

.address-distance {
    color: var(--mcream-mint-green);
    font-size: 0.85rem;
    margin: 8px 0 0 0;
}

.address-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.btn-text {
    background: none;
    border: none;
    color: var(--mcream-mint-green);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 5px 10px;
    transition: all 0.3s ease;
    text-decoration: underline;
}

.btn-text:hover {
    color: white;
}

.btn-text.btn-danger {
    color: #ff6b6b;
}

.btn-text.btn-danger:hover {
    color: #ff5252;
}

.no-addresses {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.6);
}

.no-addresses p {
    font-size: 1rem;
    margin: 0;
}

.message {
    padding: 12px 15px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 0.9rem;
    display: none;
}

.message.success {
    background: rgba(100, 200, 100, 0.2);
    border: 1px solid rgba(100, 200, 100, 0.5);
    color: #b3ffb3;
}

.message.error {
    background: rgba(255, 100, 100, 0.2);
    border: 1px solid rgba(255, 100, 100, 0.5);
    color: #ffcccc;
}

.message.warning {
    background: rgba(255, 200, 100, 0.2);
    border: 1px solid rgba(255, 200, 100, 0.5);
    color: #ffe4b3;
}

/* Mobile responsive for addresses */
@media (max-width: 768px) {
    .address-card-content {
        flex-direction: column;
    }
    
    .address-actions {
        flex-direction: row;
        width: 100%;
        justify-content: flex-start;
    }
}

