/* ============================================
   DSTYLE HUB - MAIN STYLESHEET (RESPONSIVE FIX)
   ============================================ */

:root {
    --orange: #E86A2B;
    --orange-dark: #D4551A;
    --gold: #D4AF37;
    --gold-light: #F0D98C;
    --white: #ffffff;
    --off-white: #FCF9F6;
    --dark: #1E1E1E;
    --grey: #6B6B6B;
    --light-grey: #F4F1ED;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
}

/* Dark Mode Variables */
body.dark-mode {
    --white: #1a1a1a;
    --off-white: #2a2a2a;
    --dark: #f5f5f5;
    --grey: #b0b0b0;
    --light-grey: #333333;
    background: #121212;
    color: #f5f5f5;
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--white);
    color: var(--dark);
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
    width: 100%;
    overflow-x: hidden; /* PREVENT HORIZONTAL SCROLL */
}

main {
    flex: 1;
    width: 100%;
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
    background: rgba(255,255,255,0.98);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
    border-bottom: 3px solid var(--orange);
    width: 100%;
}

body.dark-mode .navbar {
    background: rgba(30,30,30,0.98);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo img {
    height: 40px;
    width: auto;
    max-width: 140px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--dark);
    cursor: pointer;
    transition: 0.3s;
    padding: 8px;
    border-radius: 50%;
}

.toolbar {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 6px 10px;
    background: var(--light-grey);
    border-radius: 50px;
    overflow-x: auto;
    max-width: 100%;
    white-space: nowrap;
}

.toolbar-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.85rem;
    transition: 0.3s;
    padding: 8px 10px;
    border-radius: 50px;
    white-space: nowrap;
}

.toolbar-link:hover,
.toolbar-link.active {
    background: var(--orange);
    color: white;
}

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--orange);
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;
}

/* ============================================
   HERO SLIDER
   ============================================ */

.hero-slider {
    position: relative;
    height: 60vh;
    min-height: 300px;
    max-height: 600px;
    overflow: hidden;
    width: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30,30,30,0.8), rgba(30,30,30,0.4));
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20% 20px 0;
    color: white;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

.btn-shop {
    display: inline-block;
    background: var(--orange);
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: 0.3s;
}

.btn-shop:hover {
    background: var(--gold);
    transform: translateY(-2px);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 3;
}

.slider-arrow.prev {
    left: 10px;
}

.slider-arrow.next {
    right: 10px;
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background: var(--gold);
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-header {
    text-align: center;
    padding: 40px 20px 20px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
}

/* ============================================
   PRODUCT CAROUSEL
   ============================================ */

.product-carousel {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 20px 15px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.product-carousel::-webkit-scrollbar {
    height: 6px;
}

/* ============================================
   PRODUCT GRID & CARDS
   ============================================ */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    padding: 20px 15px;
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--light-grey);
}

.product-info {
    padding: 12px;
}

.product-info h3 {
    font-size: 0.9rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--orange);
    margin-bottom: 10px;
}

.product-sizes {
    font-size: 0.75rem;
    color: var(--grey);
    margin-bottom: 10px;
}

.btn-order {
    width: 100%;
    background: var(--gold);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    text-align: center;
    display: block;
}

.btn-order:hover {
    background: var(--orange);
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px 15px;
    background: var(--off-white);
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
}

.service-item {
    text-align: center;
    padding: 20px;
}

.service-item i {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 15px;
}

.service-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--orange);
}

.service-item p {
    color: var(--grey);
    font-size: 0.95rem;
}

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

footer {
    margin-top: auto;
    background: #1C1C1C;
    color: white;
    padding: 40px 0 15px;
    width: 100%;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    width: 100%;
}

.footer-col h4 {
    color: var(--gold);
    margin-bottom: 15px;
    font-size: 1rem;
    text-transform: uppercase;
}

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

.social-links a {
    width: 35px;
    height: 35px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--orange);
}

.footer-col p {
    color: #999;
    font-size: 0.9rem;
}

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

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-bottom {
    max-width: 1300px;
    margin: 30px auto 0;
    padding: 15px;
    border-top: 1px solid #333;
    text-align: center;
    color: #888;
    font-size: 0.85rem;
    width: 100%;
}

