/* ============================================
   DijiCommerce Tenant - Global Styles
   ============================================ */

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

:root {
    --primary: #2563EB;
    --primary-hover: #1D4ED8;
    --primary-light: #DBEAFE;
    --primary-dark: #4F46E5;
    --primary-dark-hover: #4338CA;
    --primary-dark-light: #EEF2FF;
    --success: #059669;
    --success-bg: #ECFDF5;
    --danger: #DC2626;
    --danger-bg: #FEF2F2;
    --warning: #D97706;
    --warning-bg: #FFFBEB;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 4px 24px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.05);
    --font: 'Plus Jakarta Sans', 'Inter', sans-serif;
    --transition: 0.2s ease;
}

body {
    font-family: var(--font);
    background: var(--gray-50);
    color: var(--gray-800);
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ============================================
   Site Header
   ============================================ */
.site-header {
    background: #fff;
    position: relative;
    z-index: 200;
}
.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
}

/* Top Row */
.header-top {
    padding: 9px 5px 7px 5px;
}

.header-top .header-container {
    height: 72px;
    justify-content: space-between;
}

/* Search */
.header-search {
    display: flex;
    align-items: center;
    flex: 0 1 300px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.header-search:focus-within {
    border-color: var(--gray-400);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.04);
}
.header-search input {
    border: none;
    outline: none;
    background: none;
    font-family: var(--font);
    font-size: 0.8125rem;
    color: var(--gray-800);
    width: 100%;
    padding: 0.5rem 0.75rem;
}
.header-search input::placeholder {
    color: var(--gray-400);
}
.header-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--header-theme-color, #1a1a1a);
    color: #fff;
    padding: 0 14px;
    align-self: stretch;
    cursor: pointer;
    transition: background 0.15s ease, filter 0.15s ease;
    flex-shrink: 0;
}
.header-search-btn:hover { filter: brightness(1.15); }

/* Search Page */
.search-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
.search-page-head {
    padding-top: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--gray-100);
    margin-bottom: 1.5rem;
}
.search-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0.5rem 0 0;
}
.search-page-subtitle {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin: 0.25rem 0 0;
}
.search-page > .search-page-container:last-child {
    padding-bottom: 3rem;
}
.search-pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

/* Brand / Logo */
.header-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
}
.header-top .header-container {
    position: relative;
}
.header-logo {
    height: 52px;
    max-width: 200px;
    object-fit: contain;
}
.header-brand-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.02em;
    white-space: nowrap;
}

/* Header Right Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

/* Cart Link */
.header-cart-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-800);
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.15s ease;
    position: relative;
}
.header-cart-link:hover { color: var(--header-theme-color, #1a1a1a); }
.header-cart-link svg {
    flex-shrink: 0;
    stroke: currentColor;
}
#headerCartCount {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--header-theme-color, #1a1a1a);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    padding: 0 5px;
    line-height: 1;
}

/* Hamburger Toggle */
.header-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: #fff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}
.header-menu-toggle:hover {
    border-color: var(--gray-300);
    background: var(--gray-50);
}
.hamburger-line {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.header-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.header-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}
.header-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Categories Row */
.header-cats {
    background: var(--header-theme-color, #1a1a1a);
}
.container-fluid {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
}
.row {
    display: flex;
    flex-wrap: wrap;
}
.col {
    flex: 1 0 0%;
}
.header-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    padding: 0;
}
.nav-link {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.04em;
    padding: 18px 10px;
    transition: color 0.15s ease;
    display: inline-flex;
    align-items: center;
}
.nav-link:hover {
    color: #e9e9e9;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    background: #fff;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease;
    border-bottom: 1px solid var(--gray-200);
}
.mobile-menu.is-open {
    max-height: 80vh;
    overflow-y: auto;
}
.mobile-menu-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.5rem 1.5rem 1rem;
}
.mobile-link {
    display: block;
    padding: 0.625rem 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--gray-100);
    transition: color 0.15s ease;
}
.mobile-link:last-child { border-bottom: none; }
.mobile-link:hover { color: var(--gray-900); }

@media (max-width: 768px) {
    .header-cats { display: none; }
    .header-search { display: none; }
    .header-menu-toggle { display: flex; }
    .mobile-menu { display: block; }
    .header-container { padding: 0 1rem; }
    .header-top .header-container { height: 60px; }
    .header-brand { position: static; transform: none; }
    .header-brand-text { font-size: 1.2rem; }
    .header-logo { height: 40px; }
}

