/*
Theme Name: iDeaLSunucu starter
Theme URI: https://idealsunucu.com.tr
Author: iDeaLSunucu
Author URI: https://idealsunucu.com.tr
Description: Professional WooCommerce E-Commerce Theme
Version: 3.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: starter
Tags: woocommerce, e-commerce, custom-colors, custom-logo
WC requires at least: 7.0
WC tested up to: 8.4
*/

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    --primary: #e53935;
    --primary-hover: #c62828;
    --secondary: #1a1a2e;
    --accent: #ffc107;
    --success: #4caf50;
    --danger: #f44336;
    --text: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --bg: #f5f5f5;
    --bg-alt: #ffffff;
    --border: #e0e0e0;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: 0.3s ease;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

img, video, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

button {
    cursor: pointer;
    font: inherit;
    border: none;
    background: none;
}

input, select, textarea {
    font: inherit;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    outline: none;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--secondary);
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--bg-alt);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-sm { padding: 10px 20px; font-size: 13px; }
.btn-lg { padding: 18px 36px; font-size: 16px; }
.btn-block { width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    background: var(--bg-alt);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

/* Top Bar */
.header-top {
    background: var(--primary);
    color: #fff;
    padding: 8px 0;
    font-size: 13px;
}

.header-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top-left,
.header-top-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-top a {
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-top a:hover {
    opacity: 0.9;
}

.header-top-feature {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Header Main */
.header-main {
    padding: 16px 0;
}

.header-main-inner {
    display: flex;
    align-items: center;
    gap: 40px;
}

/* Logo */
.site-logo a {
    display: flex;
    align-items: center;
}

.site-logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 28px;
    font-weight: 800;
    color: var(--secondary);
}

.logo-text span {
    color: var(--primary);
}

/* Search */
.header-search {
    flex: 1;
    max-width: 500px;
}

.search-form {
    display: flex;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.search-form:focus-within {
    border-color: var(--primary);
}

.search-input {
    flex: 1;
    border: none;
    padding: 14px 20px;
    font-size: 15px;
}

.search-input:focus {
    box-shadow: none;
}

.search-btn {
    background: var(--primary);
    color: #fff;
    padding: 14px 24px;
    transition: var(--transition);
}

.search-btn:hover {
    background: var(--primary-hover);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 16px;
    border-radius: var(--radius);
    color: var(--text);
    position: relative;
    transition: var(--transition);
}

.header-action:hover {
    background: var(--bg);
    color: var(--primary);
}

.header-action svg {
    width: 24px;
    height: 24px;
}

.header-action-label {
    font-size: 11px;
    font-weight: 500;
}

.header-action-badge {
    position: absolute;
    top: 4px;
    right: 10px;
    min-width: 18px;
    height: 18px;
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border-radius: var(--radius);
}

/* Navigation */
.header-nav {
    background: var(--secondary);
}

.header-nav-inner {
    display: flex;
    align-items: center;
}

/* Categories Button */
.categories-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: #fff;
    padding: 16px 24px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.categories-btn:hover {
    background: var(--primary-hover);
}

/* Categories Dropdown */
.categories-dropdown {
    position: relative;
}

.categories-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 280px;
    background: var(--bg-alt);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.categories-dropdown:hover .categories-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.categories-menu a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.categories-menu a:last-child {
    border-bottom: none;
}

.categories-menu a:hover {
    background: var(--bg);
    color: var(--primary);
    padding-left: 24px;
}

.categories-menu .cat-count {
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg);
    padding: 2px 10px;
    border-radius: 50px;
}

/* Main Menu */
.main-menu {
    display: flex;
    align-items: center;
}

.main-menu > li > a {
    display: block;
    padding: 16px 20px;
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
}

.main-menu > li > a:hover,
.main-menu > li.current-menu-item > a {
    background: rgba(255,255,255,0.1);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #fff;
    padding: 80px 0;
    position: relative;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #fff;
}

.hero-desc {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-btn-white {
    background: #fff;
    color: var(--primary);
    padding: 16px 32px;
    font-weight: 700;
}

.hero-btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.hero-btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
    padding: 14px 30px;
}

.hero-btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.hero-stat-value {
    display: block;
    font-size: 32px;
    font-weight: 800;
}

.hero-stat-label {
    font-size: 14px;
    opacity: 0.8;
}

.hero-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   Features
   ========================================================================== */
.features {
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-alt);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.feature-text {
    font-size: 13px;
    color: var(--text-light);
}

/* ==========================================================================
   Products Section
   ========================================================================== */
.products-section {
    padding: 80px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

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

.section-link {
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.section-link:hover {
    gap: 10px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Product Card */
.product-card {
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-thumb {
    position: relative;
    aspect-ratio: 1;
    background: var(--bg);
    overflow: hidden;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.4s ease;
}

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

/* Product Badges */
.product-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-sale { background: var(--danger); color: #fff; }
.badge-new { background: var(--primary); color: #fff; }
.badge-featured { background: var(--accent); color: var(--secondary); }
.badge-stock { background: #e8f5e9; color: #2e7d32; }
.badge-outstock { background: #ffebee; color: #c62828; }

/* Product Actions */
.product-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition);
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.product-action-btn {
    width: 40px;
    height: 40px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-action-btn:hover {
    background: var(--primary);
    color: #fff;
}

/* Product Content */
.product-content {
    padding: 20px;
}

.product-category {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.product-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
    min-height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title a {
    color: var(--secondary);
}

.product-title a:hover {
    color: var(--primary);
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 16px;
}

.price-current {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
}

.price-old {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.product-add-btn:hover {
    background: var(--secondary);
}

/* ==========================================================================
   Shop Page
   ========================================================================== */
.shop-page {
    padding-bottom: 80px;
}

.shop-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    padding: 48px 0;
    color: #fff;
    margin-bottom: 40px;
}

.shop-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 12px;
}

.shop-breadcrumb a {
    color: rgba(255,255,255,0.8);
}

.shop-breadcrumb a:hover {
    color: #fff;
}

.shop-title {
    font-size: 36px;
    color: #fff;
    margin-bottom: 8px;
}

.shop-count {
    font-size: 15px;
    opacity: 0.9;
}

/* Shop Layout */
.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
}

/* Sidebar */
.shop-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.widget-title {
    font-size: 16px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bg);
}

.widget-list a {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    color: var(--text);
    border-radius: var(--radius);
    margin-bottom: 4px;
    transition: var(--transition);
}

.widget-list a:hover,
.widget-list a.active {
    background: rgba(229, 57, 53, 0.08);
    color: var(--primary);
}

.widget-list .count {
    font-size: 12px;
    color: var(--text-muted);
}

/* Toolbar */
.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-alt);
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.filter-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg);
    border-radius: var(--radius);
    font-weight: 600;
}

.sort-select {
    min-width: 200px;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    font-weight: 600;
    color: var(--text);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.pagination a:hover,
.pagination .current {
    background: var(--primary);
    color: #fff;
}

/* ==========================================================================
   Single Product
   ========================================================================== */
.single-product-page {
    padding-bottom: 80px;
}

.product-breadcrumb-wrap {
    background: var(--bg-alt);
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 40px;
}

.product-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

/* Gallery */
.product-gallery {
    display: flex;
    gap: 16px;
}

.gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 80px;
}

.gallery-thumb {
    width: 72px;
    height: 72px;
    padding: 8px;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: var(--primary);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-main {
    flex: 1;
    position: relative;
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
}

.gallery-slide {
    display: none;
    aspect-ratio: 1;
    padding: 32px;
}

.gallery-slide.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: var(--bg-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    opacity: 0;
    transition: var(--transition);
}

.gallery-main:hover .gallery-nav {
    opacity: 1;
}

.gallery-nav:hover {
    background: var(--primary);
    color: #fff;
}

.gallery-nav.prev { left: 16px; }
.gallery-nav.next { right: 16px; }

/* Product Info */
.product-info-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.product-info-title {
    font-size: 28px;
    margin-bottom: 16px;
}

.product-info-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
}

.product-info-price del {
    font-size: 18px;
    color: var(--text-muted);
    margin-left: 12px;
}

.product-short-desc {
    color: var(--text-light);
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
    line-height: 1.7;
}

.product-meta-row {
    display: flex;
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
}

.product-meta-row strong {
    min-width: 100px;
    color: var(--text-light);
}

/* Add to Cart */
.product-add-form {
    display: flex;
    gap: 12px;
    margin: 24px 0;
}

.qty-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg);
    border-radius: var(--radius);
}

.qty-btn {
    width: 48px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-light);
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--border);
    color: var(--primary);
}

.qty-input {
    width: 60px;
    height: 52px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 600;
}

.add-to-cart-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 52px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 700;
    transition: var(--transition);
}

