/* ============================================
   THREAD&CO - GLOBAL STYLESHEET
   ============================================ */

/* CSS Custom Properties (Theme Variables) */
:root {
    --primary: #1a1a1a;
    --primary-light: #2d2d2d;
    --secondary: #f8f5f0;
    --accent: #b8860b;
    --accent-hover: #9a7009;
    --accent-light: #d4a745;
    --white: #ffffff;
    --off-white: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e8e8e8;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --text: #2c2c2c;
    --text-light: #666666;
    --text-muted: #999999;
    --success: #2d8a4e;
    --danger: #c0392b;
    --warning: #e67e22;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-sm: 4px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.2);
    --transition: 0.3s ease;
    --transition-fast: 0.15s ease;
    --font-primary: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-heading: Georgia, 'Times New Roman', serif;
    --max-width: 1280px;
    --nav-height: 70px;
    --footer-bg: #1a1a1a;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--text);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    padding-top: var(--nav-height);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition);
    cursor: pointer;
    text-align: center;
    line-height: 1.3;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
    border: 2px solid var(--accent);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary);
    transform: translateY(-1px);
}

.btn-dark {
    background-color: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
}

.btn-dark:hover {
    background-color: var(--gray-800);
    border-color: var(--gray-800);
}

.btn-outline-dark {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline-dark:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============================================
   NAVIGATION BAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background-color: var(--white);
    border-bottom: 1px solid var(--gray-200);
    z-index: 1000;
    transition: box-shadow var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    gap: 20px;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
    flex-shrink: 0;
}

.logo-amp {
    color: var(--accent);
    font-style: italic;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background-color: var(--accent);
    border-radius: 1px;
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle i {
    font-size: 0.65rem;
    margin-left: 2px;
    transition: transform var(--transition-fast);
}

.nav-dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 180px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: var(--text);
    transition: all var(--transition-fast);
}

.dropdown-menu a:hover {
    background-color: var(--gray-100);
    color: var(--accent);
    padding-left: 24px;
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-icon-link {
    font-size: 0.85rem;
    padding: 8px 10px;
    white-space: nowrap;
}

/* Basket Button */
.basket-btn {
    position: relative;
    padding: 8px 10px;
    font-size: 1.3rem;
    color: var(--text);
    transition: color var(--transition-fast);
}

.basket-btn:hover {
    color: var(--accent);
}

.basket-count {
    position: absolute;
    top: 2px;
    right: 0;
    background-color: var(--accent);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   MOBILE SIDEBAR
   ============================================ */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100%;
    background-color: var(--white);
    z-index: 1200;
    transition: left var(--transition);
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

.mobile-sidebar.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--gray-200);
}

.sidebar-title {
    font-weight: 700;
    font-size: 1.1rem;
}

.sidebar-close {
    font-size: 1.8rem;
    color: var(--gray-500);
    padding: 4px;
    line-height: 1;
}

.sidebar-menu {
    padding: 10px 0;
}

.sidebar-menu > li > a {
    display: block;
    padding: 14px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    border-bottom: 1px solid var(--gray-100);
    transition: all var(--transition-fast);
}

.sidebar-menu > li > a:hover {
    background-color: var(--gray-100);
    color: var(--accent);
}

.sidebar-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.sidebar-dropdown-toggle i {
    font-size: 0.7rem;
    transition: transform var(--transition-fast);
}

.sidebar-dropdown.open .sidebar-dropdown-toggle i {
    transform: rotate(180deg);
}

.sidebar-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
    background-color: var(--gray-100);
}

.sidebar-dropdown.open .sidebar-submenu {
    max-height: 300px;
}

.sidebar-submenu li a {
    display: block;
    padding: 12px 20px 12px 35px;
    font-size: 0.9rem;
    color: var(--text-light);
    border-bottom: 1px solid var(--gray-200);
    transition: all var(--transition-fast);
}

.sidebar-submenu li a:hover {
    color: var(--accent);
    background-color: var(--off-white);
}

/* ============================================
   BASKET POPUP
   ============================================ */
.basket-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1300;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.basket-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.basket-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background-color: var(--white);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    border-radius: var(--border-radius-lg);
    z-index: 1400;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.basket-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.basket-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
}

.basket-popup-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.basket-popup-close {
    font-size: 1.6rem;
    color: var(--gray-500);
    padding: 2px 6px;
}

.basket-popup-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    max-height: 45vh;
}

.basket-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 30px 0;
}

.basket-item-mini {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
    align-items: center;
}

.basket-item-mini img {
    width: 60px;
    height: 75px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    flex-shrink: 0;
}

.basket-item-mini-info {
    flex: 1;
    min-width: 0;
}

.basket-item-mini-info h4 {
    font-size: 0.9rem;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.basket-item-mini-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
}

.basket-item-mini-price {
    font-weight: 700;
    color: var(--accent);
    font-size: 0.9rem;
    white-space: nowrap;
}