/* ============================================
   CART PAGE STYLES
   ============================================ */

.cart-page {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px 15px;
    min-height: 60vh;
    width: 100%;
}

.cart-header {
    text-align: center;
    margin-bottom: 30px;
}

.cart-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
}

.cart-items {
    background: var(--white);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    width: 100%;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #eee;
    position: relative;
    width: 100%;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

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

.cart-item-info h3 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.quantity-control {
    display: inline-flex;
    align-items: center;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    width: 30px;
    height: 30px;
    background: var(--white);
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
}

.qty-display {
    width: 35px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 5px 0;
}

.remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: var(--grey);
    font-size: 1rem;
    cursor: pointer;
}

.cart-summary {
    background: var(--white);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    width: 100%;
}

.btn-checkout {
    display: block;
    width: 100%;
    padding: 15px;
    background: var(--orange);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    margin-bottom: 15px;
}

.btn-continue {
    display: block;
    width: 100%;
    padding: 15px;
    background: transparent;
    color: var(--dark);
    border: 2px solid var(--orange);
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.empty-cart {
    text-align: center;
    padding: 40px 20px;
}

.empty-cart i {
    font-size: 4rem;
    color: var(--light-grey);
    margin-bottom: 15px;
}

/* ============================================
   CHECKOUT PAGE
   ============================================ */

.checkout-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 15px;
    min-height: 60vh;
    width: 100%;
}

.checkout-form {
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    width: 100%;
}

.form-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.form-group {
    margin-bottom: 15px;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background: var(--white);
    color: var(--dark);
}

.payment-methods {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 15px;
}

.payment-method {
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    text-align: center;
    transition: 0.3s;
}

.payment-method:hover,
.payment-method.selected {
    border-color: var(--orange);
    background: rgba(232,106,43,0.1);
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--orange);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Tablets (768px and up) */
@media (min-width: 768px) {
    .nav-container {
        padding: 0 24px;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
        padding: 30px 24px;
    }
    
    .product-image {
        height: 250px;
    }
    
    .services-section {
        grid-template-columns: repeat(3, 1fr);
        padding: 60px 24px;
    }
    
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 24px;
    }
    
    .cart-layout {
        grid-template-columns: 2fr 1fr;
    }
    
    .payment-methods {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
    .nav-container {
        max-width: 1300px;
        padding: 0 30px;
    }
    
    .hero-slider {
        height: 80vh;
        min-height: 500px;
    }
    
    .hero-content {
        padding-top: 25vh;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 30px;
        padding: 40px 30px;
    }
    
    .product-image {
        height: 300px;
    }
    
    .product-info h3 {
        font-size: 1.1rem;
    }
    
    .product-price {
        font-size: 1.3rem;
    }
    
    .services-section {
        padding: 80px 30px;
    }
    
    .footer-container {
        grid-template-columns: repeat(4, 1fr);
        padding: 0 30px;
    }
    
    .cart-layout {
        gap: 30px;
    }
}

/* Prevent horizontal scroll on all devices */
img,
video {
    max-width: 100%;
    height: auto;
}

/* Mobile specific fixes */
@media (max-width: 480px) {
    .navbar {
        padding: 8px 0;
    }
    
    .nav-container {
        padding: 0 10px;
    }
    
    .logo img {
        height: 35px;
    }
    
    .toolbar {
        padding: 5px 8px;
        gap: 0;
    }
    
    .toolbar-link {
        font-size: 0.8rem;
        padding: 6px 8px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 15px 10px;
    }
    
    .product-image {
        height: 160px;
    }
    
    .product-info {
        padding: 10px;
    }
    
    .product-info h3 {
        font-size: 0.8rem;
        margin-bottom: 5px;
    }
    
    .product-price {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .product-sizes {
        font-size: 0.7rem;
        margin-bottom: 8px;
    }
    
    .btn-order {
        padding: 8px;
        font-size: 0.8rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.2rem;
    }
    
    .btn-shop {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .cart-item {
        padding: 10px;
        gap: 10px;
    }
    
    .cart-item-image {
        width: 60px;
        height: 60px;
    }
    
    .cart-item-info h3 {
        font-size: 0.85rem;
    }
}