.add-to-cart-btn:hover {
    background: var(--secondary);
}

/* Trust Badges */
.product-trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 24px;
    background: var(--bg);
    border-radius: var(--radius);
    margin: 24px 0;
}

.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.trust-item svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
    flex-shrink: 0;
}

.trust-item strong {
    display: block;
    font-size: 13px;
    margin-bottom: 2px;
}

.trust-item span {
    font-size: 11px;
    color: var(--text-light);
}

/* WhatsApp Button */
.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    background: #25D366;
    color: #fff;
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    background: #22c55e;
    transform: translateY(-2px);
}

/* Tabs */
.product-tabs {
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.tabs-nav {
    display: flex;
    background: var(--bg);
    padding: 8px;
    gap: 4px;
}

.tab-btn {
    flex: 1;
    padding: 14px 24px;
    background: transparent;
    color: var(--text-light);
    font-weight: 600;
    border-radius: var(--radius);
    transition: var(--transition);
    text-align: center;
}

.tab-btn:hover {
    color: var(--text);
}

.tab-btn.active {
    background: var(--bg-alt);
    color: var(--primary);
    box-shadow: var(--shadow);
}

.tab-panel {
    display: none;
    padding: 32px;
}

.tab-panel.active {
    display: block;
}

/* ==========================================================================
   Cart Page
   ========================================================================== */
.cart-page {
    padding: 40px 0 80px;
}

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

.cart-header h1 {
    font-size: 32px;
    margin-bottom: 8px;
}

.cart-empty {
    text-align: center;
    padding: 80px 40px;
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    max-width: 500px;
    margin: 0 auto;
}

.cart-empty h2 {
    font-size: 24px;
    margin: 20px 0 12px;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
}

.cart-items {
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto;
    gap: 20px;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.cart-item-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.cart-item-price {
    color: var(--primary);
    font-weight: 600;
}

.cart-item-subtotal {
    font-size: 18px;
    font-weight: 700;
}

.cart-item-remove {
    position: absolute;
    top: 24px;
    right: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border-radius: var(--radius);
    transition: var(--transition);
}

.cart-item-remove:hover {
    background: #ffebee;
    color: var(--danger);
}

.cart-summary {
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.cart-summary h2 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--bg);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.summary-row.total {
    font-size: 20px;
    font-weight: 700;
    padding-top: 16px;
    margin-top: 8px;
    border-top: 2px solid var(--bg);
    border-bottom: none;
}

.checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 700;
    margin-top: 20px;
    transition: var(--transition);
}

.checkout-btn:hover {
    background: var(--secondary);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--secondary);
    color: #fff;
}

