/* ============================================
   SADGUNCREATION – MAIN STYLESHEET
   ============================================ */

/* --- Variables --- */
:root {
    --primary:        #E82E6B;
    --primary-light:  #FEF2F6;
    --primary-dark:   #C4195A;
    --primary-hover:  #D41E5B;
    --text-dark:      #1A1A2E;
    --text-muted:     #6B7280;
    --border:         #E5E7EB;
    --border-pink:    #F9A8C9;
    --bg-white:       #FFFFFF;
    --bg-light:       #F9FAFB;
    --success:        #22C55E;
    --success-light:  #F0FDF4;
    --danger:         #EF4444;
    --danger-light:   #FEF2F2;
    --radius:         12px;
    --radius-sm:      8px;
    --radius-lg:      16px;
    --shadow:         0 2px 8px rgba(0,0,0,0.08);
    --shadow-md:      0 4px 20px rgba(0,0,0,0.12);
    --transition:     all 0.2s ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background: var(--bg-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main { flex: 1; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
ul { list-style: none; }

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

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
}
.navbar-logo i { font-size: 1.4rem; }
.navbar-nav {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    flex: 1;
    justify-content: center;
}
.navbar-nav a {
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
    white-space: nowrap;
}
.navbar-nav a:hover { color: var(--primary); background: var(--primary-light); }
.navbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}
.search-bar {
    display: flex;
    align-items: center;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 0.4rem 0.9rem;
    gap: 0.5rem;
    transition: var(--transition);
}
.search-bar:focus-within { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(232,46,107,0.12); }
.search-bar i { color: var(--text-muted); font-size: 0.85rem; }
.search-bar input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.875rem;
    width: 160px;
    color: var(--text-dark);
}
.search-bar input::placeholder { color: var(--text-muted); }
.icon-btn {
    position: relative;
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-dark);
    font-size: 1.1rem;
    transition: var(--transition);
}
.icon-btn:hover { background: var(--primary-light); color: var(--primary); }
.cart-icon-btn { position: relative; }
.cart-badge {
    position: absolute;
    top: -2px; right: -2px;
    background: var(--primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    min-width: 18px;
}
.cart-badge:empty { display: none; }
.btn-login {
    padding: 0.4rem 1rem;
    border-radius: 50px;
    background: var(--primary);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition);
}
.btn-login:hover { background: var(--primary-dark); }
.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    width: 26px; height: 26px;
    justify-content: center;
    margin-left: auto;
}
.hamburger span {
    display: block;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}
.mobile-nav {
    display: none;
    flex-direction: column;
    padding: 1rem 1.5rem 1.25rem;
    border-top: 1px solid var(--border);
    gap: 0.25rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
    padding: 0.6rem 0;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}
.mobile-search { margin-bottom: 0.75rem; width: 100%; }
.mobile-search input { width: 100%; }

/* ============================================
   FLASH MESSAGES
   ============================================ */
