/* assets/css/style.css - Twin Slides Collections */

:root {
  --primary: #1a1a2e;
  --accent: #e94560;
  --gold: #f4a261;
  --light: #f8f9fa;
  --card-shadow: 0 4px 20px rgba(0,0,0,.08);
  --radius: 12px;
  --transition: all .25s ease;
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
body { font-family: 'Inter', 'Segoe UI', sans-serif; color: #2d2d2d; background: #fff; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #c73652; }
img { max-width: 100%; height: auto; }

/* ── Topbar ── */
.topbar { background: var(--primary); color: #adb5bd; font-size: .82rem; padding: 6px 0; }
.topbar a { color: #adb5bd; }
.topbar .social-icons a { margin: 0 4px; font-size: 1rem; transition: var(--transition); }
.topbar .social-icons a:hover { color: var(--accent); }

/* ── Navbar ── */
.navbar { background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.07); padding: 12px 0; position: sticky; top: 0; z-index: 1020; }
.navbar-brand { font-weight: 800; font-size: 1.4rem; color: var(--primary) !important; letter-spacing: -.5px; }
.navbar-brand span { color: var(--accent); }
.nav-link { font-weight: 500; color: #444 !important; padding: .5rem 1rem !important; border-radius: 8px; transition: var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--accent) !important; background: rgba(233,69,96,.07); }
.cart-badge { position: relative; }
.cart-badge .badge { position: absolute; top: -6px; right: -8px; background: var(--accent); font-size: .65rem; padding: 3px 5px; border-radius: 50%; }

/* ── Hero ── */
.hero { background: linear-gradient(135deg, var(--primary) 0%, #16213e 60%, #0f3460 100%); color: #fff; padding: 100px 0 80px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: url('../images/hero-pattern.svg') repeat; opacity: .05; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.15; }
.hero .accent { color: var(--gold); }
.hero p { font-size: 1.15rem; opacity: .85; }
.hero-badge { background: var(--accent); color: #fff; padding: 6px 16px; border-radius: 50px; font-size: .82rem; font-weight: 600; display: inline-block; margin-bottom: 16px; }

/* ── Buttons ── */
.btn-accent { background: var(--accent); border: none; color: #fff; font-weight: 600; border-radius: 8px; padding: 12px 28px; transition: var(--transition); }
.btn-accent:hover { background: #c73652; color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(233,69,96,.3); }
.btn-outline-accent { border: 2px solid var(--accent); color: var(--accent); border-radius: 8px; padding: 10px 24px; font-weight: 600; transition: var(--transition); background: transparent; }
.btn-outline-accent:hover { background: var(--accent); color: #fff; }
.btn-dark-solid { background: var(--primary); color: #fff; border-radius: 8px; padding: 12px 28px; font-weight: 600; border: none; transition: var(--transition); }
.btn-dark-solid:hover { background: #0d0d1a; color: #fff; transform: translateY(-2px); }

/* ── Category Pills ── */
.category-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.cat-pill { border: 2px solid #e9ecef; border-radius: 50px; padding: 8px 20px; font-size: .9rem; font-weight: 500; cursor: pointer; transition: var(--transition); background: #fff; color: #555; }
.cat-pill:hover, .cat-pill.active { border-color: var(--accent); background: var(--accent); color: #fff; }

/* ── Product Card ── */
.product-card { border: none; border-radius: var(--radius); box-shadow: var(--card-shadow); transition: var(--transition); overflow: hidden; background: #fff; }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,.12); }
.product-card .card-img-wrap { position: relative; overflow: hidden; height: 240px; background: #f5f5f5; }
.product-card .card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .card-img-wrap img { transform: scale(1.06); }
.product-card .badge-sale { position: absolute; top: 12px; left: 12px; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 6px; }
.product-card .badge-new { position: absolute; top: 12px; right: 12px; background: var(--gold); color: var(--primary); font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 6px; }
.product-card .card-body { padding: 16px; }
.product-card .product-name { font-weight: 700; font-size: 1rem; color: var(--primary); margin-bottom: 4px; }
.product-card .price-wrap { display: flex; align-items: center; gap: 10px; }
.product-card .price-current { font-size: 1.1rem; font-weight: 800; color: var(--accent); }
.product-card .price-original { font-size: .9rem; color: #999; text-decoration: line-through; }
.product-card .quick-add { opacity: 0; transform: translateY(10px); transition: var(--transition); }
.product-card:hover .quick-add { opacity: 1; transform: translateY(0); }
.color-dot { width: 18px; height: 18px; border-radius: 50%; display: inline-block; border: 2px solid #fff; box-shadow: 0 0 0 1px #ccc; cursor: pointer; transition: var(--transition); }
.color-dot.selected { box-shadow: 0 0 0 2px var(--accent); transform: scale(1.2); }

/* ── Section Headings ── */
.section-title { font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--primary); }
.section-subtitle { color: #777; font-size: 1rem; }
.section-divider { width: 60px; height: 4px; background: var(--accent); border-radius: 4px; margin-bottom: 12px; }

/* ── Product Detail Page ── */
.product-gallery .main-img { border-radius: var(--radius); overflow: hidden; background: #f5f5f5; }
.product-gallery .main-img img { width: 100%; max-height: 480px; object-fit: cover; }
.thumb-strip { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb-strip img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; transition: var(--transition); }
.thumb-strip img.active, .thumb-strip img:hover { border-color: var(--accent); }
.size-btn { border: 2px solid #dee2e6; border-radius: 8px; padding: 8px 16px; font-weight: 600; cursor: pointer; transition: var(--transition); background: #fff; }
.size-btn:hover, .size-btn.active { border-color: var(--accent); background: var(--accent); color: #fff; }
.size-btn.out-stock { opacity: .4; cursor: not-allowed; }
.charm-option { border: 2px solid #dee2e6; border-radius: 8px; padding: 10px 14px; cursor: pointer; transition: var(--transition); margin-bottom: 8px; }
.charm-option:hover, .charm-option.selected { border-color: var(--accent); background: rgba(233,69,96,.05); }

/* ── Cart ── */
.cart-item { border-radius: var(--radius); border: 1px solid #eee; padding: 16px; margin-bottom: 12px; background: #fff; }
.cart-qty-ctrl { display: flex; align-items: center; gap: 12px; }
.cart-qty-ctrl button { width: 32px; height: 32px; border-radius: 8px; border: 1px solid #dee2e6; background: #f8f9fa; font-weight: 700; cursor: pointer; transition: var(--transition); }
.cart-qty-ctrl button:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.order-summary { background: var(--light); border-radius: var(--radius); padding: 24px; position: sticky; top: 90px; }

/* ── Countdown Timer ── */
.countdown { display: flex; gap: 8px; }
.countdown .unit { background: var(--primary); color: #fff; border-radius: 8px; padding: 8px 12px; text-align: center; min-width: 56px; }
.countdown .unit span { display: block; font-size: 1.4rem; font-weight: 800; line-height: 1; }
.countdown .unit small { font-size: .65rem; opacity: .7; text-transform: uppercase; }

/* ── WhatsApp Float ── */
.whatsapp-float { position: fixed; bottom: 30px; right: 30px; z-index: 9999; }
.whatsapp-float a { display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; background: #25d366; border-radius: 50%; color: #fff; font-size: 1.6rem; box-shadow: 0 4px 20px rgba(37,211,102,.4); transition: var(--transition); }
.whatsapp-float a:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.5); }
.whatsapp-float .tooltip-wa { position: absolute; right: 68px; top: 50%; transform: translateY(-50%); background: #25d366; color: #fff; padding: 6px 12px; border-radius: 8px; font-size: .82rem; white-space: nowrap; opacity: 0; transition: var(--transition); pointer-events: none; }
.whatsapp-float:hover .tooltip-wa { opacity: 1; }

/* ── Footer ── */
footer { background: var(--primary); color: #adb5bd; padding: 60px 0 30px; }
footer h5 { color: #fff; font-weight: 700; margin-bottom: 20px; }
footer a { color: #adb5bd; transition: var(--transition); }
footer a:hover { color: var(--accent); }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.07); color: #adb5bd; margin-right: 8px; font-size: 1.1rem; transition: var(--transition); }
.footer-social a:hover { background: var(--accent); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); margin-top: 40px; padding-top: 24px; font-size: .85rem; }

/* ── Breadcrumb ── */
.breadcrumb-wrap { background: #f8f9fa; padding: 14px 0; border-bottom: 1px solid #eee; }
.breadcrumb-item + .breadcrumb-item::before { color: #aaa; }
.breadcrumb-item.active { color: var(--accent); }

/* ── Account / Auth ── */
.auth-card { max-width: 460px; margin: 60px auto; background: #fff; border-radius: var(--radius); box-shadow: var(--card-shadow); overflow: hidden; }
.auth-card .auth-header { background: var(--primary); padding: 32px; text-align: center; color: #fff; }
.auth-card .auth-body { padding: 32px; }
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 .2rem rgba(233,69,96,.15); }

/* ── Admin / Dashboard ── */
.admin-sidebar { width: 260px; background: var(--primary); min-height: 100vh; position: fixed; left: 0; top: 0; z-index: 1000; transition: var(--transition); overflow-y: auto; }
.admin-sidebar .brand { padding: 24px 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-sidebar .brand-name { font-weight: 800; font-size: 1.1rem; color: #fff; }
.admin-sidebar .brand-role { font-size: .75rem; color: #adb5bd; }
.admin-sidebar .nav-item { margin: 2px 12px; }
.admin-sidebar .nav-link { color: #adb5bd; border-radius: 10px; padding: 10px 14px; font-size: .9rem; display: flex; align-items: center; gap: 10px; transition: var(--transition); }
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active { background: rgba(233,69,96,.15); color: #fff; }
.admin-sidebar .nav-link i { width: 20px; text-align: center; font-size: 1rem; }
.admin-sidebar .nav-section { font-size: .7rem; color: #6c757d; text-transform: uppercase; letter-spacing: 1px; padding: 16px 26px 6px; font-weight: 600; }
.admin-content { margin-left: 260px; min-height: 100vh; background: #f0f2f5; transition: var(--transition); }
.admin-topbar { background: #fff; padding: 16px 28px; box-shadow: 0 2px 8px rgba(0,0,0,.06); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 999; }
.admin-topbar .page-title { font-weight: 700; font-size: 1.2rem; color: var(--primary); }
.admin-page { padding: 28px; }

/* ── Stat Cards ── */
.stat-card { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--card-shadow); border-left: 4px solid transparent; display: flex; align-items: center; gap: 20px; }
.stat-card.stat-sales { border-color: var(--accent); }
.stat-card.stat-orders { border-color: #0ea5e9; }
.stat-card.stat-products { border-color: var(--gold); }
.stat-card.stat-customers { border-color: #22c55e; }
.stat-card .stat-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.stat-card.stat-sales .stat-icon { background: rgba(233,69,96,.1); color: var(--accent); }
.stat-card.stat-orders .stat-icon { background: rgba(14,165,233,.1); color: #0ea5e9; }
.stat-card.stat-products .stat-icon { background: rgba(244,162,97,.1); color: var(--gold); }
.stat-card.stat-customers .stat-icon { background: rgba(34,197,94,.1); color: #22c55e; }
.stat-card .stat-value { font-size: 1.8rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-card .stat-label { font-size: .82rem; color: #777; margin-top: 4px; }
.stat-card .stat-change { font-size: .8rem; font-weight: 600; }
.stat-change.up { color: #22c55e; }
.stat-change.down { color: var(--accent); }

/* ── Data Table ── */
.admin-table { background: #fff; border-radius: var(--radius); box-shadow: var(--card-shadow); overflow: hidden; }
.admin-table .table { margin-bottom: 0; }
.admin-table .table th { background: #f8f9fa; font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; font-weight: 700; color: #555; border-bottom: 2px solid #eee; }
.admin-table .table td { vertical-align: middle; font-size: .9rem; }
.admin-table .table-header { padding: 20px 24px 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #eee; }

/* ── Status Badges ── */
.status-badge { display: inline-block; padding: 4px 12px; border-radius: 50px; font-size: .75rem; font-weight: 700; }
.status-pending   { background: #fff3cd; color: #856404; }
.status-paid      { background: #d1fae5; color: #065f46; }
.status-shipped   { background: #dbeafe; color: #1e40af; }
.status-delivered { background: #d1fae5; color: #065f46; }
.status-cancelled { background: #fee2e2; color: #991b1b; }
.status-processing{ background: #e0e7ff; color: #3730a3; }
.status-failed    { background: #fee2e2; color: #991b1b; }

/* ── Low Stock Alert ── */
.low-stock-item { background: #fff3cd; border-radius: 8px; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; font-size: .88rem; margin-bottom: 8px; }
.low-stock-item .stock-count { font-weight: 700; color: var(--accent); }

/* ── Image Upload Preview ── */
.img-upload-wrap { border: 2px dashed #dee2e6; border-radius: var(--radius); padding: 24px; text-align: center; cursor: pointer; transition: var(--transition); background: #fafafa; }
.img-upload-wrap:hover { border-color: var(--accent); background: rgba(233,69,96,.03); }
.img-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; margin-top: 12px; }
.img-preview-item { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 1; }
.img-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.img-preview-item .remove-img { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; background: var(--accent); color: #fff; border-radius: 50%; border: none; font-size: .8rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* ── Color Swatch Input ── */
.color-swatch-add { display: flex; gap: 10px; align-items: center; }
.swatch-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.swatch-item { display: flex; align-items: center; gap: 8px; background: #f8f9fa; border-radius: 8px; padding: 6px 10px 6px 6px; }
.swatch-dot { width: 28px; height: 28px; border-radius: 6px; border: 1px solid rgba(0,0,0,.1); }

/* ── Charts container ── */
.chart-card { background: #fff; border-radius: var(--radius); box-shadow: var(--card-shadow); padding: 24px; }

/* ── Mobile sidebar toggle ── */
.sidebar-toggle { display: none; }
@media (max-width: 991px) {
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-content { margin-left: 0; }
    .sidebar-toggle { display: block; }
    .sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 999; }
    .sidebar-overlay.show { display: block; }
}

/* ── Responsive Product Grid ── */
@media (max-width: 767px) {
    .hero { padding: 60px 0 50px; }
    .hero h1 { font-size: 2rem; }
    .admin-page { padding: 16px; }
}

/* ── Animations ── */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-in { animation: fadeInUp .4s ease both; }

/* ── Utilities ── */
.text-accent { color: var(--accent) !important; }
.bg-primary-dark { background: var(--primary) !important; }
.rounded-xl { border-radius: var(--radius) !important; }
.fw-800 { font-weight: 800 !important; }
