* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: rgb(207, 0, 0);
    --primary-blue: #2e348e;
    --dark-bg: #1a1a1a;
    --light-gray: #f5f5f5;
    --border-gray: #e0e0e0;
    --text-dark: #333;
    --text-light: #666;
}

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

/* Header Styles */
.top-bar {
    background: var(--dark-bg);
    color: white;
    padding: 10px 0;
    font-size: 14px;
}

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

.contact-info {
    display: flex;
    gap: 30px;
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    flex-shrink: 0;
}

.logo img {
    height: 50px;
}

.search-bar {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 14px 50px 14px 20px;
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.search-bar button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-red);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.search-bar button:hover {
    background: var(--primary-blue);
}

.header-actions {
    display: flex;
    gap: 25px;
    align-items: center;
}

.action-btn {
    position: relative;
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    transition: color 0.3s;
}

.action-btn:hover {
    color: var(--primary-red);
}

.action-btn i {
    font-size: 22px;
}

.badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-red);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}

/* Navigation */
.nav-bar {
    background: var(--primary-blue);
    color: white;
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    /* gap: 5px; */
    padding: 0 20px;
    overflow-x: scroll;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    ;
}

.nav-content a {
    text-decoration: none;
    color: white;
    font-size: 15px;
}

.nav-content::-webkit-scrollbar {
    display: none;
}

.nav-item {
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-item:hover {
    background: var(--primary-red);
}

/* Brands Section */
.brands-section {
    padding: 80px 20px;
    background: white;
    overflow: hidden;
}

.brands-container {
    max-width: 1400px;
    margin: 50px auto 0;
    position: relative;
    overflow: hidden;
}

.brand-slide {
    display: flex;
    gap: 60px;
    animation: slideLogos 30s linear infinite;
}

.brand-slide:hover {
    animation-play-state: paused;
}

.brand-logo {
    flex-shrink: 0;
    width: 180px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid var(--border-gray);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s;
    cursor: pointer;
}

.brand-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-red);
}

.brand-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s;
}

.brand-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes slideLogos {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Duplicate brands for seamless loop */
.brand-slide::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
}


/* Footer */
footer {
    background: var(--dark-bg);
    color: white;
    padding: 60px 20px 20px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 20px;
}

.footer-about {
    color: #aaa;
    line-height: 1.8;
}

.footer-section h4 {
    color: var(--primary-red);
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

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

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: var(--primary-red);
    transform: translateY(-3px);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid #333;
    text-align: center;
    color: #aaa;
}