.flash {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 1px solid transparent;
}
.flash button { margin-left: auto; color: inherit; opacity: 0.7; font-size: 1rem; }
.flash-success { background: var(--success-light); color: #16A34A; border-color: #BBF7D0; }
.flash-error   { background: var(--danger-light);  color: #DC2626; border-color: #FECACA; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.4rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; border: 2px solid transparent; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-ghost { background: rgba(255,255,255,0.15); color: #fff; border: 2px solid rgba(255,255,255,0.5); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,0.25); }
.btn-danger { background: var(--danger); color: #fff; border: 2px solid transparent; }
.btn-block { width: 100%; justify-content: center; border-radius: var(--radius-sm); }
.btn-sm { padding: 0.35rem 0.9rem; font-size: 0.8rem; }

/* ============================================
   HERO / CAROUSEL
   ============================================ */
.hero-section { position: relative; overflow: hidden; }
.carousel { position: relative; overflow: hidden; }
.carousel-track { display: flex; transition: transform 0.5s ease; }
.carousel-slide { flex: 0 0 100%; }
.hero-bg {
    height: 480px;
    background-size: cover;
    background-position: center;
    background-color: #2a1a2e;
    position: relative;
}
.hero-default { background: linear-gradient(135deg, #2a1a2e 0%, #4a1535 50%, #2a1a2e 100%); }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.2) 100%);
}
.hero-content {
    position: absolute;
    top: 50%; left: 5%;
    transform: translateY(-50%);
    color: #fff;
    max-width: 520px;
}
.hero-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.hero-content h1 { font-size: 2.2rem; font-weight: 700; line-height: 1.25; margin-bottom: 0.75rem; }
.hero-content p  { font-size: 1rem; opacity: 0.9; margin-bottom: 1.5rem; line-height: 1.6; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; color: var(--text-dark);
    cursor: pointer; border: none;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    z-index: 10;
}
.carousel-btn:hover { background: #fff; }
.carousel-prev { left: 1rem; }
.carousel-next { right: 1rem; }
.carousel-dots {
    position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
    display: flex; gap: 6px;
}
.dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none; cursor: pointer;
    transition: var(--transition);
}
.dot.active { background: #fff; width: 20px; border-radius: 4px; }

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: 3rem 0; }
.section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.5rem;
}
.section-header h2 { font-size: 1.4rem; font-weight: 700; }
.see-all { font-size: 0.875rem; font-weight: 600; color: var(--text-muted); }
.view-all-pink { color: var(--primary) !important; }
.see-all:hover { color: var(--primary); }

/* ============================================
   CATEGORY GRID
   ============================================ */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.category-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 1.75rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    background: var(--bg-white);
    transition: var(--transition);
}
.category-card:hover { border-color: var(--primary); color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.category-icon {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    font-size: 1.3rem;
}

/* ============================================
   PRODUCT CARDS
   ============================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
.product-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.product-img-wrap {
    position: relative;
    display: block;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--bg-light);
}
.product-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.05); }
.product-card:hover .pc-slide img { transform: scale(1.05); }

/* Product card mini-carousel */
.product-img-wrap.has-carousel { display: block; }
.pc-carousel { position: relative; width: 100%; height: 100%; overflow: hidden; }
.pc-track {
    display: flex;
    height: 100%;
    transition: transform 0.35s ease;
}
.pc-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
}
.pc-slide a { display: block; width: 100%; height: 100%; }
.pc-slide img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
    display: block;
}
.pc-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.88);
    border: none;
    border-radius: 50%;
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem;
    color: var(--text-dark);
    cursor: pointer;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.2s;
}
.pc-btn.pc-prev { left: 0.4rem; }
.pc-btn.pc-next { right: 0.4rem; }
.product-img-wrap.has-carousel:hover .pc-btn { opacity: 1; }
.pc-dots {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 2;
}
.pc-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.55);
    transition: background 0.2s, transform 0.2s;
}
.pc-dot.active { background: #fff; transform: scale(1.3); }

.wishlist-btn {
    position: absolute; top: 0.6rem; right: 0.6rem;
    width: 34px; height: 34px;
    background: rgba(255,255,255,0.92);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    color: var(--text-muted);
    transition: var(--transition);
    z-index: 1;
    cursor: pointer;
}
.wishlist-btn:hover, .wishlist-btn.active { color: var(--primary); }
.wishlist-btn.active i.fa-heart { font-weight: 900; }
.discount-badge {
    position: absolute; top: 0.6rem; left: 0.6rem;
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}
.product-info { padding: 0.875rem; }
.product-info h3 { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.25rem; }
.product-info h3 a:hover { color: var(--primary); }
.product-meta { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.product-price { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.price-current { font-size: 0.95rem; font-weight: 700; color: var(--primary); }
.price-original { font-size: 0.82rem; color: var(--text-muted); text-decoration: line-through; }

/* ============================================
   PRODUCT DETAIL
   ============================================ */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.product-gallery { position: sticky; top: 80px; align-self: start; }
.main-image-wrap {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-light);
    margin-bottom: 0.75rem;
}
.main-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.gallery-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.gallery-nav.prev { left: 0.5rem; }
.gallery-nav.next { right: 0.5rem; }
.gallery-nav:hover { background: #fff; }
.thumbnail-strip { display: flex; gap: 0.5rem; overflow-x: auto; }
.thumb {
    width: 70px; height: 90px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}
.thumb.active, .thumb:hover { border-color: var(--primary); }

.product-title { font-size: 1.6rem; font-weight: 700; margin-bottom: 0.75rem; line-height: 1.3; }
.rating-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.stars { color: #F59E0B; font-size: 0.9rem; }
.rating-score { font-weight: 700; font-size: 0.9rem; }
.review-count { font-size: 0.85rem; color: var(--text-muted); }
.price-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; flex-wrap: wrap; }
.price-lg { font-size: 1.7rem; font-weight: 700; color: var(--primary); }
.price-original-lg { font-size: 1rem; color: var(--text-muted); text-decoration: line-through; }
.discount-chip {
    background: #FEF2F2; color: var(--danger);
    padding: 0.2rem 0.6rem; border-radius: 4px;
    font-size: 0.8rem; font-weight: 700;
}
.product-description { font-size: 0.9rem; line-height: 1.7; color: var(--text-muted); margin-bottom: 1.5rem; }
.selector-group { margin-bottom: 1.25rem; }
.selector-group label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.5rem; }
.select-input {
    width: 100%;
    padding: 0.65rem 1rem;
    border: 1.5px solid var(--border-pink);
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    font-size: 0.875rem;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    padding-right: 2rem;
}
.color-swatches { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.35rem; }
.color-swatch {
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    outline: none;
}
.color-swatch.active, .color-swatch:hover { border-color: var(--primary); transform: scale(1.15); }
.qty-control {
    display: inline-flex; align-items: center; gap: 1rem;
    background: var(--primary-light);
    border: 1.5px solid var(--border-pink);
    border-radius: var(--radius-sm);
    padding: 0.4rem 1rem;
    font-weight: 600;
}
.qty-btn {
    font-size: 1.2rem; font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.qty-btn:hover { color: var(--primary-dark); }
.product-actions { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; }
.wishlist-text-btn {
    display: flex; align-items: center; gap: 0.5rem; justify-content: center;
    font-size: 0.9rem; font-weight: 500;
    color: var(--text-muted);
    padding: 0.5rem;
    transition: var(--transition);
    cursor: pointer;
}
.wishlist-text-btn:hover, .wishlist-text-btn.active { color: var(--primary); }
.delivery-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--primary-light);
    border: 1px solid var(--border-pink);
    color: var(--primary);
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-top: 1rem;
}
.related-section { border-top: 1px solid var(--border); padding-top: 2.5rem; }

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter-section { padding: 3rem 0; }
.newsletter-box {
    background: var(--primary-light);
    border: 1.5px solid var(--border-pink);
    border-radius: var(--radius-lg);
    padding: 2.5rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}
.newsletter-text h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.35rem; }
.newsletter-text p  { font-size: 0.875rem; color: var(--text-muted); max-width: 340px; }
.newsletter-form { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.newsletter-input-wrap {
    display: flex; align-items: center; gap: 0.5rem;
    background: var(--bg-white);
    border: 1.5px solid var(--border-pink);
    border-radius: 50px;
    padding: 0.55rem 1.1rem;
    min-width: 250px;
}
.newsletter-input-wrap i { color: var(--text-muted); }
.newsletter-input-wrap input { border: none; outline: none; font-size: 0.9rem; flex: 1; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    margin-top: auto;
}
.footer-top {
    max-width: 1200px; margin: 0 auto;
    padding: 3rem 1.5rem 2.5rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
}
.footer-logo {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 1.2rem; font-weight: 700;
    color: var(--primary); margin-bottom: 0.75rem;
}
.footer-logo i { font-size: 1.3rem; }
.footer-brand p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; max-width: 240px; margin-bottom: 1rem; }
.social-links { display: flex; gap: 0.5rem; }
.social-links a {
    width: 36px; height: 36px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: 0.9rem;
    transition: var(--transition);
}
.social-links a:hover { background: var(--primary); color: #fff; }
.footer-col h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.875rem; }
.footer-col a {
    display: block; font-size: 0.85rem; color: var(--text-muted);
    margin-bottom: 0.5rem; transition: var(--transition);
}
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
    border-top: 1px solid var(--border);
    max-width: 1200px; margin: 0 auto;
    padding: 1.25rem 1.5rem;
    display: flex; align-items: center; justify-content: space-between;
    font-size: 0.82rem; color: var(--text-muted);
    flex-wrap: wrap; gap: 0.75rem;
}
.footer-bottom-links { display: flex; align-items: center; gap: 1.25rem; }
.footer-bottom-links a:hover { color: var(--primary); }