.basket-item-mini-remove {
    color: var(--danger);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 4px;
}

.basket-popup-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--gray-200);
}

.basket-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 12px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    overflow: hidden;
    min-height: 500px;
}

.hero-slider {
    position: relative;
    height: 100%;
}

.hero-slide {
    display: none;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 500px;
    gap: 30px;
}

.hero-slide.active {
    display: flex;
}

.hero-content {
    flex: 1;
    color: var(--white);
    max-width: 520px;
    z-index: 2;
}

.hero-tag {
    display: inline-block;
    background-color: var(--accent);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-content p {
    font-size: 1.05rem;
    color: var(--gray-300);
    margin-bottom: 28px;
    line-height: 1.7;
}

.hero-content .btn {
    margin-right: 10px;
    margin-bottom: 8px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 450px;
}

.hero-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    max-height: 450px;
    object-fit: cover;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all var(--transition);
    z-index: 5;
    backdrop-filter: blur(4px);
}

.hero-arrow:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.hero-arrow-left {
    left: 16px;
}

.hero-arrow-right {
    right: 16px;
}

.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all var(--transition);
}

.hero-dot.active {
    background-color: var(--accent);
    width: 28px;
    border-radius: 5px;
}

/* ============================================
   SECTIONS
   ============================================ */
.featured-section {
    padding: 60px 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 6px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 36px;
}

.section-cta {
    text-align: center;
    margin-top: 36px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

/* Product Card */
.product-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
    position: relative;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.product-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    background-color: var(--gray-100);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.badge-instock {
    background-color: #d4edda;
    color: var(--success);
}

.badge-outstock {
    background-color: #f8d7da;
    color: var(--danger);
}

.product-card-body {
    padding: 16px;
}

.product-card-body h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card-category {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: capitalize;
}

.product-card-price {
    font-weight: 700;
    color: var(--accent);
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.product-card-actions {
    display: flex;
    gap: 8px;
}

.product-card-actions .btn {
    flex: 1;
    font-size: 0.8rem;
    padding: 8px 12px;
}

/* Categories Showcase */
.categories-showcase {
    padding: 40px 0 60px;
}

.category-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.category-card {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    aspect-ratio: 3/4;
    display: block;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover img {
    transform: scale(1.08);
}

.category-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    color: var(--white);
    text-align: center;
}

.category-card-overlay h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.category-card-overlay span {
    font-size: 0.85rem;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: var(--footer-bg);
    color: var(--gray-300);
    padding-top: 50px;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    font-size: 0.9rem;
    color: var(--gray-400);
    transition: color var(--transition-fast);
}

.footer-col ul li a:hover {
    color: var(--accent-light);
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all var(--transition);
}

.social-icons a:hover {
    background-color: var(--accent);
}

.newsletter-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.newsletter-form input {
    flex: 1;
    min-width: 160px;
    padding: 10px 14px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--gray-600);
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--white);
}

.newsletter-form input::placeholder {
    color: var(--gray-500);
}

.newsletter-form .btn {
    flex-shrink: 0;
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: var(--gray-500);
}

.footer-bottom a {
    color: var(--gray-400);
}

.footer-bottom a:hover {
    color: var(--accent-light);
}

/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */
.product-detail-section {
    padding: 40px 0 60px;
}

.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.product-detail-image {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    aspect-ratio: 3/4;
    background-color: var(--gray-100);
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-info h1 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.product-detail-category {
    color: var(--text-muted);
    text-transform: capitalize;
    margin-bottom: 12px;
}

.product-detail-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 16px;
}

.product-detail-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.stock-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.stock-indicator.in-stock {
    background-color: #d4edda;
    color: var(--success);
}

.stock-indicator.out-of-stock {
    background-color: #f8d7da;
    color: var(--danger);
}

.stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: currentColor;
}

/* Size Selector */
.size-selector {
    margin-bottom: 20px;
}

.size-selector h4 {
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.size-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.size-option {
    width: 44px;
    height: 44px;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    background-color: var(--white);
}

.size-option:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.size-option.selected {
    border-color: var(--accent);
    background-color: var(--accent);
    color: var(--white);
}

.size-option.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

/* Color Selector */
.color-selector {
    margin-bottom: 20px;
}

.color-selector h4 {
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.color-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-option {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all var(--transition-fast);
    position: relative;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--accent);
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 24px;
}

.quantity-selector h4 {
    font-size: 0.95rem;
    margin-right: 12px;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--gray-300);
    background-color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:first-of-type {
    border-radius: var(--border-radius-sm) 0 0 var(--border-radius-sm);
}

.qty-btn:last-of-type {
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}

.qty-btn:hover {
    background-color: var(--gray-100);
}

.qty-input {
    width: 50px;
    height: 40px;
    text-align: center;
    border: 2px solid var(--gray-300);
    border-left: none;
    border-right: none;
    font-weight: 600;
    font-size: 0.95rem;
}

/* ============================================
   CHECKOUT & PAYMENT PAGES
   ============================================ */
.checkout-section,
.payment-section {
    padding: 40px 0 60px;
}

.checkout-container,
.payment-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    align-items: start;
}