/* ============================================
   Buttons
   ============================================ */

.btn-primary {
    padding: 0.875rem 2rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: opacity var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-primary:hover { opacity: 0.9; }

.btn-outline {
    padding: 0.875rem 2rem;
    background: #fff;
    color: var(--gray-800);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: border-color var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-outline:hover { border-color: var(--gray-400); }

.btn-login {
    width: 100%;
    padding: 0.8125rem;
    background: var(--primary-dark);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: background var(--transition);
}
.btn-login:hover { background: var(--primary-dark-hover); }

/* ============================================
   Hero Section (fallback when slider inactive)
   ============================================ */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}
.hero-inner {
    text-align: center;
    max-width: 640px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 1rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.hero-badge svg { width: 14px; height: 14px; }
.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
.hero p {
    font-size: 1.125rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}
.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

/* ============================================
   Hero Slider (Owl Carousel)
   ============================================ */
.owl-carousel .owl-item { backface-visibility: hidden; }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
.fadeOut { animation-name: fadeOut; }
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
.fadeIn  { animation-name: fadeIn; }
.slider-section {
    position: relative;
    width: 100%;
    background: var(--gray-100);
}
.slider-standard .hero-slider {
    max-width: 1200px;
    margin: 0 auto;
}
.hero-slide img {
    width: 100%;
    display: block;
}

.hero-slider-wrap--desktop { display: block; }
.hero-slider-wrap--mobile  { display: none; }
@media (max-width: 768px) {
    .hero-slider-wrap--desktop { display: none !important; }
    .hero-slider-wrap--mobile  { display: block !important; }
}

/* Owl nav for hero slider */
.hero-slider .owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    padding: 0 16px;
    margin: 0;
}
.hero-slider .owl-nav button.owl-prev,
.hero-slider .owl-nav button.owl-next {
    pointer-events: auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.85) !important;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    transition: all 0.2s ease;
    color: var(--gray-700);
    opacity: 0;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0;
    margin: 0;
}
.hero-slider:hover .owl-nav button.owl-prev,
.hero-slider:hover .owl-nav button.owl-next {
    opacity: 1;
}
.hero-slider .owl-nav button:hover {
    background: #fff !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.18);
}

/* Owl dots for hero slider */
.hero-slider .owl-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
}
.hero-slider .owl-dots .owl-dot {
    padding: 0;
    border: none;
    background: none;
}
.hero-slider .owl-dots .owl-dot span {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: 2px solid rgba(255,255,255,0.8);
    transition: all 0.25s ease;
}
.hero-slider .owl-dots .owl-dot.active span {
    background: #fff;
    transform: scale(1.2);
    box-shadow: 0 1px 6px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .hero-slider .owl-nav { padding: 0 8px; }
    .hero-slider .owl-nav button.owl-prev,
    .hero-slider .owl-nav button.owl-next { width: 36px; height: 36px; font-size: 1.25rem; }
    .hero-slider .owl-dots { bottom: 10px; gap: 6px; }
    .hero-slider .owl-dots .owl-dot span { width: 8px; height: 8px; }
}

/* ============================================
   Features Section
   ============================================ */
