/* CMSPeak E-Commerce Theme - Modern Blog & E-Commerce Hybrid */
/* Professional WooCommerce-style design with crisp blue & cyan accents */

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #60a5fa;
    --secondary-color: #f97316;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
    --text-color: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --bg-color: #ffffff;
    --bg-gray: #f9fafb;
    --bg-light: #f3f4f6;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    --gradient-secondary: linear-gradient(135deg, #f97316 0%, #f59e0b 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: radial-gradient(circle at 20% 20%, #ffffff 0%, #f7fafc 55%, #e0f2fe 100%);
    font-size: 16px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

/* Typography polish */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-color);
}

p {
    color: #334155;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   TOP BAR - Promo & Social Links
   ============================================ */
.top-bar {
    background: linear-gradient(to right, #1f2937, #111827);
    color: white;
    font-size: 0.875rem;
    padding: 0.75rem 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.top-bar .separator {
    color: rgba(255, 255, 255, 0.3);
}

.top-bar a {
    color: white;
    text-decoration: none;
    transition: color 0.2s;
}

.top-bar a:hover {
    color: var(--primary-light);
}

.top-bar i {
    margin-right: 0.25rem;
}

/* ============================================
   MAIN HEADER - Logo, Search, Cart, User Menu
   ============================================ */
.main-header {
    background: linear-gradient(to bottom, var(--bg-color), rgba(255, 255, 255, 0.98));
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

/* Header top section (logo, search, actions) */
.main-header > .container {
    position: relative;
}

.main-header .header-wrapper {
    padding: 1rem 0;
}

/* Full-width line below header container with shadow - layered effect */
.main-header > .container::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100vw;
    height: 1px;
    background-color: var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

/* ============================================
   SCROLLED HEADER - Compact Mode
   ============================================ */
body.header-scrolled .main-header .header-wrapper {
    padding: 0.5rem 0;
    gap: 0.75rem;
}

/* Logo shrinks slightly */
body.header-scrolled .logo-image {
    max-height: 36px !important;
}

/* Search - collapses to button only */
body.header-scrolled .header-search {
    flex: 1 0 auto;
    max-width: none;
}

body.header-scrolled .header-search .search-wrapper {
    width: auto;
}

body.header-scrolled .header-search .search-input {
    width: 0;
    padding: 0;
    border: none;
    opacity: 0;
}

body.header-scrolled .header-search .search-btn {
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-color);
    padding: 0.5rem 0.75rem;
    font-size: 1.25rem;
    min-width: auto;
    width: auto;
}

body.header-scrolled .header-search .search-btn:hover {
    background: var(--bg-color);
    border-color: var(--border-color);
}

/* Search expanded state on click */
body.header-scrolled .header-search.search-expanded .search-input {
    width: 200px;
    padding: 0.625rem 1rem;
    border: 2px solid var(--border-color);
    border-right: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    opacity: 1;
    background: white;
}

body.header-scrolled .header-search.search-expanded .search-btn {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    border-left: none;
    padding: 0.625rem 1rem;
    font-size: 1rem;
}

/* Hide action text smoothly */
body.header-scrolled .action-text {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
}

/* Action links compact */
body.header-scrolled .action-link {
    gap: 0;
    padding: 0.5rem 0.75rem;
}

body.header-scrolled .action-link > i {
    font-size: 1.25rem;
}

body.header-scrolled .header-actions {
    gap: 0.25rem;
}

/* Nav menu - hidden when scrolled (moved to header-wrapper via JS) */
body.header-scrolled .main-nav {
    display: none;
}

/* Nav menu inside header-wrapper when scrolled */
body.header-scrolled .header-wrapper .nav-menu {
    display: flex;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    background: transparent;
    list-style: none;
    box-shadow: none;
}

body.header-scrolled .header-wrapper .nav-menu .nav-link {
    padding: 0.4rem 0.65rem;
    font-size: 1rem;
}

body.header-scrolled .header-wrapper .nav-menu .nav-link i:not(.bi-chevron-down) {
    display: none;
}

/* Dropdown positioning when nav is in header-wrapper (scrolled) */
body.header-scrolled .header-wrapper .nav-item.has-dropdown > .dropdown-menu {
    top: 100% !important;
    margin-top: 0.5rem;
}

/* ============================================
   SMOOTH TRANSITIONS
   ============================================ */
.main-header {
    transition: padding 0.4s ease, box-shadow 0.4s ease, border 0.4s ease;
}

.logo-image {
    transition: max-height 0.4s ease;
}

.header-search {
    transition: flex 0.4s ease, width 0.4s ease, max-width 0.4s ease;
}

.header-search .search-wrapper {
    transition: width 0.4s ease, justify-content 0.4s ease;
}

.search-input {
    transition: width 0.4s ease, padding 0.4s ease, border-color 0.4s ease, background 0.4s ease, opacity 0.4s ease;
}

.action-text {
    transition: max-width 0.4s ease, opacity 0.4s ease;
    max-width: 150px;
}

.action-link {
    transition: gap 0.4s ease;
}

.main-nav {
    transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease, margin 0.4s ease, border 0.4s ease;
}

.main-nav .container {
    transition: height 0.4s ease;
}

.main-nav .nav-menu {
    transition: padding 0.4s ease, gap 0.4s ease, background 0.4s ease, box-shadow 0.4s ease, border-radius 0.4s ease;
}

.main-nav .nav-link {
    transition: padding 0.3s ease, font-size 0.3s ease;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    transition: gap 0.4s ease, padding 0.4s ease, border 0.4s ease, box-shadow 0.4s ease;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    font-size: 1.5rem;
    white-space: nowrap;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.logo-text {
    color: var(--primary-color);
}

.logo:hover .logo-text {
    color: var(--primary-hover);
}

/* Header Search */
.header-search {
    flex: 1;
    max-width: 500px;
}

.search-wrapper {
    position: relative;
    display: flex;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    font-size: 0.9375rem;
    transition: border-color 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-btn {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    border-left: none;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.search-btn:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-action {
    position: relative;
}

.action-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.2s;
    border: 1px solid transparent;
}

.action-link:hover {
    background: var(--bg-gray);
    border-color: var(--border-color);
}

.action-link i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.action-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.action-text small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.action-text strong {
    font-size: 0.875rem;
    font-weight: 600;
}

/* Cart Badge - positioned on cart icon */
.cart-action {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: 0.25rem;
    left: 1.75rem;
    background: var(--danger-color);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 1rem;
    min-width: 1rem;
    text-align: center;
    z-index: 5;
    line-height: 1;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: #ffffff;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.mobile-menu-toggle:hover {
    background: var(--bg-gray);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.mobile-menu-toggle:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 2px;
}

/* Ensure dropdown overlays sit above header */
.header-actions .dropdown-menu {
    z-index: 2100;
}

@media (min-width: 992px) {
    .offcanvas {
        display: none !important;
    }
}

/* Search Preview Dropdown */
.search-preview {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
}

.search-preview-loading,
.search-preview-empty {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
}

.search-preview-results {
    padding: 0.5rem 0;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--text-color);
    transition: background 0.2s;
    border-bottom: 1px solid var(--border-color);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--bg-gray);
}

.search-result-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    background: var(--bg-gray);
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-weight: 600;
    font-size: 14px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-category {
    font-size: 12px;
    color: var(--text-muted);
    margin: 2px 0 0;
}

.search-result-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 14px;
    white-space: nowrap;
}

/* ============================================
   MAIN NAVIGATION - Mega Menu
   ============================================ */
.main-nav {
    background: var(--bg-color);
}

.main-nav > .container {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
    box-shadow: inset 0px 2px 2px 0 rgba(0, 0, 0, 0.05);
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem 0.75rem;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-item.has-dropdown {
    position: static;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.2s;
    border-radius: var(--radius-md);
}

/* Extend hover area for dropdown parents - invisible bridge */
.nav-item.has-dropdown::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    right: 0;
    height: 0.5rem;
    background: transparent;
    pointer-events: auto;
}

.nav-link:hover {
    background: var(--bg-gray);
    color: var(--primary-color);
}

.nav-link i:not(.bi-chevron-down) {
    font-size: 1.125rem;
}

.nav-link .bi-chevron-down {
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.nav-item.has-dropdown:hover .bi-chevron-down {
    transform: rotate(180deg);
}

/* Mega Dropdown */
.mega-dropdown {
    position: absolute;
    top: calc(100% - 1px);
    left: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
    width: min(1100px, calc(100vw - 2rem));
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -10px);
    transition: all 0.3s;
    z-index: 1500;
    backdrop-filter: blur(8px);
}

.nav-item.has-dropdown:hover .mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.mega-dropdown-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mega-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.2s;
    font-weight: 500;
}

.mega-link:hover {
    background: var(--bg-gray);
    color: var(--primary-color);
    padding-left: 1.25rem;
}

.mega-link i {
    color: var(--primary-color);
    font-size: 1.125rem;
}

.mega-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.view-all:hover {
    background: var(--bg-gray);
    padding-left: 1.25rem;
}

/* ============================================
   DROPDOWN MENU - Standard Dropdowns for Nav
   ============================================ */
/* Navigation dropdown menu styles */
.main-nav .nav-item {
    position: relative;
}

.main-nav .nav-item.has-dropdown > .dropdown-menu {
    position: absolute !important;
    top: calc(100% - 0.5rem) !important;
    left: 0 !important;
    min-width: 220px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    padding: 0.5rem 0 !important;
    padding-top: 0.75rem !important;
    margin-top: 0 !important;
    display: none !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(0);
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 1500;
}

.main-nav .nav-item.has-dropdown:hover > .dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.main-nav .dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.2s;
    border-radius: 8px;
    margin: 0 0.5rem;
}