.checkout-form,
.payment-form {
    background-color: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: 24px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-sm);
    font-size: 0.95rem;
    transition: border-color var(--transition-fast);
    background-color: var(--off-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.order-summary {
    background-color: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    position: sticky;
    top: calc(var(--nav-height) + 20px);
}

.order-summary h3 {
    font-size: 1.15rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-200);
}

.order-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
    align-items: center;
}

.order-item img {
    width: 55px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
}

.order-item-info {
    flex: 1;
}

.order-item-info h4 {
    font-size: 0.9rem;
}

.order-item-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.order-item-price {
    font-weight: 700;
    color: var(--accent);
}

.order-item-remove {
    color: var(--danger);
    cursor: pointer;
    font-size: 0.85rem;
}

.order-totals {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 2px solid var(--gray-200);
}

.order-totals > div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.order-totals .grand-total {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--accent);
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--gray-200);
}

/* Payment Methods */
.payment-methods {
    display: grid;
    gap: 12px;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.payment-method:hover {
    border-color: var(--accent-light);
}

.payment-method.selected {
    border-color: var(--accent);
    background-color: #fdf8f0;
}

.payment-method input[type="radio"] {
    accent-color: var(--accent);
    width: 18px;
    height: 18px;
}

.payment-method-icon {
    font-size: 1.4rem;
    color: var(--accent);
    width: 36px;
    text-align: center;
}

.payment-method-label {
    font-weight: 600;
    font-size: 0.95rem;
}

/* ============================================
   LOGIN & SIGNUP PAGES
   ============================================ */
.auth-section {
    padding: 50px 0 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - var(--nav-height) - 300px);
}

.auth-card {
    background-color: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: 36px 32px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow);
}

.auth-card h2 {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 6px;
}

.auth-card .auth-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.auth-card .form-group {
    margin-bottom: 16px;
}

.auth-card .btn-block {
    margin-top: 8px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--gray-200);
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.95rem;
    background-color: var(--white);
    transition: all var(--transition-fast);
}

.google-btn:hover {
    background-color: var(--gray-100);
    border-color: var(--gray-300);
}

.google-btn img {
    width: 20px;
    height: 20px;
}

.auth-link {
    text-align: center;
    margin-top: 18px;
    font-size: 0.9rem;
}

.auth-link a {
    color: var(--accent);
    font-weight: 600;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* ============================================
   CONTACT & ABOUT PAGES
   ============================================ */
.page-header {
    background-color: var(--primary);
    color: var(--white);
    padding: 50px 0;
    text-align: center;
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 8px;
}

.page-header p {
    color: var(--gray-400);
}

.contact-section,
.about-section {
    padding: 50px 0 60px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info h3,
.about-content h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.contact-info-item {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
}

.contact-info-item i {
    font-size: 1.3rem;
    color: var(--accent);
    margin-top: 3px;
}

.contact-form-card {
    background-color: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: 28px;
}

.about-content {
    max-width: 800px;
}

.about-content p {
    line-height: 1.8;
    margin-bottom: 16px;
    color: var(--text-light);
}

/* ============================================
   PRODUCTS LISTING PAGE
   ============================================ */
.products-section {
    padding: 30px 0 60px;
}

.products-header {
    margin-bottom: 24px;
}

.products-header h1 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    text-transform: capitalize;
}

.products-header .breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.products-header .breadcrumb a {
    color: var(--accent);
}

.filter-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    align-items: center;
}

.filter-bar select {
    padding: 10px 14px;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    background-color: var(--white);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .hero-slide {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-image {
        max-width: 350px;
    }

    .product-detail-container {
        grid-template-columns: 1fr;
    }

    .checkout-container,
    .payment-container {
        grid-template-columns: 1fr;
    }

    .order-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-icon-link {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .hero-image {
        max-width: 280px;
    }

    .products-grid {
        grid-template-columns: repeat( minmax(160px, 1fr));
        gap: 14px;
    }

    .category-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .category-cards a:last-child {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-card-body h3 {
        font-size: 0.85rem;
    }

    .product-card-price {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .page-header h1 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.4rem;
    }

    .hero-slide {
        min-height: 380px;
        padding: 20px 14px;
    }

    .hero-image {
        max-width: 220px;
    }

    .products-grid {
        grid-template-columns: repeat( 1fr);
        gap: 10px;
    }

    .category-cards {
        grid-template-columns: 1fr;
    }

    .category-cards a:last-child {
        grid-column: span 1;
        max-width: 100%;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 24px 18px;
    }

    .basket-popup {
        width: 95%;
        max-height: 85vh;
    }

    .product-detail-info h1 {
        font-size: 1.4rem;
    }

    .size-option {
        width: 38px;
        height: 38px;
        font-size: 0.8rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

.hidden {
    display: none !important;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease forwards;
}