/* ============================================================
   ClothAura — Main Storefront Stylesheet
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* --- Variables --- */
:root {
  --primary:        #1e1b4b;
  --primary-light:  #312e81;
  --secondary:      #7c3aed;
  --accent:         #f59e0b;
  --accent-dark:    #d97706;
  --success:        #10b981;
  --danger:         #ef4444;
  --bg:             #f8f7ff;
  --white:          #ffffff;
  --text:           #111827;
  --text-muted:     #6b7280;
  --border:         #e5e7eb;
  --shadow-sm:      0 1px 3px rgba(30,27,75,.08);
  --shadow-md:      0 4px 16px rgba(30,27,75,.12);
  --shadow-lg:      0 8px 32px rgba(30,27,75,.18);
  --radius:         12px;
  --radius-sm:      8px;
  --radius-lg:      20px;
  --transition:     .25s ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
input, select, textarea, button { font-family: inherit; }

/* --- Typography --- */
h1,h2,h3,h4,h5 { font-family: 'Outfit', sans-serif; font-weight: 700; line-height: 1.2; }

/* --- Container --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px; gap: 1.5rem;
}
.navbar-logo { font-family: 'Outfit', sans-serif; font-size: 2.2rem; font-weight: 800; color: var(--primary); }
.navbar-logo span { color: var(--accent); }
.navbar-nav { display: flex; align-items: center; gap: 1.75rem; }
.navbar-nav a { font-size: .95rem; font-weight: 500; color: var(--text-muted); transition: color var(--transition); }
.navbar-nav a:hover, .navbar-nav a.active { color: var(--primary); }
.navbar-actions { display: flex; align-items: center; gap: 1rem; }
.btn-icon { position: relative; width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--bg); cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1.1rem; transition: background var(--transition); }
.btn-icon:hover { background: var(--border); }
.cart-badge { position: absolute; top: -4px; right: -4px; background: var(--accent); color: #fff; font-size: .65rem; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; border: none; background: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--primary); border-radius: 2px; transition: var(--transition); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .65rem 1.5rem; border-radius: var(--radius-sm); font-weight: 600; font-size: .95rem; cursor: pointer; border: none; transition: all var(--transition); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; }
.btn-primary:hover { opacity: .88; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-accent { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; }
.btn-accent:hover { opacity: .88; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { opacity: .85; }
.btn-sm { padding: .45rem 1rem; font-size: .85rem; }
.btn-lg { padding: .9rem 2rem; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero-slider-wrap { position: relative; overflow: hidden; background: #000; }
.hero-slider { display: flex; transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); height: clamp(400px, 70vh, 600px); }
.hero-slide { min-width: 100%; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-slide-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.6; z-index: 1; transition: transform 6s linear; }
.hero-slide.active .hero-slide-bg { transform: scale(1.05); }
/*.hero-slide-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30,27,75,0.9) 0%, rgba(124,58,237,0.4) 100%); z-index: 2; }*/
.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0,0,0,.15),
        rgba(0,0,0,.05)
    );
}
.hero-slide-content { position: relative; z-index: 3; color: #fff; text-align: center; max-width: 800px; padding: 0 2rem; opacity: 0; transform: translateY(30px); transition: all 0.8s ease 0.3s; }
.hero-slide.active .hero-slide-content { opacity: 1; transform: translateY(0); }
.hero-slide-title { font-family: 'Outfit', sans-serif; font-size: clamp(3.5rem, 6vw, 5.5rem); font-weight: 800; line-height: 1.1; margin-bottom: 1rem; text-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.hero-slide-subtitle { font-size: clamp(1rem, 2vw, 1.25rem); opacity: 0.9; margin-bottom: 2rem; text-shadow: 0 2px 10px rgba(0,0,0,0.3); line-height: 1.6; }
.hero-slider-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; background: rgba(255,255,255,0.1); border: 2px solid rgba(255,255,255,0.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.5rem; cursor: pointer; z-index: 10; transition: all var(--transition); backdrop-filter: blur(4px); }
.hero-slider-nav:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-50%) scale(1.1); }
.hero-slider-prev { left: 2rem; }
.hero-slider-next { right: 2rem; }
.hero-slider-dots { position: absolute; bottom: 2rem; left: 0; right: 0; display: flex; justify-content: center; gap: 0.75rem; z-index: 10; }
.slider-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.5); background: transparent; cursor: pointer; transition: all var(--transition); }
.slider-dot.active { background: var(--accent); border-color: var(--accent); transform: scale(1.3); }

/* ============================================================
   SECTION
   ============================================================ */