.features {
    background: #fff;
    border-top: 1px solid var(--gray-200);
    padding: 4rem 2rem;
}
.features-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.feature-card {
    text-align: center;
    padding: 1.5rem;
}
.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}
.feature-icon svg { width: 24px; height: 24px; color: var(--primary); }
.feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}
.feature-card p {
    font-size: 0.875rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: var(--footer-theme-color, #1a1a1a);
    color: rgba(255,255,255,0.6);
    font-size: 0.8125rem;
    line-height: 1.6;
    position: relative;
}
.footer-accent {
    height: 3px;
    background: var(--general-theme-color, #2563eb);
    opacity: 0.9;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
.footer-main {
    padding: 3rem 0 2.5rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr;
    gap: 3rem;
}

/* Brand col */
.footer-brand-col { padding-right: 1.5rem; }
.footer-logo {
    height: 44px;
    max-width: 160px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    margin-bottom: 1rem;
}
.footer-brand-name {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.75rem;
}
.footer-desc {
    color: rgba(255,255,255,0.5);
    font-size: 0.8125rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.footer-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.55);
    font-size: 0.8125rem;
    transition: color 0.15s ease;
}
.footer-contact-link:hover { color: #fff; }
.footer-contact-link svg { flex-shrink: 0; opacity: 0.8; }

/* Columns */
.footer-heading {
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
    color: rgba(255,255,255,0.5);
    font-size: 0.8125rem;
    transition: color 0.15s ease;
}
.footer-links a:hover { color: #fff; }

/* Bottom bar */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.25rem 0;
}
.footer-bottom .footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer-bottom span,
.footer-copyright {
    color: rgba(255,255,255,0.4);
    font-size: 0.75rem;
}
.footer-powered {
    color: rgba(255,255,255,0.3);
    font-size: 0.6875rem;
    font-weight: 600;
    transition: color 0.15s ease;
}
.footer-powered:hover { color: rgba(255,255,255,0.6); }

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .footer-brand-col {
        grid-column: 1 / -1;
        padding-right: 0;
    }
    .footer-container { padding: 0 1rem; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .footer-bottom .footer-container {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* ============================================
   Forms (shared)
   ============================================ */
.form-group {
    margin-bottom: 1.25rem;
}
.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.375rem;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-family: var(--font);
    color: var(--gray-800);
    background: #fff;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

/* ============================================
   Admin Login Page
   ============================================ */
.page-login {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1.5rem;
    background: var(--gray-100);
}
.login-wrapper {
    width: 100%;
    max-width: 400px;
}
.login-brand {
    text-align: center;
    margin-bottom: 2rem;
}
.login-brand .dot {
    width: 48px;
    height: 48px;
    background: var(--primary-dark);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}
.login-brand .dot svg {
    width: 24px;
    height: 24px;
    color: #fff;
}
.login-brand h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
}
.login-brand p {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}
.login-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 2rem;
}
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 0.8125rem;
}
.form-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    cursor: pointer;
    font-weight: 500;
}
.form-options label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-dark);
    cursor: pointer;
}
.form-options a {
    color: var(--primary-dark);
    font-weight: 600;
}
.form-options a:hover { text-decoration: underline; }
.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.8125rem;
    color: var(--gray-400);
}
.login-footer a {
    color: var(--primary-dark);
    font-weight: 600;
}

/* ============================================
   Alerts & Messages
   ============================================ */
.error-msg {
    background: var(--danger-bg);
    color: var(--danger);
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
}
.success-msg {
    background: var(--success-bg);
    color: var(--success);
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
}

/* ============================================
   Category Page
   ============================================ */
.cat-page {
    min-height: 60vh;
    background: var(--gray-50);
}
.cat-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Head */
.cat-head {
    padding-top: 2rem;
    padding-bottom: 1.5rem;
}
.cat-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}
.cat-breadcrumb a {
    color: var(--gray-400);
    transition: color 0.15s ease;
}
.cat-breadcrumb a:hover { color: var(--gray-700); }
.cat-breadcrumb-sep {
    color: var(--gray-300);
    font-size: 0.875rem;
    line-height: 1;
}
.cat-breadcrumb-current {
    color: var(--gray-700);
    font-weight: 600;
}
.cat-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.01em;
    margin: 0;
}
.cat-subtitle {
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-top: 0.25rem;
    font-weight: 500;
}

/* Grid */
.cat-page > .cat-container:last-child {
    padding-bottom: 3rem;
}
.cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.cat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    transition: all 0.2s ease;
}
.cat-card:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}
.cat-card-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
}
.cat-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cat-card-placeholder { color: var(--gray-300); }
.cat-card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    min-width: 0;
}
.cat-card-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.4;
}
.cat-card-arrow {
    color: var(--gray-300);
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.cat-card:hover .cat-card-arrow {
    color: var(--gray-600);
    transform: translateX(3px);
}

/* Empty State */
.cat-empty {
    text-align: center;
    padding: 5rem 2rem;
}
.cat-empty-icon {
    width: 80px;
    height: 80px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: var(--gray-300);
}
.cat-empty h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-700);
    margin-bottom: 0.375rem;
}
.cat-empty p {
    font-size: 0.875rem;
    color: var(--gray-400);
    margin-bottom: 1.5rem;
}
.cat-empty-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1.5rem;
    background: var(--gray-900);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: var(--font);
    transition: opacity 0.15s ease;
}
.cat-empty-btn:hover { opacity: 0.85; }

