/* ========================================
   Bootstrap + CSS Only
   ======================================== */

/* CSS Variables */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --accent-color: #ffc107;
    --success-color: #198754;
    --danger-color: #dc3545;
    --info-color: #0dcaf0;
    --transition-speed: 0.3s;
}

/* ========================================
   GENERAL STYLES
   ======================================== */

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

html {
    scroll-behavior: smooth;
}

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

/* ========================================
   NAVIGATION - CSS ONLY MOBILE MENU
   ======================================== */

.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(33, 37, 41, 0.98) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.navbar-brand {
    font-size: 1.5rem;
    transition: color var(--transition-speed);
}

.navbar-brand:hover {
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color var(--transition-speed);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: all var(--transition-speed);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.navbar .btn-outline-light {
    border-width: 2px;
    transition: all var(--transition-speed);
}

.navbar .btn-outline-light:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.navbar .badge {
    font-size: 0.65rem;
    padding: 0.35em 0.5em;
}

/* CSS-Only Mobile Menu - Checkbox Hack */
.menu-toggle {
    display: none;
}

.navbar-toggler {
    cursor: pointer;
    padding: 0.25rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.375rem;
    background-color: transparent;
}

.navbar-toggler:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

/* Desktop: Always show menu, hide hamburger */
@media (min-width: 992px) {
    .navbar-toggler {
        display: none;
    }
    
    .navbar-menu {
        display: flex !important;
        flex-basis: auto;
        flex-grow: 1;
        align-items: center;
    }
    
    .navbar-nav {
        flex-direction: row;
        display: flex;
        margin-bottom: 0 !important;
    }
    
    .nav-item {
        margin-left: 0.5rem;
    }
}

/* Mobile: Toggle menu with checkbox */
@media (max-width: 991.98px) {
    .navbar-menu {
        display: none;
        width: 100%;
        padding-top: 1rem;
    }
    
    .navbar-nav {
        flex-direction: column;
        padding-left: 0;
        list-style: none;
    }
    
    .nav-item {
        margin-bottom: 0.5rem;
    }
    
    .navbar .input-group {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    /* Show menu when checkbox is checked */
    .menu-toggle:checked ~ .navbar-menu {
        display: block;
    }
    
    /* Hamburger animation */
    .menu-toggle:checked + .navbar-toggler .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M6 6L24 24M6 24L24 6'/%3e%3c/svg%3e");
    }
}

/* ========================================
   HERO CAROUSEL - CSS ONLY INTERACTIVE
   ======================================== */

.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
    padding-top: 76px;
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Hide radio buttons */
.carousel-radio {
    display: none;
}

.carousel-track {
    display: flex;
    width: 600%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    width: 16.666%;
    flex-shrink: 0;
}

/* Slide Transitions based on radio button state */
#slide1:checked ~ .carousel-track {
    transform: translateX(0);
}

#slide2:checked ~ .carousel-track {
    transform: translateX(-16.666%);
}

#slide3:checked ~ .carousel-track {
    transform: translateX(-33.333%);
}

#slide4:checked ~ .carousel-track {
    transform: translateX(-50%);
}

#slide5:checked ~ .carousel-track {
    transform: translateX(-66.666%);
}

#slide6:checked ~ .carousel-track {
    transform: translateX(-83.333%);
}

/* Manual navigation only - no auto-scroll */
/* Smooth slide transitions handled by .carousel-track transition property */

/* Navigation Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all var(--transition-speed);
    font-size: 1.5rem;
    color: var(--primary-color);
}

.carousel-arrow:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.3);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* Hide all arrows by default */
.carousel-arrow {
    display: none;
}

/* Show correct arrows for each slide */
#slide1:checked ~ .arrow-slide1 {
    display: flex;
}

#slide2:checked ~ .arrow-slide2 {
    display: flex;
}

#slide3:checked ~ .arrow-slide3 {
    display: flex;
}

#slide4:checked ~ .arrow-slide4 {
    display: flex;
}

#slide5:checked ~ .arrow-slide5 {
    display: flex;
}

#slide6:checked ~ .arrow-slide6 {
    display: flex;
}

/* Carousel Indicators */
.carousel-indicators-custom {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(13, 110, 253, 0.3);
    cursor: pointer;
    transition: all var(--transition-speed);
    border: 2px solid transparent;
}