/* Enchanted Technologies Link - Footer */
.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.built-by {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

.enchanted-link {
    background: linear-gradient(90deg, #ff6ec4 0%, #d946ef 25%, #a855f7 50%, #7c3aed 75%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
}

.enchanted-link:hover {
    background: linear-gradient(90deg, #ff8fd4 0%, #e966f7 25%, #b875ff 50%, #8c5afd 75%, #7c86ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateY(-2px);
}

.enchanted-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff6ec4 0%, #d946ef 25%, #a855f7 50%, #7c3aed 75%, #6366f1 100%);
    transition: width 0.3s ease;
}

.enchanted-link:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    .footer-bottom {
        text-align: center;
    }
    
    .built-by {
        font-size: 13px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .category-large {
        grid-row: span 1;
        grid-column: span 2;
    }

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

@media (max-width: 768px) {

    /* Top Bar Mobile Optimization */
    .top-bar {
        padding: 8px 0;
        font-size: 13px;
    }

    .top-bar-content {
        padding: 0 15px;
        flex-direction: column;
        gap: 8px;
    }

    .contact-info {
        width: 100%;
        justify-content: space-between;
        gap: 0;
    }

    /* Hide hours on mobile to reduce crowding */
    .top-bar-hours {
        display: none;
    }

    .top-bar-phone,
    .top-bar-email {
        font-size: 12px;
    }

    .top-bar-phone i,
    .top-bar-email i {
        font-size: 11px;
    }

    /* Header Mobile Optimization */
    .header-content {
        padding: 10px 15px;
        gap: 12px;
        flex-wrap: wrap;
    }

    .logo img {
        height: 40px;
    }

    .search-bar {
        order: 3;
        max-width: 100%;
        flex-basis: 100%;
        margin-top: 0;
    }

    .search-bar input {
        padding: 12px 45px 12px 15px;
        font-size: 14px;
    }

    .search-bar button {
        padding: 8px 16px;
    }

    .header-actions {
        gap: 15px;
    }

    .action-btn {
        font-size: 14px;
    }

    .action-btn i {
        font-size: 20px;
    }

    .action-btn span {
        display: none;
    }

    /* Navigation */
    .nav-content {
        overflow-x: scroll;
        justify-content: flex-start;
        padding: 0 15px;
    }

    .nav-item {
        padding: 12px 16px;
        font-size: 14px;
    }

    /* Hero Section Mobile Optimization */
    .hero {
        padding: 40px 15px;
        min-height: auto;
    }

    .hero-content {
        gap: 30px;
    }

    .hero-title {
        font-size: 28px;
        line-height: 1.3;
    }

    .hero-description {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 25px;
        font-size: 15px;
    }

    /* Hide product showcase on mobile */
    .hero-showcase {
        display: none;
    }

    /* Optimize hero background for mobile */
    .hero::before {
        background-size: 30px 30px, 30px 30px, 6px 6px, 6px 6px;
    }

    .hero::after {
        width: 250px;
        height: 250px;
        right: -50px;
    }

    /* Categories Section Mobile Optimization */
    .categories-section {
        padding: 50px 15px;
    }

    .section-header {
        margin-bottom: 35px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-title::after {
        width: 60px;
        height: 3px;
    }

    .section-subtitle {
        font-size: 15px;
        padding: 0 10px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .category-card {
        grid-column: span 1 !important;
        height: 280px;
    }

    .category-large {
        height: 300px;
    }

    .category-content {
        padding: 25px 20px;
    }

    .category-content h3 {
        font-size: 22px;
    }

    .category-content p {
        font-size: 14px;
    }

    .category-icon {
        width: 50px;
        height: 50px;
    }

    .category-icon i {
        font-size: 24px;
    }

    .category-card .category-link {
        opacity: 1;
        transform: translateY(0);
    }

    /* Benefits Section */
    .benefits-section {
        padding: 50px 15px;
    }

    .benefits-grid {
        gap: 20px;
    }

    .benefit-card {
        padding: 30px 20px;
    }

    /* Product Grid */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Stats Section */
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    footer {
        padding: 40px 15px 15px;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {

    /* Top Bar Extra Small Screens */
    .top-bar-phone,
    .top-bar-email {
        font-size: 11px;
    }

    /* Product Grid */
    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-card img {
        height: 180px;
    }
}

/* Cart Notifications */
.cart-notification {
    position: fixed;
    top: 100px;
    right: -400px;
    background: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 300px;
    border-left: 4px solid var(--primary-blue);
}

.cart-notification.show {
    right: 20px;
}

.cart-notification.success {
    border-left-color: #10b981;
}

.cart-notification.success i {
    color: #10b981;
}

.cart-notification.error {
    border-left-color: #ef4444;
}

.cart-notification.error i {
    color: #ef4444;
}

.cart-notification.info {
    border-left-color: var(--primary-blue);
}

.cart-notification.info i {
    color: var(--primary-blue);
}

.cart-notification i {
    font-size: 24px;
}

.cart-notification span {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
}

@media (max-width: 480px) {
    .cart-notification {
        min-width: auto;
        left: 20px;
        right: -400px;
    }

    .cart-notification.show {
        right: 20px;
        left: 20px;
    }
}

/* ============================================
   MINI CART STYLES
   ============================================ */

/* Cart button positioning */
.action-btn.cart-wish {
    position: relative;
}

/* Mini cart container */
.mini-cart {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 350px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

/* Arrow pointer */
.mini-cart::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

/* Show mini cart */
.mini-cart.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Mini cart header */
.mini-cart-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
}

.mini-cart-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-blue);
}

/* Mini cart items container */
.mini-cart-items {
    max-height: 300px;
    overflow-y: auto;
    padding: 15px;
}

/* Custom scrollbar for mini cart */
.mini-cart-items::-webkit-scrollbar {
    width: 6px;
}

.mini-cart-items::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.mini-cart-items::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 10px;
}

/* Empty cart state */
.mini-cart-empty {
    text-align: center;
    padding: 40px 20px;
}

.mini-cart-empty i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 15px;
}

.mini-cart-empty p {
    color: var(--text-light);
    margin: 0;
    font-size: 14px;
}

/* Mini cart item */
.mini-cart-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s;
    position: relative;
}

.mini-cart-item:hover {
    background: #f0f2f5;
    transform: translateX(-3px);
}

.mini-cart-item-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: white;
}

.mini-cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-cart-item-details {
    flex: 1;
    min-width: 0;
}

.mini-cart-item-details h5 {
    margin: 0 0 6px 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

.mini-cart-item-qty {
    font-size: 12px;
    color: var(--text-light);
    margin: 0 0 4px 0;
}

.mini-cart-item-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-red);
    margin: 0;
}

.mini-cart-item-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mini-cart-item-remove:hover {
    background: var(--primary-red);
    color: white;
    transform: rotate(90deg);
}

/* More items indicator */
.mini-cart-more {
    text-align: center;
    padding: 10px;
    color: var(--primary-blue);
    font-size: 13px;
    font-weight: 600;
}

/* Mini cart footer */
.mini-cart-footer {
    padding: 15px 20px;
    border-top: 1px solid #f0f0f0;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

.mini-cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.mini-cart-subtotal-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.mini-cart-subtotal-amount {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-red);
}

.mini-cart-actions {
    display: flex;
    gap: 10px;
}

.mini-cart-btn {
    flex: 1;
    padding: 10px 15px;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
}

.mini-cart-view {
    background: white;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.mini-cart-view:hover {
    background: var(--primary-blue);
    color: white;
}

.mini-cart-checkout {
    background: var(--primary-red);
    color: white;
    border: 2px solid var(--primary-red);
}

.mini-cart-checkout:hover {
    background: #b50000;
    border-color: #b50000;
}

/* Mobile responsiveness for mini cart */
@media (max-width: 768px) {
    .mini-cart {
        width: 320px;
        right: 0px;
    }
    
    .mini-cart::before {
        right: 30px;
    }
}

@media (max-width: 480px) {
    .mini-cart {
        width: calc(100vw - 20px);
        right: 0px;
    }
    
    .mini-cart-items {
        max-height: 250px;
    }
}