/* Section Divider */
.cat-section-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0 1.25rem;
}
.cat-section-divider::before,
.cat-section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}
.cat-section-divider span {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

/* ============================================
   Homepage Vitrin Sections
   ============================================ */
.hp-sections {
    padding-bottom: 2rem;
}
.hp-vitrin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
.hp-carousel-wrap {
    background: #f7f7f7;
    padding: 20px 0;
}

/* Vitrin Header */
.hp-vitrin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--general-theme-color, #2563eb);
    padding: 14px 20px;
    margin-bottom: 0;
}
.hp-vitrin-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin: 0;
}
.hp-vitrin-all {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    transition: color 0.15s ease;
}
.hp-vitrin-all:hover { color: #fff; }
.hp-vitrin-all svg { stroke: currentColor; }

/* Cover Banner */
.hp-cover-banner {
    display: block;
    overflow: hidden;
    transition: opacity 0.2s ease;
}
.hp-cover-banner:hover { opacity: 0.92; }
.hp-cover-banner img {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* Owl Carousel Overrides */
.hp-owl-carousel .product-card {
    margin: 0;
}
.hp-owl-carousel .owl-stage-outer {
    overflow: hidden;
}
.hp-owl-carousel .owl-nav {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    padding: 0;
    margin: 0;
}
.hp-owl-carousel .owl-nav button.owl-prev,
.hp-owl-carousel .owl-nav button.owl-next {
    pointer-events: auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--gray-200);
    background: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gray-600);
    box-shadow: var(--shadow-sm);
    transition: all 0.15s ease;
    opacity: 0;
    font-size: 1.25rem;
    line-height: 1;
    padding: 0;
    margin: 0;
}
.hp-owl-carousel:hover .owl-nav button.owl-prev,
.hp-owl-carousel:hover .owl-nav button.owl-next {
    opacity: 1;
}
.hp-owl-carousel .owl-nav button:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow);
}
.hp-owl-carousel .owl-nav button.owl-prev { margin-left: -16px; }
.hp-owl-carousel .owl-nav button.owl-next { margin-right: -16px; }
.hp-owl-carousel .owl-nav button span {
    font-size: 1.5rem;
    line-height: 1;
}
.hp-owl-carousel .owl-dots { display: none; }

@media (max-width: 768px) {
    .hp-vitrin-container { padding: 0 1rem; }
    .hp-owl-carousel .owl-nav { display: none; }
}

/* ============================================
   Product Cards
   ============================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.product-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.product-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.product-card-img {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background: var(--gray-50);
    overflow: hidden;
}
.product-card-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card:hover .product-card-img img {
    transform: none;
}
.product-card-noimg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-300);
}
.product-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 3px;
    z-index: 2;
}
.badge-soldout {
    background: #000;
    color: #fff;
}
.product-card-info {
    padding: 0.75rem 0.875rem 0.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.product-card-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--general-theme-color, #1f2937);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}
.product-card-price {
    font-size: 1rem;
    font-weight: 800;
    color: #000;
}
.product-card-action {
    padding: 0 0.875rem 0.875rem;
}
.btn-add-cart {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    box-sizing: border-box;
    padding: 10px 0;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--general-theme-color, #2563eb);
    color: #fff;
}
.btn-add-cart:hover {
    filter: brightness(1.15);
}
.btn-add-cart.btn-soldout {
    background: var(--gray-100);
    color: var(--gray-400);
    cursor: not-allowed;
}

@media (max-width: 991px) {
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .cat-container { padding: 0 1rem; }
    .cat-head { padding-top: 1.25rem; padding-bottom: 1rem; }
    .cat-title { font-size: 1.125rem; }
    .cat-grid { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.625rem; }
    .product-card-info { padding: 0.5rem 0.625rem 0.375rem; }
    .product-card-name { font-size: 0.7rem; }
    .product-card-price { font-size: 0.8125rem; }
    .product-card-action { padding: 0 0.625rem 0.625rem; }
    .btn-add-cart { padding: 8px 0; font-size: 0.75rem; }
    .cat-page > .cat-container:last-child { padding-bottom: 2rem; }
}

/* ============================================
   Product Detail Page
   ============================================ */