/* ============================================
   FORMS (shared)
   ============================================ */
.form-group { margin-bottom: 1rem; }
.form-group label {
    display: block; font-size: 0.875rem; font-weight: 500;
    margin-bottom: 0.4rem; color: var(--text-dark);
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.65rem 0.95rem;
    border: 1.5px solid var(--border-pink);
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
    color: var(--text-dark);
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(232,46,107,0.1); }
.form-group input.input-disabled { background: var(--bg-light); color: var(--text-muted); cursor: not-allowed; border-color: var(--border); }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
.input-icon { position: relative; }
.input-icon i {
    position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); font-size: 0.9rem;
}
.input-icon input { padding-left: 2.5rem; }
.required { color: var(--primary); }
.optional { color: var(--text-muted); font-size: 0.8rem; font-weight: 400; }
.info-box {
    background: var(--primary-light);
    border: 1px solid var(--border-pink);
    border-radius: var(--radius-sm);
    padding: 0.875rem 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex; gap: 0.5rem; align-items: flex-start;
}
.info-box i { color: var(--primary); flex-shrink: 0; margin-top: 1px; }
.checkbox-row { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-size: 0.875rem; }
.checkbox-row input { width: auto; }

/* ============================================
   AUTH PAGES
   ============================================ */
.auth-page {
    min-height: calc(100vh - 64px);
    display: flex; align-items: center; justify-content: center;
    padding: 2rem 1rem;
    background: var(--primary-light);
}
.auth-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    width: 100%; max-width: 420px;
    box-shadow: var(--shadow-md);
}
.auth-logo {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    font-size: 1.3rem; font-weight: 700; color: var(--primary);
    margin-bottom: 1.25rem;
}
.auth-logo i { font-size: 1.5rem; }
.auth-card h2 { font-size: 1.4rem; font-weight: 700; text-align: center; margin-bottom: 0.35rem; }
.auth-sub { text-align: center; color: var(--text-muted); font-size: 0.875rem; margin-bottom: 1.75rem; }
.auth-form { display: flex; flex-direction: column; gap: 0.25rem; }
.auth-switch { text-align: center; font-size: 0.875rem; color: var(--text-muted); margin-top: 1.25rem; }
.auth-switch a { color: var(--primary); font-weight: 600; }

