:root {
    --primary-color: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #f59e0b;
    --secondary-light: #fbbf24;
    --dark-color: #0a0d12;
    --light-color: #f9fafb;
    --gray-color: #6b7280;
    --lig-color: #dfdfdf;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.18);
    --primary: #2c3e50;
            --secondary: #1e40af;
            --accent: #fbbf24;
            --light: #ecf0f1;
            --dark: #2c3e50;
            --animation-speed: 0.5s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family:arial, sans-serif;
    background-color: #f8f4f4;
  }
/* Navbar Base */
.custom-navbar {
    background-color: #020261;
    color: white;
    padding: 0.5rem 1rem;
    position: sticky;
    top: 0;
    z-index: 1030;
}

/* Container */
.custom-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    max-width: 1140px;
    margin: 0 auto;
    width: 100%;
}

/* Brand */
.custom-navbar-brand {
    color: white;
    font-size: 1.25rem;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.custom-navbar-brand img{
    border-radius: .2rem;
}

/* Toggler */
.custom-toggler {
    background: none;
    border: none;
    color: white;
    display: none;
}

.custom-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    background-color: white;
}

/* Responsive Collapse */
.custom-collapse {
    display: flex;
    flex-basis: 100%;
    flex-grow: 1;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Nav Sections */
.custom-nav-left,
.custom-nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.custom-nav-left {
    flex-wrap: wrap;
    gap: 1.5rem;
}

/* Nav Links */
.custom-nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
}

.custom-nav-link:hover {
    color: white;
}

/* Search */
.custom-search-form {
    margin-left: 1rem;
    display: flex;
}

.custom-input-group {
    display: flex;
    align-items: center;
}

.custom-form-control {
    padding: 0.375rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem 0 0 0.375rem;
    outline: none;
}

.custom-search-btn {
    padding: 0.375rem 0.75rem;
    border: none;
    background-color: #0585f5;
    color: white;
    border-radius: 0 0.375rem 0.375rem 0;
    cursor: pointer;
}
ul{
    list-style: none;
}

.products-section {
    padding: 30px 5%;
}

.section-title {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 28px;
    text-align: center;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

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

.product-info {
    padding: 15px;
}

.product-name {
    font-size: 13px;
    margin-bottom: 5px;
    color: #2c3e50;
}

.product-description {
    font-size: 10px;
    color: #7f8c8d;
    margin-bottom: 10px;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 15px;
    font-weight: bold;
    color: #da200b;
    margin-bottom: 15px;
}

.ad-section {
    margin: 20px 0;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.ad-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.ad-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.ad-image:hover {
    transform: scale(1.02);
}

.add-to-cart {
    width: 100%;
    padding: 10px;
    background-color: #2980b9;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-to-cart:hover {
    background-color: #4394ca;
}

.no-products {
    text-align: center;
    color: #7f8c8d;
    margin-top: 50px;
}
/* Dropdown */
.dropdown-toggle::after {
    content: "";
    font-size: 0.6rem;
}

.custom-dropdown-menu {
    display: none;
    position: absolute;
    background-color: white;
    color: black;
    list-style: none;
    padding: 0.5rem;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.custom-nav-item:hover .custom-dropdown-menu {
    display: block;
}

.custom-dropdown-item {
    padding: 0.25rem 1rem;
    color: black;
    text-decoration: none;
    display: block;
}

.custom-dropdown-item:hover {
    background-color: #f8f9fa;
}

/* Buttons */
.custom-btn {
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.custom-btn.outline {
    border: 1px solid #f8f9fa;
    background-color: transparent;
    color: #f8f9fa;
}

.custom-btn.primary {
    background-color: #0d6efd;
    color: white;
    border: none;
}

.custom-btn.me {
    margin-right: 0.5rem;
}

/* Cart Count */
.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -10px;
    background-color: red;
    color: white;
    font-size: 0.75rem;
    border-radius: 50%;
    padding: 2px 6px;
}

/* Home Icon */
.icon-link {
    color: rgb(166, 166, 166);
    text-decoration: none;
    font-size: 1.25rem;
}

/* Responsive: Show toggler button */
@media (max-width: 991.98px) {
    .custom-toggler {
        display: block;
    }

    .custom-collapse {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .custom-collapse.show {
        display: flex;
    }

    .custom-nav-left,
    .custom-nav-right {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0.75rem;
        padding: 0.5rem 0;
    }

    .custom-search-form {
        width: 100%;
    }

    .custom-input-group {
        width: 100%;
    }

    .custom-form-control {
        width: 100%;
    }
}
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}
.card {
    transition: transform 0.3s;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,.1);
}
.product-image {
    height: 200px;
    object-fit: contain;
    padding: 10px;
}
.cart-icon {
    position: relative;
}
.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.suggested-products {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
}
.payment-card {
    cursor: pointer;
    transition: all 0.3s;
}
.payment-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,.1);
}
.payment-card.selected {
    border: 2px solid #0d6efd;
    background-color: #f0f7ff;
}
.floating-related {
    position: sticky;
    top: 20px;
    max-height: 80vh;
    overflow-y: auto;
}
@media (max-width: 768px) {
    .floating-related {
        position: static;
        margin-bottom: 20px;
    }
}