.section { padding: 5rem 0; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header .tag { display: inline-block; background: #ede9fe; color: var(--secondary); padding: .3rem .9rem; border-radius: 999px; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .75rem; }
.section-header h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--primary); margin-bottom: .75rem; }
.section-header p { color: var(--text-muted); max-width: 500px; margin: 0 auto; }

/* ============================================================
   PRODUCT CARD
   ============================================================ */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }
.product-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: all var(--transition); position: relative; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-card-img { position: relative; overflow: hidden; aspect-ratio: 3/4; background: #f3f4f6; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.product-card:hover .product-card-img img { transform: scale(1.06); }
.product-card-badge { position: absolute; top: .75rem; left: .75rem; background: var(--danger); color: #fff; font-size: .7rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; text-transform: uppercase; }
.product-card-badge.new { background: var(--success); }
.product-card-body { padding: 1rem 1.25rem 1.25rem; }
.product-card-cat { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--secondary); margin-bottom: .35rem; }
.product-card-name { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 1rem; color: var(--primary); margin-bottom: .5rem; line-height: 1.3; }
.product-card-price { display: flex; align-items: center; gap: .5rem; }
.price-current { font-weight: 700; font-size: 1.05rem; color: var(--primary); }
.price-old { font-size: .85rem; color: var(--text-muted); text-decoration: line-through; }
.product-card-footer { padding: 0 1.25rem 1.25rem; }

/* ============================================================
   CATEGORY CARDS
   ============================================================ */
/*.categories-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; }*/
.categories-grid { display: grid; grid-template-columns: repeat(5, 1fr);gap: 1.25rem; justify-content: center;}
.category-card { flex: 1 1 200px; max-width: 280px; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; cursor: pointer; }
.category-card-bg { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.category-card:hover .category-card-bg { transform: scale(1.08); }
.category-card-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(30,27,75,.82) 100%); display: flex; align-items: flex-end; padding: 1.25rem; }
.category-card-overlay h3 { color: #fff; font-family: 'Outfit', sans-serif; font-size: 1.15rem; }

/* ============================================================
   FLASH MESSAGES
   ============================================================ */
.flash-msg { padding: .9rem 1.25rem; border-radius: var(--radius-sm); margin: 1rem 0; font-size: .95rem; font-weight: 500; }
.flash-success { background: #d1fae5; color: #065f46; border-left: 4px solid var(--success); }
.flash-error   { background: #fee2e2; color: #991b1b; border-left: 4px solid var(--danger); }
.flash-warning { background: #fef3c7; color: #92400e; border-left: 4px solid var(--accent); }
.flash-info    { background: #ede9fe; color: #5b21b6; border-left: 4px solid var(--secondary); }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: .875rem; font-weight: 600; color: var(--primary); margin-bottom: .4rem; }
.form-control { width: 100%; padding: .7rem 1rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: .95rem; color: var(--text); background: var(--white); transition: border var(--transition); }
.form-control:focus { outline: none; border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(124,58,237,.12); }
.form-control::placeholder { color: #9ca3af; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ============================================================
   CART & CHECKOUT
   ============================================================ */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; padding: .75rem 1rem; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); border-bottom: 2px solid var(--border); }
.cart-table td { padding: 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-item-img { width: 70px; height: 90px; object-fit: cover; border-radius: var(--radius-sm); }
.qty-control { display: flex; align-items: center; gap: .5rem; }
.qty-btn { width: 30px; height: 30px; border: 1.5px solid var(--border); background: var(--white); border-radius: 6px; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; transition: all var(--transition); }
.qty-btn:hover { border-color: var(--secondary); color: var(--secondary); }
.qty-input { width: 48px; text-align: center; border: 1.5px solid var(--border); border-radius: 6px; padding: .3rem; font-size: .95rem; }
.order-summary-box { background: var(--white); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-sm); }
.order-summary-row { display: flex; justify-content: space-between; padding: .6rem 0; font-size: .95rem; }
.order-summary-row.total { font-weight: 700; font-size: 1.1rem; color: var(--primary); border-top: 2px solid var(--border); margin-top: .5rem; padding-top: 1rem; }

/* ============================================================
   PAYMENT METHOD SELECTOR
   ============================================================ */
.payment-options { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.payment-option input[type=radio] { display: none; }
.payment-option-card { border: 2px solid var(--border); border-radius: var(--radius); padding: 1.25rem; cursor: pointer; transition: all var(--transition); text-align: center; }
.payment-option input:checked + .payment-option-card { border-color: var(--secondary); background: #f5f3ff; }
.payment-option-card .payment-icon { font-size: 2rem; margin-bottom: .5rem; }
.payment-option-card h4 { font-family: 'Outfit', sans-serif; color: var(--primary); font-size: 1rem; }
.payment-option-card p { font-size: .8rem; color: var(--text-muted); margin-top: .25rem; }

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; padding: 3rem 0 2.5rem; }
.page-header h1 { font-size: 2rem; margin-bottom: .5rem; }
.breadcrumb { display: flex; align-items: center; gap: .5rem; font-size: .85rem; opacity: .75; }
.breadcrumb a { color: #fff; }
.breadcrumb span { opacity: .6; }

/* ============================================================
   PRODUCT DETAIL
   ============================================================ */
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.product-gallery-main { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; background: #f3f4f6; }
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery-thumbs { display: flex; gap: .75rem; margin-top: .75rem; flex-wrap: wrap; }
.thumb-img { width: 70px; height: 90px; object-fit: cover; border-radius: var(--radius-sm); border: 2px solid transparent; cursor: pointer; transition: border var(--transition); }
.thumb-img.active, .thumb-img:hover { border-color: var(--secondary); }
.product-detail-info { position: sticky; top: 90px; }
.product-detail-info h1 { font-size: 1.9rem; color: var(--primary); margin-bottom: .75rem; }
.product-detail-price { font-size: 1.8rem; font-weight: 800; color: var(--primary); margin-bottom: 1.5rem; }
.product-detail-price .old-price { font-size: 1.1rem; color: var(--text-muted); text-decoration: line-through; font-weight: 400; margin-left: .5rem; }
.size-options, .color-options { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.size-btn { padding: .4rem .9rem; border: 2px solid var(--border); border-radius: 6px; cursor: pointer; font-size: .9rem; font-weight: 600; transition: all var(--transition); background: var(--white); }
.size-btn:hover, .size-btn.active { border-color: var(--secondary); color: var(--secondary); }
.color-btn { width: 28px; height: 28px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; transition: all var(--transition); }
.color-btn.active { border-color: var(--primary); transform: scale(1.15); }

/* ============================================================
   SIDEBAR FILTER
   ============================================================ */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: start; }
.filter-sidebar { background: var(--white); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); position: sticky; top: 90px; }
.filter-title { font-family: 'Outfit', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-bottom: 1.25rem; }
.filter-group { margin-bottom: 1.5rem; }
.filter-group label { display: block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: .75rem; }
.filter-check { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; cursor: pointer; font-size: .9rem; }
.filter-check input { accent-color: var(--secondary); }

/* ============================================================
   ACCOUNT & AUTH
   ============================================================ */
.auth-wrapper { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary), var(--secondary)); padding: 2rem; }
.auth-card { background: var(--white); border-radius: var(--radius-lg); padding: 2.5rem; width: 100%; max-width: 440px; box-shadow: var(--shadow-lg); }
.auth-logo { text-align: center; margin-bottom: 2rem; }
.auth-logo h1 { font-size: 2rem; color: var(--primary); }
.auth-logo h1 span { color: var(--accent); }
.auth-logo p { color: var(--text-muted); font-size: .9rem; margin-top: .25rem; }
.auth-footer { text-align: center; margin-top: 1.5rem; font-size: .9rem; color: var(--text-muted); }
.auth-footer a { color: var(--secondary); font-weight: 600; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--primary); color: rgba(255,255,255,.8); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer-logo { font-family: 'Outfit', sans-serif; font-size: 1.6rem; font-weight: 800; color: #fff; margin-bottom: 1rem; }
.footer-logo span { color: var(--accent); }
.footer-desc { font-size: .9rem; line-height: 1.7; opacity: .75; }
.footer-col h4 { font-family: 'Outfit', sans-serif; font-size: .95rem; font-weight: 700; color: #fff; margin-bottom: 1rem; }
.footer-col a { display: block; font-size: .875rem; color: rgba(255,255,255,.65); margin-bottom: .5rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: .85rem; opacity: .6; }

/* ============================================================
   MISC UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.py-5 { padding: 3rem 0; }
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--text-muted); }
.empty-state .empty-icon { font-size: 4rem; margin-bottom: 1rem; }
.empty-state h3 { color: var(--primary); margin-bottom: .5rem; }
.badge { display: inline-block; padding: .25rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger  { background: #fee2e2; color: #991b1b; }
.badge-info    { background: #ede9fe; color: #5b21b6; }
.badge-primary { background: #e0e7ff; color: var(--primary); }
.card { background: var(--white); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-sm); }
.divider { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .navbar-nav { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 4rem 0 3rem; }
  .payment-options { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
