/* ========== RESET & BASE STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b35;
    --secondary-color: #004e89;
    --accent-color: #f7b801;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.25rem;
}

p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

/* ========== UTILITIES ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #ff5722;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #003a63;
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    margin-top: 0.5rem;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.badge-hot {
    background-color: var(--danger-color);
    color: white;
}

.badge-new {
    background-color: var(--success-color);
    color: white;
}

/* ========== NAVIGATION ========== */
.navbar {
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu .btn {
    margin-left: 1rem;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}
.nav-menu .btn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ========== CURRENCY SELECTOR ========== */
.currency-selector {
    padding: 0.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 0.5rem;
    background-color: white;
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.currency-selector:hover {
    background-color: var(--bg-light);
}

.currency-selector:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 0.5rem;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ========== HERO SECTION ========== */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4rem 1rem;
    text-align: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ========== FEATURED SECTION ========== */
.featured {
    padding: 3rem 1rem;
    background-color: var(--bg-white);
    margin: 2rem 0;
}

.featured-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.featured-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.featured-card .badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.old-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 0.9rem;
}

.new-price {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
    margin: 0.5rem 0 1.5rem;
}

/* ========== BUNDLES SECTION ========== */
.bundles {
    padding: 3rem 1rem;
    background-color: var(--bg-light);
}

.filters {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    border: 2px solid var(--border-color);
    background-color: white;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.bundle-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.bundle-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.bundle-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.bundle-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.bundle-title {
    flex: 1;
}

.bundle-title h3 {
    margin-bottom: 0.25rem;
}

.bundle-category {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--text-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.bundle-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.bundle-features {
    margin-bottom: 1rem;
}

.bundle-features li {
    list-style: none;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.bundle-features li:before {
    content: "✓ ";
    color: var(--success-color);
    font-weight: 700;
    margin-right: 0.5rem;
}

.bundle-pricing {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.bundle-price {
    font-size: 1.75rem;
    color: var(--primary-color);
    font-weight: 700;
}

.bundle-discount {
    background-color: var(--danger-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.bundle-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-add {
    flex: 1;
}

.btn-details {
    padding: 0.75rem 1rem;
    background-color: var(--bg-light);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.btn-details:hover {
    background-color: var(--border-color);
}


/* ========== FOOTER ========== */
.footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 3rem 1rem 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    -webkit-text-fill-color: #1a1a1a;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
    color: rgba(0, 0, 0, 0.8);
    font-size: 0.9rem;
}

/* ========== TABLET & DESKTOP ========== */
@media (min-width: 640px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bundle-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cart-content {
        grid-template-columns: 2fr 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .bundle-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .menu-toggle {
        display: none;
    }

    .nav-menu {
        display: flex;
    }
}

/* ========== MOBILE MENU ========== */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: white;
        padding: 1rem;
        gap: 1rem;
        box-shadow: var(--shadow);
    }

    .nav-menu.active {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero {
        padding: 2.5rem 1rem;
        min-height: 300px;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .bundle-grid {
        grid-template-columns: 1fr;
    }

    .cart-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .bundle-actions {
        flex-direction: column;
    }

    .bundle-actions .btn {
        width: 100%;
    }
}

/* ========== ANIMATIONS ========== */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bundle-card {
    animation: slideIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}



/* ========== DEAL MODAL ========== */
.deal-modal-content {
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.deal-modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex-shrink: 1;
}

.deal-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.deal-pricing {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
}

.deal-price-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.deal-original-price {
    font-size: 1rem;
    color: var(--text-light);
    text-decoration: line-through;
    margin: 0;
}

.deal-current-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.deal-savings {
    font-size: 1.1rem;
    color: var(--success-color);
    font-weight: 600;
    margin: 0;
}

.deal-features {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 1rem;
}

.deal-features h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

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

.deal-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.deal-features li:before {
    content: "✓";
    color: var(--success-color);
    font-weight: 700;
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

.deal-features li:last-child {
    border-bottom: none;
}

.deal-description {
    color: var(--text-light);
    line-height: 1.8;
}

.deal-description p {
    margin: 0;
}

#buyNowBtn {
    margin-top: 1rem;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
}

/* ========== AUTHENTICATION MODAL ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background-color: var(--bg-white);
    margin: 2.5% auto;
    padding: 0;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 400px;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: white;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: transform 0.3s ease;
}

.close-btn:hover {
    transform: scale(1.2);
}

.modal-body {
    padding: 2rem;
}

/* ========== FORM STYLES ========== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.btn-full {
    width: 100%;
    margin-top: 1rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ========== AUTH MESSAGES ========== */
.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #f5c6cb;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #c3e6cb;
}

/* ========== AUTH TEXT ========== */
.toggle-auth-text {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.toggle-auth-text a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.toggle-auth-text a:hover {
    text-decoration: underline;
}

/* ========== USER NAV ========== */
#userNavItem {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#userEmail {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 600px) {
    .modal-content {
        width: 90%;
        margin: 20% auto;
    }
    
    .modal-body {
        padding: 1.5rem;
    }

    .deal-modal-body {
        padding: 1.5rem;
    }

    .deal-modal-content {
        max-height: 85vh;
        margin: 7.5% auto;
    }
}

/* custome alert model */
.custom-alert {
    position: fixed;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    z-index: 1001;
    background-color: var(--success-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.3s ease-out forwards;
}

.custom-alert-content {
    display: flex;
    align-items: center;
}

.custom-alert-content span {
    margin-left: 0.5rem;
}

.custome-prompt {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1010;
    background-color: var(--bg-white);
    color: var(--text-dark);
    padding: 1.5rem 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}   
.custome-prompt input {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
}

.custome-prompt button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1010;
}
.custome-prompt button:hover {
    background-color: var(--primary-color);
    color: rgb(233, 0, 0);
}
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translate(100%, -50%);
    }
    to {
        opacity: 1;
        transform: translate(50%, -50%);
    }
}
/* ========== PRIMARY USER INTERFACE ========== */
/* .primaryUserInterface {
    position: fixed;
    top: 10%;
    left:20%;
    translate:(-50%, -50%);
    background-color: var(--bg-white);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 1003;
}
.primaryUserInterface button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.primaryUserInterface button:hover {
    background-color: var(--primary-color);
    color: white;
} */
#AdminControllsBtn {
    display: none;

}
#testSection{
    display: none;
}