.main-nav .dropdown-menu .dropdown-item:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(14, 165, 233, 0.08));
    color: var(--primary-color);
    padding-left: 1.5rem;
}

/* Nested dropdown (submenu) - 3rd level */
.main-nav .dropdown-menu li {
    position: relative;
    list-style: none;
}

.main-nav .dropdown-menu .dropdown-item.has-submenu {
    position: relative;
    padding-right: 2.5rem;
}

.main-nav .dropdown-menu .dropdown-item.has-submenu i.bi-chevron-right {
    position: absolute;
    right: 1rem;
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.main-nav .dropdown-menu li:hover > .dropdown-item.has-submenu i.bi-chevron-right {
    transform: translateX(3px);
}

.main-nav .dropdown-menu .dropdown-submenu {
    position: absolute !important;
    top: -0.5rem !important;
    left: 100% !important;
    min-width: 200px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
    padding: 0.5rem 0 !important;
    margin-left: 0 !important;
    display: none !important;
    opacity: 0;
    visibility: hidden;
    transform: translateX(0);
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 1600;
}

.main-nav .dropdown-menu li:hover > .dropdown-submenu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) !important;
}

/* Mobile offcanvas behavior (local fallback) */
.offcanvas {
    position: fixed;
    inset: 0 auto 0 0;
    width: 85vw;
    max-width: 360px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
    transform: translateX(-100%);
    visibility: hidden;
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.2s ease;
    z-index: 2000;
}