.pd-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
.pd-page .cat-breadcrumb {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}
.pd-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

/* Gallery */
.pd-main-img {
    width: 100%;
    aspect-ratio: 1;
    background: var(--gray-50);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pd-main-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.pd-no-img {
    color: var(--gray-300);
}
.pd-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
}
.pd-thumb {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    background: var(--gray-50);
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    transition: border-color 0.15s ease;
}
.pd-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pd-thumb.active,
.pd-thumb:hover {
    border-color: #000;
}

/* Info */
.pd-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 1rem;
    line-height: 1.3;
}
.pd-price-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}
.pd-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #000;
}
.pd-stock-badge {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 4px;
}
.pd-in-stock {
    background: #e8f5e9;
    color: #2e7d32;
}
.pd-out-of-stock {
    background: #000;
    color: #fff;
}

/* Variations */
.pd-variations {
    margin-bottom: 1.5rem;
}
.pd-variation-group {
    margin-bottom: 1rem;
}
.pd-variation-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.pd-variation-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pd-variation-btn {
    padding: 8px 18px;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    background: #fff;
    font-family: var(--font);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.15s ease;
}
.pd-variation-btn:hover {
    border-color: #000;
    color: #000;
}
.pd-variation-btn.active {
    border-color: #000;
    background: #000;
    color: #fff;
}
.pd-variation-selected {
    font-weight: 700;
    color: var(--gray-900);
}

/* Quantity */
.pd-qty {
    margin-bottom: 1.25rem;
}
.pd-qty-controls {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    overflow: hidden;
}
.pd-qty-btn {
    width: 42px;
    height: 42px;
    border: none;
    background: var(--gray-50);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.12s ease;
    user-select: none;
}
.pd-qty-btn:hover { background: var(--gray-100); }
.pd-qty-input {
    width: 52px;
    height: 42px;
    border: none;
    border-left: 1px solid var(--gray-200);
    border-right: 1px solid var(--gray-200);
    text-align: center;
    font-family: var(--font);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-900);
    background: #fff;
    -moz-appearance: textfield;
    outline: none;
}
.pd-qty-input::-webkit-inner-spin-button,
.pd-qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pd-qty-warn {
    font-size: 0.75rem;
    color: #d32f2f;
    margin-top: 6px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.2s ease, max-height 0.2s ease;
}
.pd-qty-warn.visible {
    opacity: 1;
    max-height: 30px;
}

/* Actions */
.pd-actions {
    margin-bottom: 2rem;
}
.pd-add-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 0;
    border: none;
    border-radius: 8px;
    background: #000;
    color: #fff;
    font-family: var(--font);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}
.pd-add-cart:hover { background: #222; }
.pd-btn-soldout {
    background: var(--gray-100) !important;
    color: var(--gray-400) !important;
    cursor: not-allowed !important;
}
.pd-cart-msg {
    font-size: 0.8125rem;
    font-weight: 500;
    margin-top: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.pd-cart-msg.visible { opacity: 1; }
.pd-cart-msg-success { color: #2e7d32; }
.pd-cart-msg-error { color: #d32f2f; }

/* Description */
.pd-desc {
    margin-bottom: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-100);
}
.pd-desc-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 0.75rem;
}
.pd-desc-body {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* Warranty */
.pd-warranty {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-600);
    padding: 10px 16px;
    border: 1px solid var(--gray-100);
    border-radius: 8px;
    background: var(--gray-50);
    margin-bottom: 1.5rem;
}

/* Variant Table */
.pd-variant-table {
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-100);
}
.pd-variant-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
    margin-top: 0.75rem;
}
.pd-variant-table th {
    text-align: left;
    font-weight: 600;
    color: var(--gray-500);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 8px 12px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-100);
}
.pd-variant-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--gray-50);
    color: var(--gray-700);
}
.pd-table-price {
    font-weight: 700;
    color: #000 !important;
}
.pd-table-stock-in {
    color: #2e7d32;
    font-weight: 600;
}
.pd-table-stock-out {
    color: var(--gray-400);
    font-weight: 600;
}