.ad-section {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    background-color: #e0e0e0b9;
    padding: 5px 0;
}

.ad-container {
    display: inline-block;
    animation: scrollAds 20s linear infinite;
}

.ad-image {
    height: 200px;
    margin: 0 1px;
    width: 600px;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

@keyframes scrollAds {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.footer {
    background: linear-gradient(135deg, #080044, #030225, #020069);
    color: white;
    padding: 40px 5% 0;
    width: 100%;
    box-sizing: border-box;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 35px;
    margin-bottom: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-col {
    padding: 0 1px;
}

.footer-col h3 {
    color: rgb(204, 204, 204);
    margin-bottom: 25px;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    position: relative;
    padding-bottom: 15px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

.logo h3 {
    font-size: clamp(1.3rem, 2.5vw, 1.5rem);
    margin-bottom: 20px;
}

.logo h3 span {
    color: var(--secondary-color);
}

.footer-about {
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    color: rgba(255, 255, 255, 0.8);
}

.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 15px;
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-col ul li a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-col ul li a i {
    margin-right: 10px;
    color: var(--secondary-color);
    font-size: 1rem;
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    line-height: 1.6;
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    color: rgba(255, 255, 255, 0.8);
}

.contact-info p i {
    margin-right: 15px;
    color: var(--secondary-color);
    font-size: 1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

/* Footer bottom/copyright section */
.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-grid {
        gap: 30px;
    }
    
    .footer-col {
        margin-bottom: 20px;
    }
    
    .footer-col h3::after {
        width: 40px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 30px 5% 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-col {
        text-align: center;
    }
    
    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-col ul li a {
        justify-content: center;
    }
    
    .contact-info p {
        justify-content: center;
    }
}
.terms {
    display: flex; 
    justify-content: center; 
    gap: 40px; 
    text-align: center;
    flex-wrap: wrap; 
    z-index: 5000;
}

.terms a {
    font-size: 13px;
    text-decoration: none;
    color: var(--dark);
    font-weight: bold;
    white-space: nowrap; 
    padding: 0 5px; 
}

.terms a:hover{
    color: var(--secondary-light);
    border-bottom: 2px solid var(--secondary-light);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 13, 18, 0.8);
    backdrop-filter: blur(5px);
    overflow: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background: var(--light-color);
    margin: 3% auto;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: 400;
    color: var(--gray-color);
    cursor: pointer;
    transition: all 0.3s ease;
    background: none;
    border: none;
    width: 2.7rem;
    height: 2.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-btn:hover {
    color: var(--primary-color);
    background-color: rgba(59, 130, 246, 0.1);
}

.document-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
}

.document-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.document-header h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: clamp(1.5rem, 4vw, 2rem); 
    font-weight: 700;
    letter-spacing: -0.5px;
}

.document-header p {
    color: var(--gray-color);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(0.9rem, 2vw, 1.1rem); 
}

.document-header h2 {
    color: var(--dark-color);
    margin-top: 1rem;
    font-size: clamp(1.2rem, 3vw, 1.5rem); 
    font-weight: 600;
}

.document-content {
    line-height: 1.7;
    font-size: clamp(0.9rem, 2vw, 1rem); 
    color: var(--dark-color);
}

.document-content h2 {
    color: var(--primary-color);
    margin: 2rem 0 1rem;
    font-size: clamp(1.1rem, 3vw, 1.4rem); 
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.document-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

.document-content h3 {
    color: var(--dark-color);
    margin: 1.5rem 0 0.75rem;
    font-size: clamp(1rem, 2.5vw, 1.2rem); 
    font-weight: 500;
}

.document-content p {
    margin-bottom: 1rem;
    font-weight: 400;
}

.document-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.document-content li {
    margin-bottom: 0.5rem;
    position: relative;
    list-style-type: none;
}

.document-content li::before {
    content: '•';
    color: var(--secondary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    position: absolute;
    left: 0;
}

.highlight {
    background-color: rgba(245, 158, 11, 0.05);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border-left: 4px solid var(--secondary-color);
    margin: 1.5rem 0;
}
@media (max-width: 768px) {
    .modal-content {
        padding: 1.5rem;
        width: 95%;
        margin: 5% auto; 
    }
    
    .terms {
        gap: 20px; 
        padding: 0 10px; 
    }
    
    .terms a {
        font-size: 12px; 
    }
    
}

@media (max-width: 480px) {
    .modal-content {
        padding: 1rem;
        margin: 10% auto; 
        border-radius: 0.5rem; 
    }
    
    .terms {
        gap: 10px; 
    }
    
    .terms a {
        font-size: 11px; 
    }
    
    .close-btn {
        top: 0.8rem;
        right: 0.8rem;
        width: 2.5rem;  
        height: 2.5rem; 
        font-size: 1.7rem;
        padding: 0;
        touch-action: manipulation;
    }
    
    .close-btn {
        z-index: 1001;
    }
}
.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: bold;
}