/* ============================================================
   CicekScript - Ana Stil Dosyası v2.0
   Modern, Responsive E-Ticaret Tasarımı
   ============================================================ */

/* ============================================================
   1. CSS DEĞİŞKENLERİ & RESET
   ============================================================ */
:root {
    --primary: #2d6a4f;
    --primary-dark: #1b4332;
    --primary-light: #40916c;
    --primary-rgb: 45, 106, 79;
    --secondary: #f4a261;
    --accent: #e76f51;
    --success: #52b788;
    --warning: #e9c46a;
    --danger: #e63946;
    --info: #48cae4;
    --light: #f8f9fa;
    --dark: #1d3557;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --gray-dark: #495057;
    --body-bg: #ffffff;
    --text-color: #333333;
    --text-muted: #6c757d;
    --border-color: #e9ecef;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50%;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    --header-height: 70px;
    --navbar-height: 50px;
    --topbar-height: 36px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--body-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

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

/* ============================================================
   2. TOP BAR
   ============================================================ */
.top-bar {
    background: var(--dark);
    color: rgba(255,255,255,0.9);
    font-size: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.top-bar a {
    color: rgba(255,255,255,0.85);
    margin-left: 16px;
    font-size: 12px;
    transition: var(--transition-fast);
}

.top-bar a:hover {
    color: var(--secondary);
}

.top-bar i {
    font-size: 11px;
}

/* ============================================================
   3. HEADER
   ============================================================ */
.header-main {
    background: #fff;
    padding: 16px 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-main .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-main.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    height: 45px;
    width: auto;
    transition: var(--transition);
}

.logo h1 {
    font-size: 22px;
    margin: 0;
    color: var(--primary);
    font-family: var(--font-heading);
    white-space: nowrap;
}

.logo h1 span {
    color: var(--secondary);
}

/* Search Box */
.search-box {
    flex: 1;
    max-width: 500px;
    position: relative;
}

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

.search-box form:focus-within {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
}

.search-input {
    border: none !important;
    padding: 10px 18px !important;
    font-size: 14px;
    background: transparent !important;
    box-shadow: none !important;
}

.search-box button {
    background: var(--primary);
    border: none;
    color: #fff;
    padding: 0 20px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 15px;
}

.search-box button:hover {
    background: var(--primary-dark);
}

/* Search Results Dropdown */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    margin-top: 8px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1050;
    border: 1px solid var(--border-color);
}

.search-results .result-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.search-results .result-item:hover {
    background: var(--light);
}

.search-results .result-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-right: 12px;
}

.search-results .result-item .result-info h6 {
    margin: 0;
    font-size: 13px;
    font-family: var(--font-body);
}

.search-results .result-item .result-price {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
}

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

.btn-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: var(--light);
    color: var(--dark);
    font-size: 18px;
    position: relative;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-icon:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-icon .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    font-size: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    padding: 0 4px;
    font-weight: 600;
}

/* ============================================================
   4. NAVBAR
   ============================================================ */
.navbar-main {
    background: var(--primary);
    padding: 0;
    box-shadow: var(--shadow-sm);
}

.navbar-main .navbar-nav {
    width: 100%;
}

.navbar-main .nav-link {
    color: rgba(255,255,255,0.92) !important;
    font-size: 13.5px;
    font-weight: 500;
    padding: 14px 16px !important;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}

.navbar-main .nav-link:hover,
.navbar-main .nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,0.1);
}

.navbar-main .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 70%;
    height: 3px;
    background: var(--secondary);
    border-radius: 3px 3px 0 0;
    transition: var(--transition);
}

.navbar-main .nav-link:hover::after,
.navbar-main .nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

.navbar-main .nav-link i {
    margin-right: 4px;
    font-size: 13px;
}

.navbar-main .dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 8px 0;
    min-width: 220px;
    animation: fadeInDown 0.2s ease;
}

.navbar-main .dropdown-item {
    padding: 8px 20px;
    font-size: 13px;
    transition: var(--transition-fast);
}

.navbar-main .dropdown-item:hover {
    background: var(--light);
    color: var(--primary);
    padding-left: 24px;
}

.navbar-toggler {
    color: #fff !important;
    font-size: 22px;
    padding: 8px 12px;
}

/* ============================================================
   5. HERO SLIDER
   ============================================================ */
.hero-slider {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 550px;
    animation: slideInUp 0.8s ease;
}