@media (max-width: 768px) {
    .pd-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .pd-container { padding: 0 1rem; }
    .pd-title { font-size: 1.25rem; }
    .pd-price { font-size: 1.25rem; }
    .pd-thumb { width: 60px; height: 60px; }
    .pd-variant-table { overflow-x: auto; }
    .pd-variant-table table { min-width: 500px; }
}

/* ============================================
   Cart Page
   ============================================ */
.cart-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem 3rem;
}
.cart-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 1.5rem;
}
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
    align-items: start;
}

/* Cart Items */
.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto auto 32px;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-100);
}
.cart-item:first-child { border-top: 1px solid var(--gray-100); }
.cart-item-img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--gray-50);
    display: block;
    flex-shrink: 0;
}
.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cart-item-noimg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-300);
}
.cart-item-info { min-width: 0; }
.cart-item-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-800);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cart-item-name:hover { color: #000; }
.cart-item-vars {
    display: flex;
    gap: 8px;
    margin-top: 4px;
    flex-wrap: wrap;
}
.cart-item-vars span {
    font-size: 0.7rem;
    color: var(--gray-500);
    background: var(--gray-50);
    padding: 2px 8px;
    border-radius: 4px;
}
.cart-item-price-mobile { display: none; }
.cart-item-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    overflow: hidden;
}
.cart-qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--gray-50);
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-qty-btn:hover { background: var(--gray-100); }
.cart-qty-input {
    width: 40px;
    height: 32px;
    border: none;
    border-left: 1px solid var(--gray-200);
    border-right: 1px solid var(--gray-200);
    text-align: center;
    font-family: var(--font);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-900);
    background: #fff;
    outline: none;
    -moz-appearance: textfield;
}
.cart-qty-input::-webkit-inner-spin-button,
.cart-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.cart-item-price {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-600);
    white-space: nowrap;
}
.cart-item-total {
    font-size: 0.9375rem;
    font-weight: 800;
    color: #000;
    white-space: nowrap;
    min-width: 90px;
    text-align: right;
}
.cart-item-remove {
    border: none;
    background: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}
.cart-item-remove:hover { color: #d32f2f; background: #fef2f2; }

/* Summary */
.cart-summary {
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: 12px;
    padding: 1.5rem;
    position: sticky;
    top: 2rem;
}
.cart-summary-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 1.25rem;
}
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0.75rem;
}
.cart-summary-divider {
    border-top: 1px solid var(--gray-200);
    margin: 1rem 0;
}
.cart-summary-total {
    font-size: 1.125rem;
    font-weight: 800;
    color: #000;
}
.cart-free-shipping {
    color: #2e7d32;
    font-weight: 600;
}
.cart-checkout-btn {
    display: block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: #000;
    color: #fff;
    font-family: var(--font);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.15s;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
}
.cart-checkout-btn:hover { background: #222; }
.cart-clear-btn {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    background: #fff;
    color: var(--gray-500);
    font-family: var(--font);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: all 0.15s;
}
.cart-clear-btn:hover { border-color: #d32f2f; color: #d32f2f; }

/* Cart Empty */
.cart-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--gray-400);
}
.cart-empty svg { margin-bottom: 1rem; }
.cart-empty h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-700);
    margin: 0 0 0.5rem;
}
.cart-empty p {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin: 0 0 1.5rem;
}
.cart-empty-btn {
    display: inline-block;
    padding: 12px 32px;
    background: #000;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
}
.cart-empty-btn:hover { background: #222; }

@media (max-width: 991px) {
    .cart-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
}
@media (max-width: 768px) {
    .cart-container { padding: 1rem; }
    .cart-item {
        grid-template-columns: 64px 1fr auto 28px;
        grid-template-rows: auto auto;
        gap: 0.5rem 0.75rem;
    }
    .cart-item-img { width: 64px; height: 64px; }
    .cart-item-price { display: none; }
    .cart-item-price-mobile {
        display: block;
        font-size: 0.8rem;
        font-weight: 700;
        color: #000;
        margin-top: 4px;
    }
    .cart-item-qty { grid-column: 1 / 3; }
    .cart-item-total { grid-column: 3; grid-row: 2; }
}

/* ============================================
   Checkout Page
   ============================================ */
.co-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}
.co-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2.5rem;
    align-items: start;
}