.offcanvas.show {
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
}

.offcanvas-backdrop {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.offcanvas-backdrop.show {
    opacity: 0.45;
}

/* Mobile Menu */
.offcanvas-title {
    color: var(--primary-color);
    font-weight: 700;
}

.mobile-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav li.divider {
    height: 1rem;
    border-bottom: 2px solid var(--border-color);
    margin: 0.5rem 0;
}

.mobile-nav li.mobile-menu-section {
    padding: 1rem 1rem 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    margin-top: 1rem;
}

.mobile-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.mobile-nav a:hover {
    background: var(--bg-gray);
    color: var(--primary-color);
    padding-left: 1.5rem;
}

.mobile-nav a i {
    font-size: 1.125rem;
    width: 24px;
}

/* ============================================
   MAIN CONTENT WRAPPER
   ============================================ */
.main-content {
    min-height: 500px;
}

/* ============================================
   HERO SLIDER - Homepage Banner
   ============================================ */
.hero-slider {
    margin-bottom: 3rem;
}

.hero-slide {
    padding: 6rem 2rem;
    border-radius: 16px;
    color: white;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 500px;
    display: flex;
    align-items: center;
}

/* Dark overlay for better text contrast */
.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-subtitle {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    color: #ffffff;
}

.hero-text {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.98;
    max-width: 500px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    color: #f0f0f0;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-shadow: none;
}

.hero-buttons .btn-light {
    background-color: #ffffff;
    color: #1a1a2e;
    border-color: #ffffff;
}

.hero-buttons .btn-light:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.hero-buttons .btn-outline-light {
    border: 2px solid #ffffff;
    color: #ffffff;
}

.hero-buttons .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.hero-image {
    position: relative;
    z-index: 2;
}

.hero-image img {
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: translateY(-5px);
}

/* ============================================
   SECTION HEADERS - Consistent Section Titles
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.view-all-link {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.view-all-link:hover {
    color: var(--primary-hover);
    gap: 0.75rem;
}

/* ============================================
   CATEGORIES SECTION
   ============================================ */
.section-categories {
    margin-bottom: 4rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 2rem 1.5rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(6px);
}

.category-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.15);
    transform: translateY(-10px);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: white;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

.category-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.category-card:hover .category-name {
    color: var(--primary-color);
}

/* ============================================
   FEATURED PRODUCTS SECTION
   ============================================ */
.section-featured-products {
    margin-bottom: 4rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.product-card {
    background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.09);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.15);
    transform: translateY(-12px);
    border-color: var(--primary-color);
}