.hero-content h2 {
    font-size: 42px;
    color: #fff;
    margin-bottom: 16px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.hero-content p {
    font-size: 17px;
    color: rgba(255,255,255,0.92);
    margin-bottom: 24px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.hero-content .btn {
    padding: 12px 30px;
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--radius-xl);
    text-transform: none;
    letter-spacing: 0.3px;
}

.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 80px 0;
    color: #fff;
}

.hero-section h1 {
    font-size: 38px;
    color: #fff;
    margin-bottom: 16px;
}

.hero-section p {
    font-size: 17px;
    opacity: 0.9;
    margin-bottom: 24px;
}

.carousel-control-prev, .carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    margin: 0 20px;
    opacity: 0;
    transition: var(--transition);
}

.hero-slider:hover .carousel-control-prev,
.hero-slider:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev:hover, .carousel-control-next:hover {
    background: rgba(255,255,255,0.35);
}

/* ============================================================
   6. STORY MODÜLÜ
   ============================================================ */
.stories-section {
    padding: 20px 0;
    overflow: hidden;
}

.stories-wrapper {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.stories-wrapper::-webkit-scrollbar {
    display: none;
}

.story-item {
    flex-shrink: 0;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.story-item:hover {
    transform: translateY(-3px);
}

.story-avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    border: 3px solid var(--primary);
    padding: 3px;
    margin-bottom: 6px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
}

.story-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-full);
    border: 2px solid #fff;
}

.story-item span {
    font-size: 11px;
    color: var(--text-color);
    font-weight: 500;
    display: block;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================================
   7. SECTION TITLES
   ============================================================ */
.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title h2 {
    font-size: 28px;
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 14px;
}

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

.section-header h2 {
    font-size: 24px;
    margin: 0;
}

.section-header .view-all {
    color: var(--primary);
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.section-header .view-all:hover {
    color: var(--primary-dark);
    gap: 10px;
}

/* ============================================================
   8. CATEGORY CARDS
   ============================================================ */
.category-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 180px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.category-card:hover img {
    transform: scale(1.08);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 100%);
    display: flex;
    align-items: flex-end;
    padding: 16px;
    transition: var(--transition);
}

.category-card:hover .category-overlay {
    background: linear-gradient(to top, rgba(var(--primary-rgb),0.85) 0%, rgba(0,0,0,0.1) 100%);
}

.category-overlay h5 {
    color: #fff;
    margin: 0;
    font-size: 15px;
    font-family: var(--font-body);
    font-weight: 600;
}

.category-overlay .count {
    color: rgba(255,255,255,0.8);
    font-size: 12px;
}

/* Category with icon */
.category-icon-card {
    text-align: center;
    padding: 24px 16px;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: block;
    color: var(--text-color);
}

.category-icon-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    color: var(--primary);
}

.category-icon-card i {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 12px;
    display: block;
    transition: var(--transition);
}

.category-icon-card:hover i {
    transform: scale(1.15);
    color: var(--primary-dark);
}

.category-icon-card h6 {
    font-size: 13px;
    font-family: var(--font-body);
    font-weight: 600;
    margin: 0;
}

/* ============================================================
   9. PRODUCT CARD
   ============================================================ */
.product-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    margin-bottom: 20px;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-badge .badge {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.product-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition);
}

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

.product-actions a,
.product-actions button {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.95);
    color: var(--dark);
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.product-actions a:hover,
.product-actions button:hover {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
}

.product-actions .favorited {
    color: var(--danger);
}

.product-actions .favorited:hover {
    background: var(--danger);
    color: #fff;
}

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

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-body {
    padding: 14px;
}

.product-body .category-name {
    font-size: 11px;
    color: var(--primary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    display: block;
}

.product-body h5 {
    font-size: 14px;
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-body h5 a {
    color: var(--dark);
}

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

.stars {
    color: var(--warning);
    font-size: 12px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 1px;
}

.stars i {
    font-size: inherit;
}

.price {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

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

.btn-add-cart {
    width: 100%;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
}

/* ============================================================
   10. BUTTONS
   ============================================================ */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-secondary {
    background: var(--secondary);
    border-color: var(--secondary);
    color: var(--dark);
}

.btn-secondary:hover {
    background: #e8953d;
    border-color: #e8953d;
}

.btn-warning {
    background: var(--secondary);
    border-color: var(--secondary);
    color: var(--dark);
    font-weight: 600;
}

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

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

.btn-whatsapp {
    background: #25d366;
    color: #fff;
    border: none;
}

.btn-whatsapp:hover {
    background: #1db954;
    color: #fff;
}

/* ============================================================
   11. BANNER SECTIONS
   ============================================================ */
.banner-section {
    padding: 20px 0;
}

.banner-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: block;
}

.banner-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.banner-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.banner-card:hover img {
    transform: scale(1.03);
}

/* ============================================================
   12. BREADCRUMB
   ============================================================ */
.breadcrumb-nav {
    background: var(--light);
    padding: 12px 0;
    margin-bottom: 0;
}

.breadcrumb {
    margin: 0;
    padding: 0;
    background: none;
    font-size: 13px;
}

.breadcrumb-item a {
    color: var(--text-muted);
}

.breadcrumb-item a:hover {
    color: var(--primary);
}

.breadcrumb-item.active {
    color: var(--primary);
    font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
    color: var(--text-muted);
}

/* ============================================================
   13. PRODUCT DETAIL PAGE
   ============================================================ */
.product-gallery {
    position: sticky;
    top: 100px;
}

.product-gallery .main-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 12px;
    background: var(--light);
    aspect-ratio: 1;
}

.product-gallery .main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.gallery-thumbs img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    opacity: 0.7;
}