/* Steps */
.co-step {
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
}
.co-step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #000;
    color: #fff;
    cursor: default;
}
.co-step:not(.active):not(.done) .co-step-header {
    background: var(--gray-100);
    color: var(--gray-400);
}
.co-step.done .co-step-header {
    background: var(--gray-100);
    color: var(--gray-600);
}
.co-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    border: 2px solid currentColor;
}
.co-step.active .co-step-num {
    background: #fff;
    color: #000;
    border-color: #fff;
}
.co-step-title {
    font-size: 0.9375rem;
    font-weight: 600;
}
.co-step-body {
    padding: 20px;
}
.co-section-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-700);
    margin: 0 0 1rem;
}

/* Form */
.co-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.co-form-group {
    margin-bottom: 12px;
}
.co-form-group input,
.co-form-group textarea {
    width: 100%;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 12px 14px;
    font-family: var(--font);
    font-size: 0.875rem;
    color: var(--gray-800);
    background: #fff;
    outline: none;
    transition: border-color 0.15s;
    box-sizing: border-box;
}
.co-form-group input:focus,
.co-form-group textarea:focus {
    border-color: #000;
}
.co-form-group input.co-input-error,
.co-form-group textarea.co-input-error {
    border-color: #d32f2f;
}
.co-form-group input::placeholder,
.co-form-group textarea::placeholder {
    color: var(--gray-400);
}
.co-form-group textarea {
    resize: vertical;
    min-height: 70px;
}

.co-next-btn,
.co-submit-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: #000;
    color: #fff;
    font-family: var(--font);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    margin-top: 4px;
}
.co-next-btn:hover,
.co-submit-btn:hover { background: #222; }
.co-submit-btn:disabled { background: var(--gray-300); cursor: wait; }

.co-step-actions {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}
.co-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 14px 20px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    background: #fff;
    color: var(--gray-600);
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.co-back-btn:hover { border-color: var(--gray-400); color: var(--gray-800); }
.co-submit-btn { flex: 1; }

/* Payment Tabs */
.co-payment-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 1.25rem;
}
.co-pay-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    background: #fff;
    font-family: var(--font);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-500);
    cursor: pointer;
    transition: all 0.15s ease;
}
.co-pay-tab:hover { border-color: var(--gray-400); color: var(--gray-700); }
.co-pay-tab.active {
    border-color: #000;
    color: #000;
    background: var(--gray-50);
}

/* Payment Panels */
.co-pay-panel { display: none; margin-bottom: 1rem; }
.co-pay-panel.active { display: block; }

.co-field-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

/* Bank Selection */
.co-bank-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 1.25rem;
}
.co-bank-option {
    display: block;
    cursor: pointer;
    position: relative;
}
.co-bank-option input { display: none; }
.co-bank-card {
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    padding: 14px;
    transition: border-color 0.15s;
}
.co-bank-option.selected .co-bank-card {
    border-color: #000;
    background: var(--gray-50);
}
.co-bank-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--gray-800);
}
.co-bank-holder {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 2px;
}
.co-bank-iban {
    font-size: 0.875rem;
    font-weight: 600;
    color: #000;
    margin-top: 6px;
    font-family: monospace;
    letter-spacing: 0.03em;
}

/* Transfer Code */
.co-transfer-code {
    background: #fef9e7;
    border: 1px solid #f9e4a0;
    border-radius: 10px;
    padding: 1.25rem;
    text-align: center;
    margin-bottom: 1rem;
}
.co-transfer-code-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 8px;
}
.co-transfer-code-value {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: #000;
    font-family: monospace;
    padding: 6px 0;
}
.co-transfer-code-note {
    font-size: 0.7rem;
    color: var(--gray-500);
    line-height: 1.5;
    margin-top: 6px;
}