.product-image {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.product-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-image.no-image {
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 4rem;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-overlay .btn {
    transform: translateY(20px);
    transition: transform 0.3s;
}

.product-card:hover .product-overlay .btn {
    transform: translateY(0);
}

.product-card .card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card .card-title {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    font-weight: 600;
    min-height: 2.8em;
}

.product-card .card-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.product-card .card-title a:hover {
    color: var(--primary-color);
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.product-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
}

.product-card .badge {
    display: inline-block;
    padding: 0.4em 0.75em;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    border-radius: var(--radius-sm);
}

.product-card .badge.bg-success {
    background-color: var(--success-color) !important;
    color: white;
}

.product-card .badge.bg-danger {
    background-color: var(--danger-color) !important;
    color: white;
}

.product-card .card-text {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .card-footer {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
    border-top: 1px solid #e2e8f0;
    padding: 1rem 1.5rem;
    margin-top: auto;
}

/* ============================================
   PROMO SECTION - Call to Action Box
   ============================================ */
.section-promo {
    margin-bottom: 4rem;
}

.promo-box {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transition: all 0.3s ease;
}

.promo-box:hover {
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.12);
    border-color: var(--primary-color);
}

.promo-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.promo-icon-wrapper {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.promo-text h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 0.5rem 0;
}

.promo-text p {
    font-size: 0.9375rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

.promo-btn {
    flex-shrink: 0;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

@media (max-width: 992px) {
    .promo-box {
        flex-direction: column;
        text-align: center;
    }

    .promo-content {
        flex-direction: column;
    }

    .promo-btn {
        width: 100%;
    }
}

/* ============================================
   BLOG SECTION
   ============================================ */
.section-blog {
    margin-bottom: 4rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.blog-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.15);
    transform: translateY(-10px);
}

.blog-card-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.blog-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.blog-meta .post-type-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 0.25rem 0.625rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.blog-title {
    font-size: 1.375rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
}

.blog-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.blog-title a:hover {
    color: var(--primary-color);
}

.blog-excerpt {
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.read-more:hover {
    color: var(--primary-hover);
    gap: 0.75rem;
}

/* ============================================
   SINGLE POST PAGE
   ============================================ */
.section-single-post {
    padding: 2rem 0 4rem;
}

.single-breadcrumb {
    margin-bottom: 2rem;
}

.single-breadcrumb .breadcrumb {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin: 0;
}

.single-breadcrumb .breadcrumb-item a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.single-breadcrumb .breadcrumb-item a:hover {
    color: var(--primary-color);
}

.single-breadcrumb .breadcrumb-item.active {
    color: var(--text-color);
    font-weight: 500;
}

/* Post Card */
.single-post-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    margin-bottom: 2rem;
}

.single-post-header {
    padding: 2rem 2rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.single-post-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.post-category-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s;
}

.post-category-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    color: white;
}

.single-post-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.3;
    margin: 0 0 1.5rem 0;
}

.single-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
}

.post-meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.post-author-avatar {
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
}

.post-author-info {
    display: flex;
    flex-direction: column;
}

.post-author-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9375rem;
}

.post-date {
    font-size: 0.8125rem;
    color: var(--text-light);
}

.post-updated {
    font-size: 0.8125rem;
    color: var(--text-light);
    padding: 0.375rem 0.75rem;
    background: #f1f5f9;
    border-radius: 8px;
}

.post-updated i {
    margin-right: 0.25rem;
}

/* Featured Image */
.single-post-image {
    width: 100%;
    max-height: 450px;
    overflow: hidden;
}

.single-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Post Content */
.single-post-content {
    padding: 2rem;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-color);
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-color);
}

.single-post-content h2 { font-size: 1.5rem; }
.single-post-content h3 { font-size: 1.25rem; }
.single-post-content h4 { font-size: 1.125rem; }

.single-post-content p {
    margin-bottom: 1.25rem;
}

.single-post-content ul,
.single-post-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.single-post-content li {
    margin-bottom: 0.5rem;
}

.single-post-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--text-light);
}

.single-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.single-post-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.single-post-content a:hover {
    color: var(--primary-hover);
}

.single-post-content code {
    background: #f1f5f9;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875em;
}

.single-post-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.single-post-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Meta Fields */
.single-post-meta-fields {
    padding: 1.5rem 2rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.single-post-meta-fields h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.meta-field-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-field-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-field-value {
    font-size: 0.9375rem;
    color: var(--text-color);
    font-weight: 500;
}

/* Post Footer */
.single-post-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.post-tags > i {
    color: var(--text-light);
}

.post-tag {
    display: inline-flex;
    padding: 0.375rem 0.75rem;
    background: #f1f5f9;
    color: var(--text-light);
    font-size: 0.8125rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
}

.post-tag:hover {
    background: var(--primary-color);
    color: white;
}

.post-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.share-label {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    transition: all 0.2s;
}

.share-btn:hover {
    transform: translateY(-3px);
    color: white;
}

.share-facebook { background: #1877f2; }
.share-facebook:hover { box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4); }

.share-twitter { background: #000000; }
.share-twitter:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); }