/* ============================================
   CART
   ============================================ */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: start; }
.cart-item {
    display: flex; align-items: center; gap: 1rem;
    padding: 1rem; background: var(--bg-white);
    border: 1px solid var(--border); border-radius: var(--radius);
    margin-bottom: 1rem;
}
.cart-item img { width: 80px; height: 100px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-info h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.25rem; }
.cart-item-meta { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.cart-price { font-weight: 700; color: var(--primary); font-size: 0.95rem; }
.cart-item-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 0.75rem; }
.remove-btn { color: var(--text-muted); font-size: 0.95rem; transition: var(--transition); }
.remove-btn:hover { color: var(--danger); }
.badge-custom {
    display: inline-block;
    background: var(--primary-light); color: var(--primary);
    font-size: 0.7rem; font-weight: 600;
    padding: 0.15rem 0.5rem; border-radius: 4px; margin-bottom: 0.35rem;
}

/* ============================================
   ORDER SUMMARY CARD
   ============================================ */
.order-summary-card {
    background: var(--bg-white);
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.5rem;
}
.order-summary-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 1.25rem; }
.summary-row {
    display: flex; justify-content: space-between;
    font-size: 0.875rem; padding: 0.45rem 0;
    border-bottom: 1px solid var(--bg-light);
    color: var(--text-muted);
}
.summary-row.discount span:last-child { color: #16A34A; font-weight: 600; }
.summary-row.total-row {
    border-bottom: none; font-size: 1rem;
    font-weight: 700; color: var(--text-dark);
    padding-top: 0.75rem; margin-top: 0.35rem;
}
.delivery-estimate { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.75rem; display: flex; gap: 0.4rem; align-items: center; }
.secure-note { text-align: center; font-size: 0.78rem; color: var(--text-muted); margin-top: 0.75rem; }

/* ============================================
   CHECKOUT
   ============================================ */
.checkout-container { padding: 2rem 1rem 3rem; max-width: 1050px; }
.stepper {
    display: flex; align-items: center;
    margin: 0 auto 2.5rem;
    max-width: 520px;
}
.step { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; flex-shrink: 0; }
.step-circle {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--bg-light);
    border: 2px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; font-weight: 700; color: var(--text-muted);
}
.step-circle.active { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.step-circle.completed { background: var(--primary); border-color: var(--primary); color: #fff; }
.step span { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; }
.step.active span { color: var(--primary); font-weight: 600; }
.step-line { flex: 1; height: 2px; background: var(--border); margin: 0 0.5rem; margin-bottom: 1.2rem; }
.step-line.filled { background: var(--primary); }
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: start; }
.checkout-main h3.section-title { font-size: 1.05rem; font-weight: 700; margin: 1.5rem 0 1rem; }
.checkout-item-card {
    display: flex; align-items: center; gap: 1rem;
    background: var(--bg-white); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1rem;
    margin-bottom: 1rem;
}
.checkout-item-card img { width: 64px; height: 80px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.checkout-item-info { flex: 1; }
.checkout-item-info h4 { font-size: 0.9rem; font-weight: 600; }
.checkout-item-info p { font-size: 0.8rem; color: var(--text-muted); }
.checkout-item-price { font-weight: 700; color: var(--primary); font-size: 0.95rem; }
.delivery-time-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--primary-light); border: 1px solid var(--border-pink);
    color: var(--primary); padding: 0.4rem 0.9rem; border-radius: 50px;
    font-size: 0.82rem; font-weight: 600; margin-top: 1rem;
}
.payment-option {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    cursor: pointer; font-size: 0.875rem; font-weight: 500;
    transition: var(--transition);
}
.payment-option.active { border-color: var(--primary); background: var(--primary-light); }
.payment-left { display: flex; align-items: center; gap: 0.65rem; }
.payment-option input[type="radio"] { accent-color: var(--primary); }