.gallery-thumbs img:hover,
.gallery-thumbs img.active {
    border-color: var(--primary);
    opacity: 1;
}

.product-info .product-title {
    font-size: 26px;
    margin-bottom: 12px;
}

.product-info .product-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

.product-info .product-price .original {
    font-size: 18px;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 400;
    margin-left: 8px;
}

.product-info .product-price .discount-badge {
    background: var(--danger);
    color: #fff;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    margin-left: 8px;
    font-weight: 600;
}

.stock-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: var(--radius-xl);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
}

.stock-status.in-stock {
    background: rgba(82, 183, 136, 0.1);
    color: var(--success);
}

.stock-status.out-stock {
    background: rgba(230, 57, 70, 0.1);
    color: var(--danger);
}

/* Variant Selectors */
.variant-group {
    margin-bottom: 16px;
}

.variant-group label {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 8px;
    display: block;
    color: var(--dark);
}

.variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.variant-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 13px;
    font-weight: 500;
    background: #fff;
    min-width: 50px;
    text-align: center;
    position: relative;
}

.variant-option:hover {
    border-color: var(--primary);
}

.variant-option.active {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.06);
    color: var(--primary);
}

.variant-option.active::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 8px;
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--primary);
    color: #fff;
    width: 16px;
    height: 16px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Image Variant */
.variant-image {
    width: 60px;
    height: 60px;
    padding: 3px;
    border-radius: var(--radius-sm);
}

.variant-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

/* Color Variant */
.variant-color {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    padding: 0;
    min-width: 36px;
}

/* Quantity */
.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    width: fit-content;
}

.quantity-selector button {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--light);
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-selector button:hover {
    background: var(--primary);
    color: #fff;
}

.quantity-selector input {
    width: 50px;
    height: 40px;
    border: none;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    -moz-appearance: textfield;
}

.quantity-selector input::-webkit-outer-spin-button,
.quantity-selector input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

/* Product Tabs */
.product-tabs {
    margin-top: 40px;
}

.product-tabs .nav-tabs {
    border-bottom: 2px solid var(--border-color);
}

.product-tabs .nav-link {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
    border: none;
    padding: 12px 20px;
    position: relative;
    transition: var(--transition);
}

.product-tabs .nav-link.active {
    color: var(--primary);
    background: none;
}

.product-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 3px 3px 0 0;
}

.product-tabs .tab-content {
    padding: 24px 0;
}

/* Specs Table */
.specs-table {
    width: 100%;
}

.specs-table tr:nth-child(even) {
    background: var(--light);
}

.specs-table td {
    padding: 10px 16px;
    font-size: 13px;
    border-bottom: 1px solid var(--border-color);
}

.specs-table td:first-child {
    font-weight: 600;
    width: 40%;
    color: var(--dark);
}

/* ============================================================
   14. CATEGORY / LISTING PAGE
   ============================================================ */
.filter-sidebar {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid var(--border-color);
    position: sticky;
    top: 100px;
}

.filter-group {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-group h6 {
    font-size: 14px;
    font-family: var(--font-body);
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
}

.filter-group .form-check {
    margin-bottom: 6px;
}

.filter-group .form-check-label {
    font-size: 13px;
    cursor: pointer;
}

.filter-group .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.price-range {
    display: flex;
    gap: 8px;
    align-items: center;
}

.price-range input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
}

/* Sort & View Toolbar */
.listing-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.listing-toolbar .result-count {
    font-size: 13px;
    color: var(--text-muted);
}

