* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* ✅ AUTH MODAL STYLES (Sign In / Sign Up) */
.auth-box {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
}

.auth-box h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.auth-btn {
    width: 100%;
    padding: 0.8rem;
    background: #2980b9;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

.auth-btn:hover {
    background: #1f618d;
}

.toggle-text {
    text-align: center;
    margin-top: 1rem;
    color: #666;
}

.toggle-text span {
    color: #2980b9;
    cursor: pointer;
    font-weight: bold;
}

.auth-message {
    margin-top: 1rem;
    text-align: center;
    padding: 0.5rem;
    border-radius: 4px;
}

.auth-message.error {
    background: #fdecea;
    color: #c62828;
}

.auth-message.success {
    background: #e8f5e9;
    color: #2e7d32;
}

/* ✅ SHOP LAYOUT & HEADER */
header {
    background: #2c3e50;
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.cart-icon, .orders-btn {
    font-size: 1.2rem;
    cursor: pointer;
}

.orders-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: 0.3s;
}

.orders-btn:hover {
    background: #219653;
}

/* ✅ TABS NAVIGATION */
.tabs {
    display: flex;
    background: #34495e;
    border-bottom: 2px solid #2c3e50;
    overflow-x: auto;
}

.tab-link {
    background-color: inherit;
    color: white;
    padding: 1rem 1.5rem;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
}

.tab-link:hover {
    background-color: #2c3e50;
}

.tab-link.active {
    background-color: #2980b9;
    font-weight: bold;
}

.tab-content {
    display: none;
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tab-content.active {
    display: block;
}

.tab-content h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

/* ✅ SUB TABS (Trading Cards) */
.sub-tabs {
    display: flex;
    background: #ecf0f1;
    border-radius: 6px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.sub-tab-link {
    background-color: inherit;
    color: #2c3e50;
    padding: 0.8rem 1.5rem;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 0.95rem;
    transition: 0.3s;
}

.sub-tab-link:hover {
    background-color: #d0d7d9;
}

.sub-tab-link.active {
    background-color: #2980b9;
    color: white;
    font-weight: bold;
}

.sub-tab-content {
    display: none;
}

.sub-tab-content.active {
    display: block;
}

/* ✅ CONTACT SECTION */
.contact-info {
    line-height: 1.8;
    font-size: 1.1rem;
}

/* ✅ PRODUCT GRID & CARDS */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.product-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: white;
}

.product-card:hover {
    box-shadow: 3px 3px 12px rgba(0,0,0,0.15);
    transform: translateY(-3px);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.product-card h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-size: 1.1rem;
}

.product-card .price {
    font-size: 1.3rem;
    color: #27ae60;
    margin: 0.5rem 0 1rem;
    font-weight: bold;
}

.stock-status {
    font-size: 0.9rem;
    margin: 0.5rem 0;
    font-weight: bold;
}

.in-stock { color: #27ae60; }
.out-of-stock { color: #e74c3c; }

.add-to-cart {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
    transition: 0.3s;
}

.add-to-cart:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

.add-to-cart:hover:not(:disabled) {
    background: #217dbb;
}

/* ✅ MODAL BASE STYLES */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    overflow-y: auto;
    padding: 1rem;
}

.modal-content {
    background: white;
    max-width: 550px;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    position: relative;
}

/* ✅ PRODUCT POPUP SPECIFIC */
.product-popup-content img.popup-img {
    width: 100%;
    max-height: 280px;
    object-fit: contain;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.product-popup-content .popup-desc {
    line-height: 1.6;
    margin: 1rem 0;
    font-size: 1rem;
}

.product-popup-content .popup-stock {
    font-weight: bold;
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

/* ✅ CLOSE BUTTON */
.close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #888;
    transition: 0.3s;
}

.close-btn:hover {
    color: #000;
}

/* ✅ CART & ORDERS */
.cart-items-container {
    margin: 1rem 0;
    overflow-y: auto;
    max-height: 350px;
    padding-right: 0.5rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    gap: 0.5rem;
}

.remove-btn {
    background: #e74c3c;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: 0.3s;
}

.remove-btn:hover {
    background: #c0392b;
}

.shipping-options {
    margin-top: 0.5rem;
}

.shipping-options label {
    cursor: pointer;
    display: block;
    margin: 0.3rem 0;
}

.shipping-options input:disabled + span {
    color: #999;
}

.cart-total {
    margin: 1rem 0;
    font-size: 1.1rem;
    line-height: 1.5;
    text-align: right;
    padding-top: 0.5rem;
    border-top: 1px solid #eee;
}

.paypal-btn {
    display: inline-block;
    background: #ffc439;
    color: #111;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 1rem;
    text-align: center;
    width: 100%;
    transition: 0.3s;
}

.paypal-btn:hover {
    background: #ffb300;
}

.empty-text {
    color: #888;
    text-align: center;
    padding: 2rem 0;
}

.order-record {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.order-record h4 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.order-record ul {
    margin: 0.5rem 0 0.5rem 1.5rem;
}

/* ✅ FREE SHIPPING MESSAGE STYLES */
.shipping-info {
    margin: 0.8rem 0;
    padding: 0.5rem;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
}