/* ══════════════════════════════════════════
   Store Page (store.html)
   ══════════════════════════════════════════ */

html {
    /* Set this to the height of your sticky nav (60px) + some breathing room */
    scroll-padding-top: 75px;

    /* Optional: Smooth scrolling for a better user experience */
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.page-title {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 2.0rem;
}

.page-subtitle {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

/* Success Message */
.success-message {
    position: fixed;
    top: 100px;
    right: 20px;
    background-color: #d4edda;
    color: #155724;
    padding: 1rem 2rem;
    border-radius: 5px;
    border: 1px solid #c3e6cb;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: none;
    z-index: 2000;
}

.success-message.show {
    display: block;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Shopping Cart Summary */
.cart-summary {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #2c3e50;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1500;
}

.cart-summary:hover {
    background-color: #34495e;
    transform: scale(1.05);
}

.cart-icon {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.cart-count {
    background-color: #e74c3c;
    border-radius: 50%;
    padding: 0.2rem 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
}

/* Tabs */
.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 2rem;
    border-bottom: 3px solid #3498db;
}

.tab-btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    background-color: #ecf0f1;
    color: #7f8c8d;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 10px 10px 0 0;
    position: relative;
    bottom: -3px;
    border: 2px solid transparent;
    border-bottom: 3px solid #3498db;
}

.tab-btn:hover {
    background-color: #d5dbdb;
    color: #2c3e50;
}

.tab-btn.active {
    background-color: white;
    color: #2c3e50;
    border-color: #3498db;
    border-bottom: 3px solid white;
}

.tab-btn.disabled {
    color: #999;
    cursor: default;
    pointer-events: none;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.tab-btn.disabled:hover {
    background-color: #ecf0f1;
    color: #999;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.placeholder-message {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.placeholder-message h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.placeholder-message p {
    color: #7f8c8d;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ── Coming Soon / unavailable state ── */
.purchase-section.coming-soon .price-display {
    color: #7f8c8d;
}

.purchase-section.coming-soon .quantity-control {
    opacity: 0.5;
    pointer-events: none;
}

.purchase-section.coming-soon .total-amount {
    color: #7f8c8d;
    font-size: 1.2rem;
}

.purchase-section.coming-soon .add-to-cart-btn {
    background-color: #95a5a6;
    cursor: not-allowed;
}

/* Responsive — page-specific */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .tab-btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}