.co-msg {
    margin-top: 12px;
    font-size: 0.8125rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.2s;
}
.co-msg.visible { opacity: 1; }
.co-msg-error { color: #d32f2f; }

/* Summary */
.co-summary {
    background: #fff;
    border: 1px solid var(--gray-100);
    border-radius: 12px;
    padding: 1.5rem;
    position: sticky;
    top: 2rem;
}
.co-summary-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}
.co-summary-img {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--gray-50);
    flex-shrink: 0;
    position: relative;
}
.co-summary-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.co-summary-qty {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #000;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.625rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.co-summary-info { flex: 1; min-width: 0; }
.co-summary-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.co-summary-vars {
    font-size: 0.7rem;
    color: var(--gray-500);
    margin-top: 2px;
}
.co-summary-price {
    font-size: 0.875rem;
    font-weight: 700;
    color: #000;
    white-space: nowrap;
}
.co-summary-divider {
    border-top: 1px solid var(--gray-100);
    margin: 12px 0;
}
.co-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
    color: var(--gray-600);
    padding: 4px 0;
}
.co-summary-total {
    font-size: 1rem;
    font-weight: 800;
    color: #000;
}
.co-free { color: #2e7d32; font-weight: 600; }

@media (max-width: 991px) {
    .co-layout { grid-template-columns: 1fr; }
    .co-summary { position: static; order: -1; }
}
@media (max-width: 576px) {
    .co-container { padding: 1rem; }
    .co-form-row { grid-template-columns: 1fr; }
}

/* ============================================
   Order Success Page
   ============================================ */
.os-container {
    max-width: 680px;
    margin: 0 auto;
    padding: 3rem 2rem;
    text-align: center;
}
.os-icon { margin-bottom: 1rem; }
.os-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 0.5rem;
}
.os-subtitle {
    font-size: 0.9375rem;
    color: var(--gray-600);
    margin: 0 0 2rem;
}
.os-subtitle strong { color: #000; }

.os-bank-section {
    text-align: left;
    background: var(--gray-50);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.os-bank-section h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 0.5rem;
}
.os-bank-section p {
    font-size: 0.8125rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0 0 1rem;
}
.os-bank-list { display: flex; flex-direction: column; gap: 8px; }
.os-bank-card {
    background: #fff;
    border: 1px solid var(--gray-100);
    border-radius: 8px;
    padding: 12px;
}
.os-bank-name { font-size: 0.8125rem; font-weight: 700; color: var(--gray-800); }
.os-bank-holder { font-size: 0.75rem; color: var(--gray-500); margin-top: 2px; }
.os-bank-iban { font-size: 0.8125rem; font-weight: 600; color: #000; margin-top: 4px; font-family: monospace; }

.os-order-details {
    text-align: left;
    margin-bottom: 2rem;
}
.os-order-details h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 1rem;
}
.os-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
}
.os-item-img {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--gray-50);
    flex-shrink: 0;
}
.os-item-img img { width: 100%; height: 100%; object-fit: cover; }
.os-item-info { flex: 1; min-width: 0; }
.os-item-name { font-size: 0.8125rem; font-weight: 600; color: var(--gray-800); }
.os-item-vars { font-size: 0.7rem; color: var(--gray-500); margin-top: 2px; }
.os-item-qty { font-size: 0.7rem; color: var(--gray-500); margin-top: 2px; }
.os-item-price { font-size: 0.875rem; font-weight: 700; color: #000; }
.os-total {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    font-size: 1.125rem;
    font-weight: 800;
    color: #000;
    border-top: 2px solid #000;
    margin-top: 8px;
}

.os-home-btn {
    display: inline-block;
    padding: 14px 40px;
    background: #000;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: background 0.15s;
}
.os-home-btn:hover { background: #222; }

/* ============================================
   Utility Classes
   ============================================ */
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.8125rem; }
.text-muted { color: var(--gray-500); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.hidden { display: none; }

/* ============================================
   Metin sayfası (CKEditor içerik)
   ============================================ */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 2rem 4rem;
}
@media (max-width: 768px) {
    .page-container { padding: 1.5rem 1rem 3rem; }
}
.page-content { max-width: 48rem; margin: 0 auto; }
.page-content-title { font-size: 1.75rem; font-weight: 700; margin-bottom: 1.25rem; }
.page-content-body { line-height: 1.7; }
.page-content-body p { margin-bottom: 1rem; }
.page-content-body h2 { font-size: 1.25rem; margin-top: 1.5rem; margin-bottom: 0.75rem; }
.page-content-body ul, .page-content-body ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.page-content-body img { max-width: 100%; height: auto; }
.page-content-body a { color: var(--primary, #2563eb); text-decoration: underline; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .hero-actions { flex-direction: column; }
    .login-card { padding: 1.5rem; }
}