.indicator:hover {
    background-color: rgba(13, 110, 253, 0.6);
    transform: scale(1.2);
}

/* Active indicator based on radio state */
#slide1:checked ~ .carousel-indicators-custom .indicator[for="slide1"],
#slide2:checked ~ .carousel-indicators-custom .indicator[for="slide2"],
#slide3:checked ~ .carousel-indicators-custom .indicator[for="slide3"],
#slide4:checked ~ .carousel-indicators-custom .indicator[for="slide4"],
#slide5:checked ~ .carousel-indicators-custom .indicator[for="slide5"],
#slide6:checked ~ .carousel-indicators-custom .indicator[for="slide6"] {
    background-color: var(--primary-color);
    width: 30px;
    border-radius: 6px;
    border-color: white;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.4);
}

/* Indicators show active state based on checked radio - no auto animation */

/* Hero Shapes */
.hero-shape {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a58ca 100%);
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
}

.hero-shape-2 {
    background: linear-gradient(135deg, #198754 0%, #146c43 100%);
}

.hero-shape-3 {
    background: linear-gradient(135deg, #ffc107 0%, #cc9a06 100%);
}

.hero-shape-4 {
    background: linear-gradient(135deg, var(--info-color) 0%, #0aa2c0 100%);
}

.hero-shape-5 {
    background: linear-gradient(135deg, var(--danger-color) 0%, #b02a37 100%);
}

.hero-shape-6 {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #495057 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-image {
    position: relative;
    z-index: 1;
}

.hero-image img {
    object-fit: cover;
    transition: transform var(--transition-speed);
}

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

.floating-card {
    position: absolute;
    bottom: 30px;
    left: -30px;
    animation: float 3s ease-in-out infinite;
    z-index: 2;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Trust Badges */
.trust-badges {
    background: white;
    padding: 2rem 0;
    border-top: 1px solid #e9ecef;
}

.trust-badges i {
    transition: transform var(--transition-speed);
}

.trust-badges > .container > .row > div:hover i {
    transform: translateY(-3px);
}

/* ========================================
   FEATURES BAR
   ======================================== */

.features-bar {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a58ca 100%);
}

.features-bar i {
    transition: transform var(--transition-speed);
}

.features-bar .col-6:hover i {
    transform: translateY(-5px);
}

/* ========================================
   CATEGORIES SECTION
   ======================================== */

.categories-section {
    padding: 5rem 0;
}

.category-card {
    display: block;
}

.category-hover {
    transition: all var(--transition-speed);
    cursor: pointer;
}

.category-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.category-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1) 0%, rgba(13, 110, 253, 0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all var(--transition-speed);
}

.category-hover:hover .category-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a58ca 100%);
}

.category-hover:hover .category-icon i {
    color: white !important;
}

/* ========================================
   PRODUCTS SECTION
   ======================================== */

.products-section {
    padding: 5rem 0;
}

.product-card {
    transition: all var(--transition-speed);
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

.product-image {
    height: 250px;
    object-fit: cover;
    transition: transform var(--transition-speed);
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    transition: bottom var(--transition-speed);
    display: flex;
    justify-content: center;
}

.product-card:hover .product-overlay {
    bottom: 0;
}

/* ========================================
   OFFERS SECTION
   ======================================== */

.offers-section {
    padding: 3rem 0;
}

.offer-card {
    transition: transform var(--transition-speed);
}

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

.offer-bg-icon {
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 150px;
    opacity: 0.1;
    line-height: 1;
}

/* ========================================
   NEWSLETTER SECTION
   ======================================== */

.newsletter-section {
    padding: 4rem 0;
}

.newsletter-section .form-control {
    border: 2px solid transparent;
    transition: border-color var(--transition-speed);
}

.newsletter-section .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    padding: 4rem 0 2rem;
}

.footer a {
    transition: color var(--transition-speed);
}

.footer a:hover {
    color: var(--primary-color) !important;
}

/* Social Links with SVG Icons */
.social-links {
    display: flex;
    gap: 0.5rem;
}

.social-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
}

.social-icon {
    width: 20px;
    height: 20px;
    fill: transparent;
    stroke: rgba(255, 255, 255, 0.7);
    stroke-width: 1.5;
    transition: all var(--transition-speed);
}

/* Hover effect - Show SVG logo with blue background */
.social-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.4);
}