/* ============================================
   ORDER TRACKING
   ============================================ */
.order-header-card {
    background: var(--primary-light);
    border: 1px solid var(--border-pink);
    border-radius: var(--radius); padding: 1.5rem;
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem;
}
.order-header-left h2 { color: var(--primary); font-size: 1.3rem; font-weight: 700; margin-bottom: 0.25rem; }
.order-header-left p { font-size: 0.85rem; color: var(--text-muted); }
.tracking-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start; }
.tracking-main { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.timeline { display: flex; flex-direction: column; }
.timeline-item { display: flex; align-items: flex-start; gap: 1rem; }
.timeline-item.done .timeline-circle { background: var(--primary); border-color: var(--primary); color: #fff; }
.timeline-item.current .timeline-circle { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.timeline-circle {
    width: 40px; height: 40px; flex-shrink: 0;
    border-radius: 50%; border: 2px solid var(--border);
    background: var(--bg-white);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; color: var(--text-muted); z-index: 1;
}
.timeline-connector {
    width: 2px; min-height: 40px;
    background: var(--border);
    margin-left: 19px;
}
.timeline-connector.done { background: var(--primary); }
.timeline-content { padding-bottom: 0.5rem; flex: 1; }
.timeline-title { font-weight: 600; font-size: 0.95rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.timeline-meta { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.15rem; line-height: 1.5; }
.tracking-sidebar { display: flex; flex-direction: column; gap: 1rem; }
.atelier-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.atelier-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.atelier-contact { display: flex; flex-direction: column; gap: 0.75rem; }
.atelier-contact > div {
    display: flex; align-items: center; gap: 0.75rem;
    background: var(--primary-light); border: 1px solid var(--border-pink);
    border-radius: var(--radius-sm); padding: 0.75rem;
}
.atelier-contact > div i { color: var(--primary); font-size: 1.1rem; }
.atelier-contact small { display: block; font-size: 0.72rem; color: var(--text-muted); }
.atelier-contact strong { font-size: 0.875rem; }
.delivery-info { display: flex; flex-direction: column; gap: 0.75rem; }
.delivery-info-row { display: flex; align-items: flex-start; gap: 0.75rem; }
.delivery-info-row i { color: var(--primary); font-size: 1.1rem; margin-top: 2px; }
.delivery-info-row small { display: block; font-size: 0.72rem; color: var(--text-muted); }
.delivery-info-row strong { font-size: 0.875rem; line-height: 1.4; }

/* ============================================
   STATUS BADGES
   ============================================ */
.status-badge {
    display: inline-block; padding: 0.25rem 0.7rem;
    border-radius: 50px; font-size: 0.75rem; font-weight: 600;
}
.badge-pink { background: var(--primary-light); color: var(--primary); }
.badge-green { background: var(--success-light); color: #16A34A; }
.badge-red { background: var(--danger-light); color: var(--danger); }
.badge-gray { background: var(--bg-light); color: var(--text-muted); }

/* ============================================
   ACCOUNT / PROFILE
   ============================================ */
.account-container { padding: 2rem 1.5rem 3rem; }
.profile-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff; border-radius: var(--radius-lg);
    padding: 2rem; display: flex; align-items: center; gap: 1.5rem;
    margin-bottom: 2rem; flex-wrap: wrap;
}
.avatar-circle {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.75rem; font-weight: 700; flex-shrink: 0;
}
.profile-header-info h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.2rem; }
.profile-header-info p { font-size: 0.875rem; opacity: 0.85; }
.profile-header .btn-outline { margin-left: auto; border-color: rgba(255,255,255,0.6); color: #fff; }
.profile-header .btn-outline:hover { background: rgba(255,255,255,0.15); }
.account-layout {
    display: grid;
    grid-template-columns: 200px 1fr 280px;
    gap: 2rem;
    align-items: start;
}
.account-nav {
    background: var(--bg-white);
    border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden;
}
.account-nav-item {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.875rem 1rem;
    font-size: 0.875rem; font-weight: 500;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
    color: var(--text-dark);
}
.account-nav-item:last-child { border-bottom: none; }
.account-nav-item:hover { background: var(--primary-light); color: var(--primary); }
.account-nav-item.text-danger { color: var(--danger); }
.account-nav-item.text-danger:hover { background: var(--danger-light); }
.ms-auto { margin-left: auto; }
.account-main { display: flex; flex-direction: column; gap: 2rem; }
.account-section { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.account-section h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 1.25rem; }
.empty-msg { font-size: 0.875rem; color: var(--text-muted); }
.empty-msg a { color: var(--primary); font-weight: 600; }

/* Order list items */
.order-list-item {
    display: flex; align-items: center; gap: 1rem;
    padding: 1rem; border: 1px solid var(--border);
    border-radius: var(--radius); margin-bottom: 0.75rem;
    flex-wrap: wrap;
}
.order-list-img img { width: 60px; height: 75px; object-fit: cover; border-radius: var(--radius-sm); }
.order-img-placeholder {
    width: 60px; height: 75px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: 1.5rem;
}
.order-list-info { flex: 1; }
.order-num { font-size: 0.75rem; color: var(--text-muted); display: block; }
.order-name { font-weight: 600; font-size: 0.9rem; margin: 0.15rem 0; }
.order-list-info small { font-size: 0.78rem; color: var(--text-muted); }
.order-view-link { display: block; font-size: 0.82rem; color: var(--primary); font-weight: 600; margin-top: 0.35rem; }
.see-all-link { display: block; text-align: right; font-size: 0.82rem; color: var(--primary); font-weight: 600; margin-top: 0.5rem; }

/* Measurements panel */
.measurements-panel {
    background: var(--bg-white);
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.5rem; align-self: start;
}
.measurements-panel h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 1rem; }
.measurements-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1rem; }
.meas-cell {
    background: var(--primary-light);
    border-radius: var(--radius-sm); padding: 0.75rem;
    text-align: center;
}
.meas-cell small { display: block; font-size: 0.72rem; color: var(--text-muted); margin-bottom: 0.2rem; }
.meas-cell strong { font-size: 1rem; font-weight: 700; }
.edit-meas-link { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: var(--primary); font-weight: 600; }

/* Measurement form fields */
.measurement-field .meas-input-wrap { position: relative; }
.measurement-field input { padding-right: 2.5rem; }
.meas-edit-icon { position: absolute; right: 0.9rem; top: 50%; transform: translateY(-50%); color: var(--primary); font-size: 0.8rem; pointer-events: none; }

/* ============================================
   CHECKOUT SUCCESS
   ============================================ */
.success-card {
    max-width: 520px; margin: 0 auto;
    background: var(--bg-white); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 3rem 2rem;
    box-shadow: var(--shadow-md);
}
.success-icon { font-size: 4rem; color: var(--success); margin-bottom: 1rem; }
.success-card h1 { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.5rem; }
.success-card p { color: var(--text-muted); margin-bottom: 1.75rem; }
.order-number-box {
    background: var(--primary-light); border: 1.5px solid var(--border-pink);
    border-radius: var(--radius); padding: 1rem 1.5rem;
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1.5rem;
}
.order-number-box span { font-size: 0.875rem; color: var(--text-muted); }
.order-number-box strong { font-size: 1.1rem; color: var(--primary); }
.success-details { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 2rem; }
.success-details > div { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--text-muted); }
.success-details i { color: var(--primary); }
.success-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================
   LISTING PAGE
   ============================================ */
.listing-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.listing-header h1 { font-size: 1.5rem; font-weight: 700; }
.total-count { font-size: 0.85rem; color: var(--text-muted); }
.category-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.cat-tab {
    padding: 0.4rem 1rem; border-radius: 50px;
    border: 1.5px solid var(--border);
    font-size: 0.85rem; font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
    cursor: pointer;
}
.cat-tab:hover, .cat-tab.active { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.sort-bar { display: flex; justify-content: flex-end; margin-bottom: 1.5rem; }
.sort-select {
    padding: 0.45rem 0.9rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    font-size: 0.875rem; background: var(--bg-white); cursor: pointer; outline: none;
}
.search-notice { background: var(--primary-light); border-radius: var(--radius-sm); padding: 0.75rem 1rem; font-size: 0.875rem; margin-bottom: 1.5rem; }

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center; padding: 4rem 2rem;
    display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.empty-state i { font-size: 3rem; color: var(--text-muted); }
.empty-state h3 { font-size: 1.25rem; font-weight: 700; }
.empty-state p { color: var(--text-muted); max-width: 300px; }

/* ============================================
   PAGINATION
   ============================================ */
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 2rem; }
.page-btn {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.875rem; font-weight: 600;
    border: 1.5px solid var(--border);
    color: var(--text-dark); transition: var(--transition);
}
.page-btn:hover, .page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ============================================
   UPLOAD BOX
   ============================================ */
.upload-box {
    border: 2px dashed var(--border-pink);
    border-radius: var(--radius);
    padding: 2.5rem 1.5rem;
    text-align: center;
    background: var(--primary-light);
    cursor: pointer;
    transition: var(--transition);
}
.upload-box:hover { border-color: var(--primary); }
.optional-badge {
    display: inline-block;
    background: var(--primary-light); border: 1px solid var(--border-pink);
    color: var(--primary); padding: 0.15rem 0.6rem;
    border-radius: 50px; font-size: 0.75rem; font-weight: 600;
}

/* ============================================
   CUSTOM STITCHING STEPS PREVIEW
   ============================================ */
.steps-preview { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.step-preview-item { flex: 1; min-width: 180px; max-width: 220px; text-align: center; }
.step-preview-num {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--primary); color: #fff;
    font-size: 1.2rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 0.75rem;
}
.step-preview-item h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.35rem; }
.step-preview-item p { font-size: 0.82rem; color: var(--text-muted); }