.listing-toolbar .sort-options {
    display: flex;
    align-items: center;
    gap: 12px;
}

.listing-toolbar select {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    font-size: 13px;
}

.view-toggle {
    display: flex;
    gap: 4px;
}

.view-toggle button {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    background: #fff;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 14px;
    color: var(--text-muted);
}

.view-toggle button.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ============================================================
   15. CART PAGE
   ============================================================ */
.cart-table {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.cart-table table {
    margin: 0;
}

.cart-table th {
    background: var(--light);
    font-size: 13px;
    font-weight: 600;
    padding: 14px 16px;
    color: var(--dark);
    border: none;
}

.cart-table td {
    padding: 16px;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
}

.cart-product {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-product img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.cart-product h6 {
    font-size: 14px;
    font-family: var(--font-body);
    margin: 0 0 4px;
}

.cart-product .variant-info {
    font-size: 12px;
    color: var(--text-muted);
}

.cart-summary {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-color);
    position: sticky;
    top: 100px;
}

.cart-summary h5 {
    font-size: 18px;
    font-family: var(--font-body);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}

.cart-summary .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.cart-summary .summary-total {
    display: flex;
    justify-content: space-between;
    padding: 16px 0 0;
    margin-top: 12px;
    border-top: 2px solid var(--primary);
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.coupon-form {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.coupon-form input {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    font-size: 13px;
}

/* ============================================================
   16. FOOTER
   ============================================================ */
footer {
    background: var(--dark);
    color: rgba(255,255,255,0.85);
    padding-top: 60px;
}

.footer-top {
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-widget h5 {
    color: #fff;
    font-size: 16px;
    font-family: var(--font-body);
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-widget h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary);
    border-radius: 3px;
}

.footer-widget p {
    font-size: 13px;
    line-height: 1.8;
    color: rgba(255,255,255,0.7);
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-widget ul li a {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-widget ul li a:hover {
    color: var(--secondary);
    padding-left: 4px;
}

.footer-widget ul li a i {
    font-size: 10px;
    color: var(--secondary);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px !important;
}

.footer-contact li i {
    color: var(--secondary) !important;
    font-size: 16px !important;
    margin-top: 2px;
    width: 20px;
    text-align: center;
}

.footer-newsletter input {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font-size: 13px;
    width: 100%;
    margin-bottom: 10px;
}

.footer-newsletter input::placeholder {
    color: rgba(255,255,255,0.5);
}

.footer-newsletter button {
    width: 100%;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social-link {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 15px;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--secondary);
    color: var(--dark);
    transform: translateY(-3px);
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

.footer-bottom a {
    color: var(--secondary);
}

/* Payment Icons */
.payment-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}

.payment-icons img {
    height: 24px;
    opacity: 0.6;
    transition: var(--transition-fast);
}

.payment-icons img:hover {
    opacity: 1;
}

/* ============================================================
   17. WHATSAPP & SCROLL TOP
   ============================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    animation: pulse 2s infinite;
}

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

.scroll-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 999;
    width: 44px;
    height: 44px;
    background: var(--primary);
    border-radius: var(--radius-full);
    display: none;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.scroll-top.visible {
    display: flex;
}

/* ============================================================
   18. ALERTS & TOASTS
   ============================================================ */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.custom-toast {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    margin-bottom: 10px;
    animation: slideInRight 0.4s ease;
    border-left: 4px solid var(--success);
}

.custom-toast.toast-error {
    border-left-color: var(--danger);
}

.custom-toast.toast-warning {
    border-left-color: var(--warning);
}

.custom-toast i {
    font-size: 20px;
}

.custom-toast .toast-body {
    flex: 1;
}

.custom-toast .toast-body strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.custom-toast .toast-body span {
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================================
   19. FORMS
   ============================================================ */
.form-control, .form-select {
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-color);
    padding: 10px 14px;
    font-size: 14px;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
}

.form-label {
    font-weight: 600;
    font-size: 13px;
    color: var(--dark);
    margin-bottom: 6px;
}

/* ============================================================
   20. PAGINATION
   ============================================================ */
.pagination .page-link {
    color: var(--dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm) !important;
    padding: 8px 14px;
    margin: 0 3px;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

.pagination .page-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
}

/* ============================================================
   21. LOGIN / REGISTER
   ============================================================ */
.auth-card {
    max-width: 460px;
    margin: 40px auto;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    border: 1px solid var(--border-color);
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 8px;
    font-size: 24px;
}

.auth-card p.subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 30px;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 13px;
}

.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.auth-divider span {
    padding: 0 14px;
}

/* ============================================================
   22. REVIEW / COMMENTS
   ============================================================ */
.review-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.review-avatar {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.review-meta h6 {
    margin: 0;
    font-size: 14px;
    font-family: var(--font-body);
}

.review-meta span {
    font-size: 12px;
    color: var(--text-muted);
}

.review-content {
    font-size: 14px;
    line-height: 1.7;
    color: var(--gray-dark);
}

/* ============================================================
   23. POPUP MODAL
   ============================================================ */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
}

.popup-overlay.active {
    display: flex;
}

.popup-content {
    background: #fff;
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 90%;
    overflow: hidden;
    animation: scaleIn 0.3s ease;
    position: relative;
}

.popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    z-index: 2;
    font-size: 14px;
}

/* ============================================================
   24. ANIMATIONS
   ============================================================ */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@keyframes shimmer {
    0% { background-position: -468px 0; }
    100% { background-position: 468px 0; }
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(to right, #f0f0f0 4%, #e0e0e0 25%, #f0f0f0 36%);
    background-size: 1000px 100%;
    animation: shimmer 1.5s linear infinite;
    border-radius: var(--radius-sm);
}

/* ============================================================
   25. RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
    .hero-slide {
        height: 380px;
    }
    
    .hero-content h2 {
        font-size: 28px;
    }
    
    .header-main .container {
        flex-wrap: wrap;
    }
    
    .search-box {
        order: 3;
        max-width: 100%;
        margin-top: 10px;
    }
    
    .section-title h2 {
        font-size: 22px;
    }
    
    .filter-sidebar {
        position: static;
        margin-bottom: 20px;
    }
}

@media (max-width: 767.98px) {
    .top-bar {
        display: none !important;
    }
    
    .hero-slide {
        height: 300px;
    }
    
    .hero-content h2 {
        font-size: 22px;
    }
    
    .hero-content p {
        font-size: 14px;
    }
    
    .product-body {
        padding: 10px;
    }
    
    .product-body h5 {
        font-size: 13px;
    }
    
    .price {
        font-size: 15px;
    }
    
    .category-card {
        height: 140px;
    }
    
    .section-title h2 {
        font-size: 20px;
    }
    
    .footer-widget {
        margin-bottom: 30px;
    }
    
    .auth-card {
        margin: 20px 15px;
        padding: 24px;
    }
    
    .product-info .product-title {
        font-size: 20px;
    }
    
    .product-info .product-price {
        font-size: 22px;
    }
    
    .cart-table {
        overflow-x: auto;
    }
    
    .listing-toolbar {
        flex-direction: column;
        gap: 10px;
    }
    
    .whatsapp-float {
        bottom: 16px;
        right: 16px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

@media (max-width: 575.98px) {
    body {
        font-size: 13px;
    }
    
    .hero-slide {
        height: 250px;
    }
    
    .hero-content h2 {
        font-size: 19px;
    }
    
    .product-card {
        margin-bottom: 12px;
    }
    
    .btn-add-cart {
        font-size: 12px;
        padding: 7px 10px;
    }
    
    .col-6 .product-body h5 {
        font-size: 12px;
    }
    
    .col-6 .price {
        font-size: 14px;
    }
    
    .story-avatar {
        width: 65px;
        height: 65px;
    }
}

/* ============================================================
   26. MISC UTILITIES
   ============================================================ */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-accent { color: var(--accent) !important; }

.hover-lift { transition: var(--transition); }
.hover-lift:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.glass {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.divider {
    height: 1px;
    background: var(--border-color);
    margin: 20px 0;
}

.no-select {
    user-select: none;
    -webkit-user-select: none;
}

/* Instagram Grid */
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.instagram-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
}

.instagram-grid img:hover {
    transform: scale(1.05);
    opacity: 0.85;
}

/* Owl Carousel Overrides */
.owl-nav button.owl-prev,
.owl-nav button.owl-next {
    width: 40px;
    height: 40px;
    background: #fff !important;
    border-radius: var(--radius-full) !important;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px !important;
    color: var(--dark) !important;
    transition: var(--transition);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.owl-nav button.owl-prev { left: -15px; }
.owl-nav button.owl-next { right: -15px; }

.owl-nav button:hover {
    background: var(--primary) !important;
    color: #fff !important;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 60px;
    color: var(--gray-light);
    margin-bottom: 16px;
}

.empty-state h4 {
    font-family: var(--font-body);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Price Change Alert */
.price-change-alert {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.price-change-alert i {
    color: var(--warning);
}