.footer-main {
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
}

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

.footer-logo-text {
    font-size: 24px;
    font-weight: 800;
}

.footer-desc {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

.footer-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.footer-links a {
    display: block;
    padding: 8px 0;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #fff;
    padding-left: 8px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.footer-contact-item svg {
    width: 18px;
    height: 18px;
    opacity: 0.7;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* ==========================================================================
   WhatsApp Float
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

/* ==========================================================================
   Mobile Menu
   ========================================================================== */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100vh;
    background: var(--bg-alt);
    z-index: 10001;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.open {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-content {
    padding: 20px;
}

.mobile-nav a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-weight: 500;
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-image { display: none; }
    .shop-layout { grid-template-columns: 1fr; }
    .shop-sidebar {
        position: fixed;
        top: 0;
        left: -320px;
        width: 320px;
        height: 100vh;
        background: var(--bg-alt);
        z-index: 1000;
        padding: 20px;
        overflow-y: auto;
        transition: left 0.3s ease;
    }
    .shop-sidebar.open { left: 0; }
    .filter-toggle { display: flex; }
    .product-main { grid-template-columns: 1fr; }
    .cart-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
}

@media (max-width: 768px) {
    .header-top-right { display: none; }
    .header-search { display: none; }
    .header-action-label { display: none; }
    .mobile-toggle { display: flex; }
    .header-nav { display: none; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .features-grid { grid-template-columns: 1fr; }
    .product-gallery { flex-direction: column-reverse; }
    .gallery-thumbs { flex-direction: row; width: 100%; overflow-x: auto; }
    .product-trust { grid-template-columns: 1fr; }
    .cart-item { grid-template-columns: 80px 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; }
    .product-add-form { flex-direction: column; }
}
