/* assets/css/style.css */
:root {
    --dark-blue: #1b263b;
    --black: #111111;
    --steel-grey: #778da9;
    --light-grey: #e0e1dd;
    --orange: #fca311;
    --white: #ffffff;
    --navy-ref: #0d3b66; /* Added for Screenshot 307 reference */
}

body.light-mode {
    background-color: #f8f9fa;
    color: var(--black);
}

body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
    --dark-blue: #0d1117; /* Darker header */
    --light-grey: #2d333b; /* Darker borders */
}

body.dark-mode .bg-light {
    background-color: #1c2128 !important;
}

body.dark-mode .card, 
body.dark-mode .product-card,
body.dark-mode .counter-box,
body.dark-mode .review-card,
body.dark-mode .modal-content,
body.dark-mode .offcanvas {
    background-color: #22272e !important;
    border-color: #444c56;
    color: #fff;
}

body.dark-mode .text-muted {
    color: #8b949e !important;
}

body.dark-mode .form-control,
body.dark-mode .form-select {
    background-color: #0d1117;
    border-color: #30363d;
    color: #c9d1d9;
}

body.dark-mode .navbar {
    background-color: #161b22 !important;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* --- Product Card Enhancements (Reference Screenshot 306/310) --- */
.product-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid #eee;
    position: relative;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
    border-color: transparent;
}

.product-img-wrap {
    overflow: hidden;
    position: relative;
    background-color: #fff;
    padding: 25px;
    height: 250px; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img-wrap img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card:hover .product-img-wrap img {
    transform: scale(1.08);
}

/* Reference Screenshot 306/307: Badge Style */
.discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #e63946; /* Red badge as seen in 307 */
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 3;
}

/* Reference Screenshot 307: The Big Oval Add Button */
.btn-oval-add {
    background-color: var(--navy-ref);
    color: var(--white) !important;
    border: none;
    width: 100%;
    height: 48px;
    border-radius: 50px; /* Forces Oval shape from reference */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 4px 10px rgba(13, 59, 102, 0.2);
}

.btn-oval-add:hover {
    background-color: #144a7a;
    transform: scale(1.02);
}

/* Hierarchy adjustments for Product Info (Ref 306) */
.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.product-category-tag {
    color: #ff6b00; /* Ref Screenshot 306 orange */
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.product-title-main {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--black);
    line-height: 1.3;
}

.product-model-sub {
    color: var(--steel-grey);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

/* Utilities */
.cursor-pointer { cursor: pointer; }
.add-to-cart { position: relative; z-index: 5; }
.text-orange { color: #ff6b00 !important; }

/* --- Floating Cart --- */
.cart-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--orange);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(252, 163, 17, 0.4);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
}

.cart-fab:hover {
    transform: scale(1.1);
    background-color: #e5940e;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--dark-blue);
    color: var(--white);
    font-size: 12px;
    font-weight: bold;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.text-primary { color: var(--orange) !important; }
.bg-primary { background-color: var(--orange) !important; }
.text-dark { color: var(--dark-blue) !important; }
.bg-dark { background-color: var(--dark-blue) !important; }
.section-padding { padding: 80px 0; }

/* --- Navbar --- */
.navbar {
    background-color: var(--dark-blue);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    color: var(--white) !important;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.navbar-brand span { color: var(--orange); }

.nav-link {
    color: var(--light-grey) !important;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin: 0 10px;
    transition: color 0.3s;
}

.nav-link:hover, .nav-link.active { color: var(--orange) !important; }

/* Optimized Hero Section */
.hero-slider .swiper-slide {
    height: 85vh; /* Slightly taller for impact */
    display: flex;
    align-items: center;
    position: relative;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

/* Fix for dimmed images: Lighter Overlay */
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Changed from 0.95 opacity to 0.6 for better visibility */
    background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

/* Smooth Ken Burns Effect */
.hero-slider .swiper-slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    transition: transform 10s ease-out; /* Longer, smoother zoom */
    z-index: 0;
}

.hero-slider .swiper-slide-active::before {
    transform: scale(1.1); /* Subtle zoom */
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease 0.3s;
}

.hero-subtitle {
    font-size: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.5s;
}

.swiper-slide-active .hero-title,
.swiper-slide-active .hero-subtitle {
    opacity: 1;
    transform: translateY(0);
}

.btn-custom {
    background-color: var(--orange);
    color: var(--white);
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    border: none;
    transition: all 0.3s;
}

.btn-outline-custom {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 10px 30px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s;
}

/* --- Brand Tabs --- */
.brand-tabs {
    background: var(--white);
    padding: 20px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.brand-tab-item {
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    color: var(--steel-grey);
    transition: all 0.3s;
}

.brand-tab-item:hover, .brand-tab-item.active {
    background: var(--orange);
    color: var(--white);
}

/* --- Cart Offcanvas (Ref: Screenshot 304) --- */
.offcanvas-body #cartItemsContainer .cart-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
}

.offcanvas-body #cartItemsContainer .cart-item img {
    width: 65px;
    height: 65px;
    object-fit: contain;
    margin-right: 15px;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
}

/* --- Counters & Reviews --- */
.counter-box {
    text-align: center;
    padding: 30px;
    background: var(--dark-blue);
    color: var(--white);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.review-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin: 15px;
}

/* --- Footer --- */
footer {
    background: var(--black);
    color: var(--light-grey);
    padding: 80px 0 30px;
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #222;
    text-align: center;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .brand-tabs {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
    }
}