.social-btn:hover .social-icon {
    fill: white;
    stroke: white;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    font-weight: 500;
    transition: all var(--transition-speed);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a58ca 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0b5ed7 0%, #094db1 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.2);
}

.btn-lg {
    padding: 0.75rem 2rem;
}

/* ========================================
   CARDS
   ======================================== */

.card {
    border-radius: 1rem;
    overflow: hidden;
}

/* ========================================
   BADGES
   ======================================== */

.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
}

/* ========================================
   FORMS
   ======================================== */

.form-control {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
}

.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575.98px) {
    .hero-section {
        min-height: auto;
        padding: 0;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-content .lead {
        font-size: 1rem;
    }
    
    .floating-card {
        display: none;
    }
    
    .hero-shape {
        width: 200px;
        height: 200px;
    }
    
    .carousel-indicators-custom {
        bottom: 15px;
        gap: 6px;
    }
    
    .indicator {
        width: 8px;
        height: 8px;
    }
    
    #slide1:checked ~ .carousel-indicators-custom .indicator[for="slide1"],
    #slide2:checked ~ .carousel-indicators-custom .indicator[for="slide2"],
    #slide3:checked ~ .carousel-indicators-custom .indicator[for="slide3"],
    #slide4:checked ~ .carousel-indicators-custom .indicator[for="slide4"],
    #slide5:checked ~ .carousel-indicators-custom .indicator[for="slide5"],
    #slide6:checked ~ .carousel-indicators-custom .indicator[for="slide6"] {
        width: 20px;
    }
    
    .carousel-arrow {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    .trust-badges {
        padding: 1.5rem 0;
    }
    
    .trust-badges .col-6 {
        margin-bottom: 1rem;
    }
    
    .trust-badges i {
        font-size: 1.5rem !important;
    }
    
    .features-bar i {
        font-size: 1.5rem !important;
    }
    
    .features-bar small {
        font-size: 0.7rem;
    }
    
    .category-hover {
        padding: 1.5rem 1rem !important;
    }
    
    .category-icon {
        width: 50px;
        height: 50px;
    }
    
    .category-icon i {
        font-size: 1.5rem !important;
    }
    
    .product-image {
        height: 180px;
    }
    
    .offer-card {
        padding: 2rem !important;
    }
    
    .offer-bg-icon {
        font-size: 80px;
    }
}

/* Small Devices (Landscape Phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-content h1 {
        font-size: 2.25rem;
    }
    
    .floating-card {
        display: none;
    }
    
    .product-image {
        height: 200px;
    }
    
    .trust-badges .col-6 {
        margin-bottom: 0;
    }
    
    .carousel-arrow {
        width: 40px;
        height: 40px;
    }
}

/* Medium Devices (Tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .floating-card {
        left: -10px;
        bottom: 20px;
        padding: 0.75rem !important;
    }
    
    .floating-card p {
        font-size: 0.875rem;
    }
    
    .product-image {
        height: 220px;
    }
    
    .navbar .input-group {
        width: 200px;
    }
    
    .carousel-arrow {
        width: 44px;
        height: 44px;
    }
}

/* Large Devices (Desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .navbar .input-group {
        width: 250px;
    }
    
    .product-image {
        height: 230px;
    }
}

/* Extra Large Devices (Large Desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.tracking-wide {
    letter-spacing: 0.1em;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a58ca 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .navbar,
    .features-bar,
    .newsletter-section,
    .footer {
        display: none;
    }
    
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .carousel-arrow,
    .carousel-indicators-custom {
        display: none !important;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .carousel-track {
        animation: none !important;
    }
    
    .indicator {
        animation: none !important;
    }
    
    .floating-card {
        animation: none !important;
    }
}

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* ========================================
   DARK MODE SUPPORT (Optional)
   ======================================== */

@media (prefers-color-scheme: dark) {
    /* Uncomment to enable dark mode
    .hero-section {
        background: linear-gradient(135deg, #1a1d20 0%, #212529 100%);
    }
    
    .products-section,
    .newsletter-section {
        background-color: #1a1d20 !important;
    }
    */
}

/* ========================================
   TOUCH DEVICE OPTIMIZATIONS
   ======================================== */

@media (hover: none) and (pointer: coarse) {
    /* Make arrows larger for touch */
    .carousel-arrow {
        width: 48px;
        height: 48px;
    }
}