/* ============================================
   MISC
   ============================================ */
.page-back { margin-bottom: 1.25rem; }
.page-back a { font-size: 0.875rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.4rem; }
.page-back a:hover { color: var(--primary); }
.section-title { font-size: 1.05rem; font-weight: 700; }
.text-danger { color: var(--danger) !important; }

/* Toast notification */
.toast {
    position: fixed; bottom: 1.5rem; right: 1.5rem;
    background: var(--text-dark); color: #fff;
    padding: 0.875rem 1.25rem; border-radius: var(--radius);
    font-size: 0.875rem; font-weight: 500;
    box-shadow: var(--shadow-md);
    z-index: 9999;
    display: flex; align-items: center; gap: 0.5rem;
    animation: slideUp 0.3s ease;
}
.toast.success { background: #16A34A; }
.toast.error   { background: var(--danger); }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .account-layout { grid-template-columns: 180px 1fr; }
    .measurements-panel { grid-column: 1 / -1; }
    .tracking-layout { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .navbar-nav, .search-bar { display: none; }
    .hamburger { display: flex; }
    .hero-bg { height: 340px; }
    .hero-content h1 { font-size: 1.5rem; }
    .hero-content { left: 1.5rem; right: 1.5rem; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .product-detail-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .product-gallery { position: static; }
    .checkout-layout { grid-template-columns: 1fr; }
    .cart-layout { grid-template-columns: 1fr; }
    .account-layout { grid-template-columns: 1fr; }
    .account-nav { display: none; }
    .form-grid-2 { grid-template-columns: 1fr; }
    .form-grid-3 { grid-template-columns: 1fr; }
    .newsletter-box { flex-direction: column; padding: 1.75rem 1.25rem; }
    .newsletter-input-wrap { min-width: auto; width: 100%; }
    .footer-top { grid-template-columns: 1fr; }
    .profile-header { flex-direction: column; text-align: center; }
    .profile-header .btn-outline { margin: 0; }
    .section { padding: 2rem 0; }
}

@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr 1fr; }
    .hero-content h1 { font-size: 1.3rem; }
    .steps-preview { flex-direction: column; align-items: center; }
    .stepper { max-width: 100%; }
    .auth-card { padding: 1.75rem 1.25rem; }
}
