@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --primary-dark: #151515;
    --primary-red: #cc0000;
    --accent-red: #e60000;
    --light-red: #fff0f0;
    --dark-red: #a30000;
    --text-dark: #333333;
    --text-light: #777777;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #eaeaea;

    /* Legacy aliases so footer/old code still works */
    --primary-green: #cc0000;
    --accent-green: #e60000;
    --light-green: #fff0f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary-red);
}

.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 24px; color: var(--primary-dark); }
.logo span { color: var(--primary-red); margin-right: 0; font-size: 28px; }

.nav-links { display: flex; gap: 25px; align-items: center; }
.nav-links a { font-weight: 500; color: var(--text-dark); transition: 0.3s; text-decoration: none; }
.nav-links a:hover, .nav-links a.active { color: var(--primary-red); }

/* Dropdown */
.dropdown { position: relative; display: inline-block; }
.dropdown-content { display: none; position: absolute; background-color: white; min-width: 200px; box-shadow: 0px 8px 16px rgba(0,0,0,0.1); z-index: 1001; border-radius: 8px; overflow: hidden; top: 100%; left: 0; border: 1px solid #eee; }
.dropdown-content a { color: var(--text-dark) !important; padding: 12px 20px !important; display: block; border-bottom: 1px solid #f5f5f5; font-size: 14px; }
.dropdown-content a:hover { background-color: var(--bg-light); color: var(--primary-red) !important; }
.dropdown:hover .dropdown-content { display: block; }

/* Search Form */
.search-form { display: flex; align-items: center; background: #f5f5f5; border-radius: 30px; padding: 5px 20px; margin: 0 20px; width: 300px; border: 1px solid transparent; transition: 0.3s; }
.search-form:focus-within { background: white; border-color: var(--primary-red); box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.1); }
.search-form input { border: none; background: transparent; padding: 8px 0; width: 100%; outline: none; font-size: 14px; font-family: inherit; }
.search-form button { border: none; background: transparent; cursor: pointer; color: var(--text-light); font-size: 16px; margin-left: 10px; transition: color 0.2s; }
.search-form button:hover { color: var(--primary-red); }

.header-icons { display: flex; gap: 20px; align-items: center; }
.icon-btn { font-size: 20px; color: var(--text-dark); cursor: pointer; position: relative; transition: color 0.2s; }
.icon-btn:hover { color: var(--primary-red); }
.cart-count { position: absolute; top: -8px; right: -8px; background: var(--primary-red); color: white; font-size: 10px; width: 18px; height: 18px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-weight: bold; }

/* Buttons */
.btn-primary { background: var(--primary-red); color: white; padding: 12px 24px; border-radius: 6px; font-weight: 600; display: inline-flex; align-items: center; gap: 10px; transition: 0.3s; border: none; cursor: pointer; }
.btn-primary:hover { background: var(--dark-red); transform: translateY(-1px); box-shadow: 0 4px 15px rgba(204,0,0,0.3); }
.btn-outline { background: transparent; color: var(--primary-red); padding: 12px 24px; border-radius: 6px; font-weight: 600; border: 2px solid var(--primary-red); display: inline-flex; align-items: center; gap: 10px; transition: 0.3s; cursor: pointer; }
.btn-outline:hover { background: var(--light-red); border-color: var(--dark-red); color: var(--dark-red); }

/* Hero Section */
.hero {
    padding: 0 5% 60px 5%;
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 60%, #ffeaea 100%);
    height: calc(100vh - 75px);
    min-height: 600px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.hero-slider {
    position: relative;
    height: calc(100vh - 75px);
    min-height: 600px;
    overflow: hidden;
}

.hero.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    transition: opacity 1.2s ease-in-out, visibility 1.2s ease-in-out;
}

.hero.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Ken Burns (slow zoom) animation on the background image */
.hero.slide .hero-image {
    transition: transform 6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: scale(1);
}

.hero.slide.active .hero-image {
    transform: scale(1.08);
}

/* Staggered slide-up entry animations for text contents */
.hero.slide .hero-content > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero.slide.active .hero-content > * {
    opacity: 1;
    transform: translateY(0);
}

.hero.slide.active .hero-subtitle { transition-delay: 0.2s; }
.hero.slide.active h1 { transition-delay: 0.4s; }
.hero.slide.active p { transition-delay: 0.6s; }
.hero.slide.active .hero-actions { transition-delay: 0.8s; }
.hero.slide.active .hero-features { transition-delay: 1.0s; }
.hero-content { 
    position: relative; 
    z-index: 2; 
    max-width: 650px;
}
.hero-subtitle { color: var(--primary-red); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 15px; display: flex; align-items: center; gap: 15px;}
.hero-subtitle::after { content: ''; width: 40px; height: 2px; background: var(--primary-red); }
.hero h1 { font-size: 56px; font-weight: 800; color: #1a1a1a; line-height: 1.1; margin-bottom: 15px; }
.hero h1 span { color: var(--primary-red); }
.hero p { color: #444; font-size: 18px; margin-bottom: 30px; max-width: 450px; }
.hero-actions { display: flex; gap: 20px; margin-bottom: 30px;}
.hero-features { display: flex; gap: 30px; font-size: 12px; color: #333; font-weight: 500;}
.hero-feature-item { display: flex; align-items: center; gap: 10px; color: #1a1a1a; }
.hero-feature-icon { width: 40px; height: 40px; background: var(--light-red); color: var(--primary-red); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 18px; }

.mobile-only { display: none !important; }

.hero-image-wrapper { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }

.hero-image { width: 100%; height: 100%; object-fit: cover; }

/* Product Grid */
.section-header { padding: 60px 5% 20px; display: flex; justify-content: space-between; align-items: flex-end; }
.section-title h2 { font-size: 32px; font-weight: 700; color: var(--primary-dark); }
.section-title p { color: var(--text-light); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; padding: 20px 5% 60px; }

.product-card { border: 1px solid var(--border-color); border-radius: 8px; padding: 20px; transition: 0.3s; position: relative; background: white;}
.product-card:hover { box-shadow: 0 10px 30px rgba(204,0,0,0.1); transform: translateY(-5px); border-color: rgba(204,0,0,0.2); }
.product-badge { display: inline-block; padding: 4px 12px; border-radius: 4px; font-size: 11px; font-weight: 700; margin-bottom: 15px; width: fit-content; }
.product-img { width: 100%; height: 200px; object-fit: contain; margin-bottom: 15px; }
.product-title { font-size: 16px; font-weight: 600; color: var(--primary-dark); margin-bottom: 5px; }
.product-rating { color: #f5b301; font-size: 12px; margin-bottom: 10px; }
.product-rating span { color: var(--text-light); margin-left: 5px; }
.product-price { font-size: 20px; font-weight: 700; color: var(--primary-dark); margin-bottom: 15px; }
.product-price del { font-size: 14px; color: var(--text-light); font-weight: 400; margin-left: 10px; }
.btn-cart { width: 100%; text-align: center; justify-content: center; background: white; color: var(--primary-red); border: 1.5px solid var(--primary-red); }
.btn-cart:hover { background: var(--primary-red); color: white; }

/* Product Details */
.product-details { display: flex; gap: 50px; padding: 60px 5%; }
.product-gallery { flex: 1; background: var(--bg-light); border-radius: 12px; padding: 40px; text-align: center; position: relative;}
.product-main-img { max-width: 100%; height: 400px; object-fit: contain; }
.product-info { flex: 1; }
.stock-status { display: inline-block; background: #e8f5e9; color: #2e7d32; padding: 4px 10px; border-radius: 4px; font-size: 12px; font-weight: 600; margin-bottom: 15px;}
.product-info h1 { font-size: 36px; font-weight: 700; color: var(--primary-dark); margin-bottom: 10px; }
.product-desc { color: var(--text-light); margin-bottom: 30px; font-size: 15px;}
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 30px; }
.feature-list li { display: flex; align-items: center; gap: 10px; color: var(--text-dark); font-weight: 500;}
.feature-list i { color: var(--primary-red); }
.action-row { display: flex; gap: 20px; margin-bottom: 30px; align-items: center; }
.qty-input { display: flex; align-items: center; border: 1px solid var(--border-color); border-radius: 6px; overflow: hidden; }
.qty-btn { background: var(--bg-light); border: none; padding: 12px 15px; cursor: pointer; font-weight: bold; transition: background 0.2s; }
.qty-btn:hover { background: var(--light-red); color: var(--primary-red); }
.qty-input input { width: 50px; text-align: center; border: none; font-weight: 600; outline: none; }
.info-bar { display: flex; gap: 30px; border-top: 1px solid var(--border-color); padding-top: 20px; }
.info-item { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.info-item i { font-size: 20px; color: var(--primary-red); }

/* Tabs */
.tabs { display: flex; border-bottom: 1px solid var(--border-color); margin: 40px 5% 20px; }
.tab { padding: 15px 30px; font-weight: 600; color: var(--text-light); cursor: pointer; transition: color 0.2s; }
.tab.active { color: var(--primary-red); border-bottom: 2px solid var(--primary-red); }
.tab:hover:not(.active) { color: var(--primary-dark); }
.tab-content { padding: 0 5% 60px; display: none; }
.tab-content.active { display: block; }

/* Reviews */
.review-form { margin-bottom: 40px; background: var(--bg-light); padding: 30px; border-radius: 8px; }
.review-form input, .review-form textarea { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid var(--border-color); border-radius: 4px; font-family: 'Inter'; transition: border-color 0.2s; }
.review-form input:focus, .review-form textarea:focus { border-color: var(--primary-red); outline: none; box-shadow: 0 0 0 3px rgba(204,0,0,0.1); }
.star-rating { color: #ccc; font-size: 24px; cursor: pointer; margin-bottom: 15px; display: inline-block; direction: rtl;}
.star-rating input { display: none; }
.star-rating label { cursor: pointer; }
.star-rating label:hover, .star-rating label:hover ~ label, .star-rating input:checked ~ label { color: #f5b301; }
.review-list { border-top: 1px solid var(--border-color); padding-top: 20px;}
.review-item { margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 15px;}
.review-header { display: flex; justify-content: space-between; margin-bottom: 5px;}
.review-name { font-weight: 600; }
.review-stars { color: #f5b301; font-size: 14px; }
.review-text { color: var(--text-light); font-size: 14px; }

/* Mobile Menu Defaults */
.mobile-menu-btn { display: none; cursor: pointer; font-size: 20px; color: var(--primary-dark); }
.mobile-sidebar { position: fixed; top: 0; left: -300px; width: 300px; height: 100vh; background: white; z-index: 2000; transition: 0.3s; display: flex; flex-direction: column; overflow-y: auto;}
.mobile-sidebar.open { left: 0; }
.mobile-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1999; display: none; }
.mobile-overlay.open { display: block; }
.mobile-sidebar-header { background: var(--primary-red); padding: 20px; display: flex; justify-content: space-between; align-items: center; }
.close-menu { color: white; font-size: 20px; cursor: pointer; }
.mobile-nav-links { display: flex; flex-direction: column; padding: 20px 0; }
.mobile-nav-links a { padding: 15px 20px; border-bottom: 1px solid #eee; color: var(--primary-dark); font-weight: 500; font-size: 16px; display: flex; align-items: center; gap: 15px; transition: color 0.2s, background 0.2s;}
.mobile-nav-links a:hover { color: var(--primary-red); background: var(--light-red); }
.mobile-nav-links a i { width: 20px; color: var(--text-light); text-align: center; }
.mobile-sidebar-footer { background: var(--primary-red); padding: 20px; margin-top: auto; }

/* Responsive */
@media (max-width: 1024px) {
    .mobile-dropdown-content a { border-bottom: 1px solid rgba(0,0,0,0.05) !important; color: var(--primary-dark) !important; padding: 12px 40px !important; }
    .mobile-dropdown-content a:hover { color: var(--primary-red) !important; background: var(--bg-light) !important; }
    .fa-chevron-down { transition: transform 0.3s ease; }

    header { flex-direction: row; justify-content: space-between; padding: 15px 5%; align-items: center; }
    .logo { width: auto; margin-bottom: 0; font-size: 20px;}
    .logo span { font-size: 22px; margin-right: 5px; }
    .desktop-nav { display: none; }
    .desktop-only { display: none !important; }
    .mobile-only { display: flex !important; }
    .mobile-menu-btn { display: block; }
    .header-icons { width: auto; margin-top: 0; gap: 15px; }
    .search-form { display: none; }
    
    .hero, .hero-slider { padding: 0; text-align: left; background: transparent; position: relative; height: auto !important; min-height: auto !important; aspect-ratio: 16/9; display: flex; align-items: flex-start;}
    .hero-image-wrapper { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; margin-top: 0; }
    .hero-image { width: 100%; height: 100%; object-fit: cover; border-radius: 0; object-position: right center;}
    
    .hero-content { position: relative; z-index: 2; left: auto; bottom: auto; width: 58%; padding: 65px 0 0 4%; margin-bottom: 0; }
    .hero-subtitle { justify-content: flex-start; margin-bottom: 3px; font-size: 7px; color: var(--primary-red); letter-spacing: 1.5px;}
    .hero-subtitle::after { display: block; width: 16px; background: var(--primary-red);}
    .hero h1 { font-size: 16px; text-align: left; margin-bottom: 3px; color: #1a1a1a; line-height: 1.15; }
    .hero h1 span { color: var(--primary-red); }
    .hero p { text-align: left; font-size: 8px; margin: 0 0 6px 0; max-width: 160px; color: #444; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;}
    
    .hero-actions { flex-direction: row; gap: 5px; width: auto; display: flex; }
    .hero-actions a { flex: none; padding: 5px 9px; font-size: 8px; justify-content: center; border-radius: 4px;}
    
    .hero-features.mobile-only { flex-direction: row; flex-wrap: nowrap; justify-content: space-between; gap: 5px; width: 100%; align-items: flex-start; box-shadow: 0 4px 6px rgba(0,0,0,0.05);}
    .hero-features.mobile-only .hero-feature-item { width: 32%; flex-direction: column; text-align: center; gap: 5px; justify-content: center; max-width: none; color: var(--primary-dark);}
    .hero-features.mobile-only .hero-feature-icon { width: 30px; height: 30px; font-size: 12px; background: var(--light-red); color: var(--primary-red); margin: 0 auto;}
    .hero-features.mobile-only .hero-feature-item div:last-child { font-size: 9px; line-height: 1.2; color: var(--text-light);}
    
    .product-details { flex-direction: column; padding: 30px 5%; gap: 30px;}
    .product-info h1 { font-size: 28px; }
    .action-row { flex-direction: column; width: 100%; }
    .action-row .btn { width: 100%; justify-content: center; margin-bottom: 10px; }
    .qty-input { width: 100%; justify-content: center; margin-bottom: 15px;}
    .info-bar { flex-direction: column; gap: 15px; align-items: flex-start; }
    
    .tabs { margin: 20px 5%; flex-wrap: wrap; }
    .tab { padding: 10px 15px; font-size: 14px; width: 50%; text-align: center; }
    
    #tab-reviews > div { flex-direction: column; gap: 30px; }
    
    footer > div { grid-template-columns: 1fr; text-align: center; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 15px; }
    
    /* Shop Page */
    .shop-layout { flex-direction: column !important; padding: 20px 5% !important; }
    .shop-sidebar { width: 100% !important; margin-bottom: 30px; display: flex; overflow-x: auto; white-space: nowrap; gap: 15px;}
    .shop-sidebar h3 { display: none; }
    .shop-sidebar ul { display: flex; gap: 15px; }
    .shop-sidebar li { margin-bottom: 0 !important; }
}

@media (max-width: 480px) {
    .logo { font-size: 18px; }
    .logo span { font-size: 20px; }
    .hero h1 { font-size: 24px; }
    .hero p { font-size: 13px; max-width: 100%; }
    

    .product-grid { grid-template-columns: 1fr; gap: 20px; padding: 20px 4% 60px; }
    .product-card { padding: 15px; }
    .product-img { height: 160px; }
    .product-title { font-size: 15px; }
    .product-price { font-size: 18px; }
    .btn-cart { padding: 10px; font-size: 14px; }
    .btn-primary, .btn-outline { padding: 10px 20px; font-size: 14px; }
    
    /* Product details gallery */
    .product-main-img { max-height: 250px; }
    .product-gallery { padding: 15px; }
    .feature-list { grid-template-columns: 1fr; }
    .info-bar { gap: 10px; }
    
    /* Tabs */
    .tab { padding: 8px 12px; font-size: 13px; }
}

/* Wectomedia footer link styling with red shimmer */
.wectomedia-link {
    background: linear-gradient(
        to right,
        #cc0000 0%,
        #e60000 25%,
        #ff6666 50%,
        #e60000 75%,
        #cc0000 100%
    );
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    animation: redShimmer 3s linear infinite;
    transition: all 0.3s ease;
    filter: drop-shadow(0px 0px 1px rgba(204, 0, 0, 0.5));
}

.wectomedia-link:hover {
    filter: drop-shadow(0px 0px 8px rgba(230, 0, 0, 0.9)) drop-shadow(0px 0px 15px rgba(204, 0, 0, 0.6));
    transform: scale(1.05) translateY(-1px);
}

@keyframes redShimmer {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: -200% center;
    }
}