.share-linkedin { background: #0a66c2; }
.share-linkedin:hover { box-shadow: 0 4px 12px rgba(10, 102, 194, 0.4); }

.share-whatsapp { background: #25d366; }
.share-whatsapp:hover { box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4); }

/* Author Box */
.author-box-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.author-avatar-lg {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.author-info {
    flex: 1;
}

.author-label {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #e0e7ff;
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 0.5rem;
}

.author-info .author-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 0.5rem 0;
}

.author-bio {
    font-size: 0.9375rem;
    color: var(--text-light);
    margin: 0 0 1rem 0;
    line-height: 1.6;
}

.author-posts-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.author-posts-link:hover {
    color: var(--primary-hover);
    gap: 0.75rem;
}

/* Post Navigation */
.post-navigation-card {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.nav-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: var(--text-color);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.nav-back-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

/* Sidebar */
.single-post-sidebar {
    position: sticky;
    top: 120px;
}

.sidebar-widget {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.widget-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 1.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
}

.widget-title i {
    color: var(--primary-color);
}

/* Related Posts List */
.related-posts-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.related-post-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.875rem;
    background: #f8fafc;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s;
}

.related-post-item:hover {
    background: #e0e7ff;
}

.related-post-content h5 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.25rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-post-date {
    font-size: 0.75rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.related-post-arrow {
    color: var(--text-light);
    font-size: 0.875rem;
    transition: transform 0.2s;
}

.related-post-item:hover .related-post-arrow {
    transform: translateX(3px);
    color: var(--primary-color);
}

/* Category Tags */
.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-tag {
    display: inline-flex;
    padding: 0.5rem 1rem;
    background: #f1f5f9;
    color: var(--text-color);
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.category-tag:hover {
    background: var(--primary-color);
    color: white;
}

/* Sidebar CTA */
.sidebar-cta {
    background: var(--gradient-primary);
    text-align: center;
    color: white;
}

.sidebar-cta .cta-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.sidebar-cta h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.sidebar-cta p {
    font-size: 0.875rem;
    opacity: 0.9;
    margin: 0 0 1.25rem 0;
}

.sidebar-cta .btn {
    background: white;
    color: var(--primary-color);
    border: none;
    font-weight: 600;
}

.sidebar-cta .btn:hover {
    background: #f8fafc;
    transform: translateY(-2px);
}

/* Related Posts Section - Horizontal Grid */
.related-posts-section {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.related-posts-section .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.related-posts-section .section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.related-posts-section .section-title i {
    color: var(--primary-color);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.related-post-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-post-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
    transform: translateY(-3px);
}

.related-post-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.related-post-body {
    flex: 1;
    min-width: 0;
}

.related-post-body h5 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.375rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-post-card .related-post-date {
    font-size: 0.8125rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.related-post-card .related-post-arrow {
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.2s;
}

.related-post-card:hover .related-post-arrow {
    color: var(--primary-color);
    transform: translateX(4px);
}

/* Single Post Responsive */
@media (max-width: 992px) {
    .single-post-sidebar {
        position: static;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .single-post-title {
        font-size: 1.5rem;
    }

    .single-post-header,
    .single-post-content,
    .single-post-footer,
    .single-post-meta-fields {
        padding: 1.25rem;
    }

    .single-post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .single-post-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .author-box-card {
        flex-direction: column;
        text-align: center;
    }

    .author-avatar-lg {
        margin: 0 auto;
    }

    .author-info {
        text-align: center;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   ARCHIVE PAGE
   ============================================ */
.section-archive {
    padding: 2rem 0 4rem;
}

.archive-breadcrumb {
    margin-bottom: 2rem;
}

.archive-breadcrumb .breadcrumb {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin: 0;
}

.archive-breadcrumb .breadcrumb-item a {
    color: var(--text-light);
    text-decoration: none;
}

.archive-breadcrumb .breadcrumb-item a:hover {
    color: var(--primary-color);
}

.archive-breadcrumb .breadcrumb-item.active {
    color: var(--text-color);
    font-weight: 500;
}

/* Archive Header */
.archive-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.archive-header-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.archive-header-content {
    flex: 1;
}

.archive-header-content h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 0.5rem 0;
}

.archive-header-content p {
    font-size: 1rem;
    color: var(--text-light);
    margin: 0;
}

.archive-header-stats {
    display: flex;
    gap: 1.5rem;
}

.archive-header-stats .stat-item {
    text-align: center;
    padding: 1rem 1.5rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.archive-header-stats .stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.archive-header-stats .stat-label {
    font-size: 0.8125rem;
    color: var(--text-light);
}

/* Archive Search */
.archive-search-box {
    margin-bottom: 2rem;
}

.archive-search-form .input-group {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.archive-search-form .input-group-text {
    background: transparent;
    border: none;
    color: var(--text-light);
    padding-left: 1.25rem;
}

.archive-search-form .form-control {
    border: none;
    padding: 1rem;
    font-size: 1rem;
}

.archive-search-form .form-control:focus {
    box-shadow: none;
}

.archive-search-form .btn {
    border-radius: 0;
    padding: 1rem 2rem;
    font-weight: 600;
}

/* Archive Posts Grid */
.archive-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.archive-post-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
}

.archive-post-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.15);
    transform: translateY(-5px);
}

.archive-post-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.archive-post-icon {
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.archive-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--text-light);
}

.archive-post-meta span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.archive-post-body {
    padding: 1.5rem;
    flex: 1;
}

.archive-post-title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 0.75rem 0;
}

.archive-post-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.archive-post-title a:hover {
    color: var(--primary-color);
}

.archive-post-excerpt {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.archive-post-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    background: #fafbfc;
}

.archive-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.archive-read-more:hover {
    color: var(--primary-hover);
    gap: 0.75rem;
}

/* Archive Pagination */
.archive-pagination {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.archive-pagination .pagination {
    display: flex;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.archive-pagination .page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 1rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: var(--text-color);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.archive-pagination .page-item .page-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.archive-pagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Archive Empty State */
.archive-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
}

.archive-empty-state .empty-icon {
    width: 100px;
    height: 100px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: var(--text-light);
}

.archive-empty-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 0.5rem 0;
}

.archive-empty-state p {
    color: var(--text-light);
    margin: 0 0 1.5rem 0;
}

/* Archive Responsive */
@media (max-width: 992px) {
    .archive-header {
        flex-direction: column;
        text-align: center;
    }

    .archive-header-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .archive-posts-grid {
        grid-template-columns: 1fr;
    }

    .archive-header-content h1 {
        font-size: 1.5rem;
    }
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */
.newsletter-section {
    margin-bottom: 4rem;
}

.newsletter-box {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    padding: 3rem 2rem;
    border-radius: 16px;
    color: white;
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.25);
}

.newsletter-box h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.newsletter-box p {
    font-size: 1.125rem;
    opacity: 0.95;
    margin-bottom: 0;
}

.newsletter-form .input-group {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form .form-control {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 1rem;
    backdrop-filter: blur(10px);
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form .form-control:focus {
    outline: none;
    border-color: white;
    background: rgba(255, 255, 255, 0.25);
}

.newsletter-form .btn-primary {
    white-space: nowrap;
    background: white;
    color: var(--primary-color);
    border-color: white;
}

.newsletter-form .btn-primary:hover {
    background: var(--bg-gray);
}

/* ============================================
   FOOTER - 4 Column Layout
   ============================================ */
.site-footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: rgba(255, 255, 255, 0.8);
    margin-top: 4rem;
    margin-bottom: 0;
    border-bottom: none;
}

/* Extend footer background to bottom of page */
html {
    background-color: #1e293b;
}

.footer-top {
    padding: 4rem 0 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widget {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
}

.footer-logo i {
    font-size: 2rem;
}

.footer-about {
    line-height: 1.8;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.85);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 1.125rem;
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-4px);
}

.widget-title {
    color: white;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
}

.footer-links a:hover {
    color: white;
    padding-left: 0.5rem;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact li {
    display: flex;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
}

.footer-contact li span {
    color: rgba(255, 255, 255, 0.85);
}

.footer-contact i {
    font-size: 1.25rem;
    color: var(--primary-light);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

/* Footer Features */
.footer-features {
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
}

.feature-box i {
    font-size: 2rem;
    color: var(--primary-light);
}

.feature-content h6 {
    color: white;
    font-weight: 700;
    margin-bottom: 0.25rem;
    font-size: 0.9375rem;
}

.feature-content span {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Footer Bottom */
.footer-bottom {
    padding: 2rem 0;
}

.copyright {
    margin: 0;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
}

.payment-methods {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: flex-end;
}

.payment-methods img {
    height: 24px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.payment-methods img:hover {
    opacity: 1;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.5);
    transform: translateY(-6px);
}

/* When chatbot is at bottom-right, move back-to-top button to left */
.back-to-top.position-left {
    right: auto;
    left: 2rem;
}

/* ============================================
   BUTTONS - Professional Button Styles
   ============================================ */

.btn:focus-visible,
.search-input:focus-visible,
.form-control:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 2px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    font-size: 0.9375rem;
    line-height: 1.5;
    font-family: inherit;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1.125rem;
}

.btn-primary {
    background: linear-gradient(120deg, var(--primary-color), #0ea5e9);
    color: white;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.35);
    transform: translateY(-2px);
}

.btn-primary:focus-visible {
    outline: 3px solid rgba(14, 165, 233, 0.35);
    outline-offset: 2px;
}


.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-light {
    background: white;
    color: var(--primary-color);
    border-color: white;
}

.btn-light:hover {
    background: var(--bg-gray);
    color: var(--primary-hover);
}

.btn-outline-light {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
    cursor: not-allowed;
    opacity: 0.65;
}

.btn-outline-secondary {
    background: transparent;
    color: var(--secondary-color);
    border-color: var(--border-color);
}

.btn-outline-secondary:hover {
    background: var(--bg-gray);
    border-color: var(--secondary-color);
}

.btn-success {
    background: var(--success-color);
    color: white;
    border-color: var(--success-color);
}

.btn-danger {
    background: var(--danger-color);
    color: white;
    border-color: var(--danger-color);
}

.btn-outline-danger {
    background: transparent;
    color: var(--danger-color);
    border-color: var(--danger-color);
}

.btn-outline-danger:hover {
    background: var(--danger-color);
    color: white;
}

.btn.w-100 {
    width: 100%;
}

/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */
.product-detail-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.product-detail-image .bg-light {
    background-color: var(--bg-gray) !important;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.product-rating {
    color: #ffc107;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.product-description {
    background: var(--bg-gray);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin: 1.5rem 0;
    border-left: 4px solid var(--primary-color);
}

.product-description h5 {
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 600;
}

.quantity-input {
    display: flex;
    align-items: center;
    max-width: 150px;
    margin-bottom: 1rem;
}

.quantity-input .form-control {
    border-radius: 0;
    text-align: center;
    border-left: none;
    border-right: none;
    font-weight: 600;
}

.quantity-input .btn {
    border-radius: var(--radius-md);
    padding: 0.625rem 1rem;
}

.quantity-input .btn:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.quantity-input .btn:last-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}


/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
    background: var(--bg-color);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    list-style: none;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    padding: 0 0.75rem;
    color: var(--text-muted);
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--text-muted);
}

/* ============================================
   CATEGORY SIDEBAR
   ============================================ */
.category-sidebar .card {
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.category-sidebar .card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-bottom: none;
    padding: 1.25rem 1.5rem;
    font-weight: 700;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.category-sidebar .card-title {
    margin: 0;
    font-size: 1.125rem;
}

.category-sidebar .list-group-item {
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    transition: all 0.2s;
    font-weight: 500;
}

.category-sidebar .list-group-item:last-child {
    border-bottom: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.category-sidebar .list-group-item:hover {
    background: var(--bg-gray);
    color: var(--primary-color);
    padding-left: 2rem;
}

.category-sidebar .list-group-item-action {
    color: var(--text-color);
    text-decoration: none;
}

/* ============================================
   PROFILE PAGES - WooCommerce Account Style
   ============================================ */
.profile-header h1 {
    color: var(--text-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.profile-sidebar .card {
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-lg);
    position: sticky;
    top: 90px;
}

.avatar-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 auto;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
    border: 4px solid var(--bg-color);
}

.profile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.profile-nav-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.25rem;
    color: var(--text-color);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.2s;
    font-size: 0.9375rem;
    font-weight: 500;
}

.profile-nav-item:hover {
    background: var(--bg-gray);
    color: var(--primary-color);
    padding-left: 1.5rem;
}

.profile-nav-item.active {
    background: var(--primary-color);
    color: white;
}

.profile-nav-item.active:hover {
    background: var(--primary-hover);
    color: white;
}

.profile-nav-item i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

/* Address Cards */
.address-card {
    border: 2px solid var(--border-color);
    transition: all 0.2s;
    border-radius: var(--radius-md);
}

.address-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
    transform: translateY(-4px);
}

.address-card .btn-group {
    opacity: 0.7;
    transition: opacity 0.2s;
}

.address-card:hover .btn-group {
    opacity: 1;
}

/* ============================================
   FORMS - Professional Input Styling
   ============================================ */
.form-label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
    display: block;
}

.form-control {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.form-check-input {
    width: 1.25em;
    height: 1.25em;
    border: 2px solid var(--border-color);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ============================================
   CARDS - Unified Card Design
   ============================================ */
.card {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    margin-bottom: 1.5rem;
}

.card-header {
    background: var(--bg-gray);
    border-bottom: 2px solid var(--border-color);
    padding: 1.25rem 1.5rem;
    font-weight: 700;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card-header h5 {
    margin: 0;
    font-size: 1.25rem;
}

.card-body {
    padding: 1.5rem;
}

/* ============================================
   TABLES
   ============================================ */
.table {
    color: var(--text-color);
    margin-bottom: 0;
}

.table thead {
    background: var(--bg-gray);
    font-weight: 600;
    font-size: 0.9375rem;
}

.table thead th {
    border-bottom: 2px solid var(--border-color);
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
}

.table-hover tbody tr {
    transition: background 0.2s;
}

.table-hover tbody tr:hover {
    background: var(--bg-gray);
}

.table-responsive {
    border-radius: var(--radius-md);
    overflow: hidden;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    padding: 0.5em 0.875em;
    font-weight: 600;
    border-radius: 20px;
    font-size: 0.875em;
}

.badge.bg-info {
    background-color: var(--info-color) !important;
}

.badge.bg-warning {
    background-color: var(--warning-color) !important;
    color: var(--text-color) !important;
}

.badge.bg-primary {
    background-color: var(--primary-color) !important;
}

.badge.bg-success {
    background-color: var(--success-color) !important;
}

.badge.bg-danger {
    background-color: var(--danger-color) !important;
}

.badge.bg-secondary {
    background-color: var(--secondary-color) !important;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    gap: 0.5rem;
    margin: 2rem 0;
}

.page-link {
    color: var(--primary-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.625rem 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    margin: 0;
}

.page-link:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.page-item.disabled .page-link {
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.5;
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-warning {
    background: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.alert-info {
    background: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.alert-dismissible .btn-close {
    padding: 0.75rem;
}

/* ============================================
   DROPDOWN - Bootstrap Compatible
   ============================================ */
.dropdown-toggle::after {
    margin-left: 0.5rem;
}

.dropdown-menu {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    padding: 0.5rem 0 !important;
    margin-top: 0.5rem;
    display: none;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

/* Dropdown açılması - Bootstrap .show class ve focus-within */
.dropdown-menu.show,
.dropdown:focus-within .dropdown-menu,
.dropdown .dropdown-toggle:focus ~ .dropdown-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.dropdown:focus-within .dropdown-toggle,
.dropdown .dropdown-toggle:focus {
    color: var(--primary-color);
}

.dropdown-item {
    padding: 0.75rem 1.25rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-color) !important;
    font-weight: 500;
    border-radius: 8px;
    margin: 0 0.5rem;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(14, 165, 233, 0.08)) !important;
    color: var(--primary-color) !important;
}

.dropdown-item.active,
.dropdown-item:active {
    background: var(--gradient-primary) !important;
    color: white !important;
}

.dropdown-divider {
    margin: 0.5rem 0 !important;
    border-color: #e2e8f0 !important;
}

/* ============================================
   MODAL
   ============================================ */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 2px solid var(--border-color);
    padding: 1.5rem;
    background: var(--bg-gray);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-title {
    font-weight: 700;
    font-size: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 2px solid var(--border-color);
    padding: 1.5rem;
    background: var(--bg-gray);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ============================================
   EMPTY STATES
   ============================================ */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.empty-state i {
    font-size: 5rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    font-weight: 700;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

/* ============================================
   UTILITIES
   ============================================ */
.text-primary { color: var(--primary-color) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-success { color: var(--success-color) !important; }
.text-danger { color: var(--danger-color) !important; }
.text-warning { color: var(--warning-color) !important; }

.bg-light { background: var(--bg-gray) !important; }
.bg-primary { background: var(--primary-color) !important; }

.rounded { border-radius: var(--radius-md) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }

.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .section-header .view-all-link {
        position: static;
        transform: none;
        margin-top: 1rem;
    }
}

@media (max-width: 992px) {
    .header-wrapper {
        flex-wrap: wrap;
    }

    .header-search {
        width: 100%;
        max-width: 100%;
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }

    .main-nav {
        display: none;
    }

    .hero-slide {
        min-height: 450px;
        padding: 4rem 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
        text-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
    }

    .hero-text {
        font-size: 1.1rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.5rem;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .mega-dropdown {
        width: calc(100vw - 1.5rem);
        left: 50%;
        transform: translate(-50%, -10px);
    }

    .action-text {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-search {
        max-width: 100%;
    }

    .search-preview {
        left: -16px;
        right: -16px;
        width: calc(100vw - 32px);
        max-width: none;
    }

    .search-result-name {
        font-size: 13px;
    }

    .search-result-category {
        font-size: 11px;
    }

    .search-result-price {
        font-size: 13px;
    }

    .top-bar-content {
        justify-content: center;
        text-align: center;
    }

    .top-bar-left {
        flex-direction: column;
        gap: 0.5rem;
    }

    .top-bar .separator {
        display: none;
    }

    .hero-slide {
        padding: 2.5rem 1.5rem;
        min-height: 380px;
        justify-content: center;
    }

    .hero-slide::before {
        background: rgba(0, 0, 0, 0.5);
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: 1.75rem;
        text-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
    }

    .hero-text {
        font-size: 0.95rem;
        max-width: 100%;
    }

    .hero-buttons {
        gap: 0.75rem;
    }

    .hero-buttons .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-box h3 {
        font-size: 1.5rem;
    }

    .newsletter-form .input-group {
        flex-direction: column;
    }

    .footer-features .feature-box {
        flex-direction: column;
        text-align: center;
    }

    .payment-methods {
        justify-content: center;
        margin-top: 1rem;
    }

    .category-sidebar {
        margin-bottom: 2rem;
    }

    .profile-sidebar .card {
        position: static;
    }

    .avatar-circle {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }

    .hero-slide {
        padding: 1.5rem 1rem;
        min-height: 320px;
        border-radius: 12px;
    }

    .hero-slide::before {
        background: rgba(0, 0, 0, 0.55);
    }

    .hero-subtitle {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
        margin-bottom: 1rem;
    }

    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
        text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    }

    .hero-text {
        font-size: 0.875rem;
        margin-bottom: 1.5rem;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero-buttons .btn {
        width: 100%;
        padding: 0.6rem 1.2rem;
        font-size: 0.875rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .card-body {
        padding: 1rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .back-to-top.position-left {
        right: auto;
        left: 1rem;
    }
}

/* Cart Dropdown Styles */
.cart-dropdown-menu {
    padding: 0;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    margin-top: 10px;
}

.cart-dropdown-item {
    transition: background-color 0.2s;
}

.cart-dropdown-item:hover {
    background-color: #f8f9fa;
}

.cart-dropdown-item:last-child {
    border-bottom: none !important;
}

.cart-dropdown-footer {
    background-color: #f8f9fa;
}

/* Cart badge pulse animation */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.cart-badge {
    animation: pulse 0.3s ease-in-out;
}

/* Toast notification positioning */
.toast {
    min-width: 250px;
}

/* Cart quantity badge on buttons */
.cart-qty-badge {
    display: inline-block;
    margin-left: 4px;
    font-weight: 600;
    color: #fff;
    opacity: 0.9;
}

/* ========================================
   ADMIN TOPBAR - WordPress Style
   ======================================== */

/* Admin topbar styles moved to admin-topbar.php (only loaded for admin users) */

