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

:root {
    --primary: #0f0f0f;
    --accent: #ff4d4d;
    --accent-hover: #e63e3e;
    --text: #1a1a1a;
    --text-light: #666;
    --bg: #ffffff;
    --bg-alt: #f7f7f7;
    --border: #e5e5e5;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; font-family: inherit; background: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

/* Announcement Bar */
.announcement-bar {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    letter-spacing: 0.3px;
}

/* Navbar */
.navbar {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    background: white;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.logo span { color: var(--accent); }

.nav-links {
    display: flex;
    gap: 2rem;
    margin-left: 3rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
    position: relative;
}

.icon-btn:hover { background: var(--bg-alt); }

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

.mobile-menu-btn { display: none; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-lg { padding: 1rem 2.25rem; font-size: 1rem; }
.btn-full { width: 100%; }

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

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover {
    background: white;
    color: var(--primary);
    border-color: white;
}

/* Hero */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: 85vh;
    padding: 4rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    overflow: hidden;
}

.hero-content { max-width: 540px; margin-left: auto; padding-right: 3rem; }

.hero-tag {
    display: inline-block;
    background: rgba(255,77,77,0.15);
    color: var(--accent);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 1.25rem;
    letter-spacing: -1.5px;
}

.hero-content p {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;
    max-width: 550px;
    border-radius: var(--radius-lg);
    transform: rotate(-5deg);
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    transition: transform 0.5s;
}

.hero-image img:hover { transform: rotate(0deg) scale(1.02); }

/* Brands Bar */
.brands-bar {
    padding: 2rem;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.brands-track {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.brand-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-light);
    opacity: 0.5;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.brand-sep { color: var(--border); }

/* Categories */
.categories-section { padding: 5rem 0; }

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

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

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

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

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    color: white;
}

.category-overlay h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.25rem; }
.category-overlay span { font-size: 0.9rem; opacity: 0.8; }

/* Sections */
.section { padding: 5rem 0; }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.5px; }

.view-all {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    transition: color 0.2s;
}
.view-all:hover { color: var(--accent); }

/* Products Scroll (horizontal) */
.products-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.products-scroll::-webkit-scrollbar { height: 0; }

.products-scroll .product-card {
    min-width: 300px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

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

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

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

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.product-image-wrap {
    position: relative;
    overflow: hidden;
    background: var(--bg-alt);
}

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

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

.product-actions {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.product-action-btn {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    font-size: 0.9rem;
}

.product-action-btn:hover { background: var(--primary); color: white; }

.product-info { padding: 1.25rem; }

.product-info .product-category {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.35rem;
}

.product-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
}

.product-rating .stars { color: #f59e0b; }
.product-rating .count { color: var(--text-light); }

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
}

.product-price .price-original {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 400;
    margin-left: 0.5rem;
}

.add-to-cart-btn {
    padding: 0.5rem 1.15rem;
    background: var(--primary);
    color: white;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
}

.add-to-cart-btn:hover { background: var(--accent); }

/* Filter */
.filter-bar { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.filter-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    background: white;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Featured Banner */
.featured-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    background: var(--bg-alt);
    padding: 5rem 4rem;
    gap: 3rem;
}

.featured-content { max-width: 480px; margin-left: auto; padding-right: 2rem; }

.featured-tag {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.featured-content h2 {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.featured-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.featured-price { margin-bottom: 2rem; }
.price-old { text-decoration: line-through; color: var(--text-light); margin-right: 0.75rem; }
.price-new { font-size: 1.75rem; font-weight: 800; }

.featured-image img {
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Features Section */
.features-section {
    padding: 4rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.feature-card { padding: 1.5rem; }
.feature-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.feature-card h4 { font-weight: 700; margin-bottom: 0.25rem; }
.feature-card p { font-size: 0.85rem; color: var(--text-light); }

/* Newsletter */
.newsletter-section {
    padding: 5rem 0;
    text-align: center;
    background: var(--bg-alt);
}

.newsletter-section h2 { font-size: 2rem; font-weight: 800; margin-bottom: 0.5rem; }
.newsletter-section p { color: var(--text-light); margin-bottom: 2rem; }

.newsletter-form {
    display: flex;
    max-width: 460px;
    margin: 0 auto;
    gap: 0.75rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.9rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
}

.newsletter-form input:focus { outline: none; border-color: var(--primary); }

/* Footer */
footer {
    background: var(--primary);
    color: white;
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo { font-size: 1.3rem; font-weight: 900; margin-bottom: 1rem; }
.footer-logo span { color: var(--accent); }
.footer-col p { font-size: 0.9rem; opacity: 0.7; line-height: 1.7; }
.footer-col h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul a { font-size: 0.9rem; opacity: 0.7; transition: opacity 0.2s; }
.footer-col ul a:hover { opacity: 1; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    font-size: 0.85rem;
    opacity: 0.6;
}

.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { opacity: 0.8; }
.footer-links a:hover { opacity: 1; }

/* Cart Sidebar */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(2px);
}
.cart-overlay.open { opacity: 1; visibility: visible; }

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -440px;
    width: 420px;
    max-width: 92vw;
    height: 100%;
    background: white;
    z-index: 201;
    display: flex;
    flex-direction: column;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 30px rgba(0,0,0,0.15);
}
.cart-sidebar.open { right: 0; }

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid var(--border);
}
.cart-header h2 { font-size: 1.1rem; font-weight: 700; }
.close-cart { font-size: 1.75rem; color: var(--text-light); line-height: 1; }

.cart-items { flex: 1; overflow-y: auto; padding: 1.25rem 1.75rem; }

.empty-cart { text-align: center; color: var(--text-light); margin-top: 4rem; }
.empty-cart svg { margin: 0 auto 1rem; }

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.cart-item-img {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--bg-alt);
}

.cart-item-details { flex: 1; }
.cart-item-details h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.2rem; }
.cart-item-details .cart-item-size { font-size: 0.8rem; color: var(--text-light); margin-bottom: 0.4rem; }
.cart-item-details .cart-item-price { font-weight: 700; font-size: 0.95rem; }

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    align-self: center;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.qty-btn:hover { background: var(--border); }

.cart-footer {
    padding: 1.5rem 1.75rem;
    border-top: 1px solid var(--border);
    background: var(--bg-alt);
}
.cart-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.cart-note { font-size: 0.8rem; color: var(--text-light); margin-bottom: 1rem; }
.btn-checkout { width: 100%; }

/* Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(3px);
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.modal {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: var(--transition);
    position: relative;
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-size: 1.5rem;
    color: var(--text-light);
    line-height: 1;
}

.modal h2 { margin-bottom: 1.5rem; font-size: 1.4rem; font-weight: 800; }

/* Quick View Modal */
.modal-quickview { max-width: 800px; padding: 0; overflow: hidden; }

.quickview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.quickview-image { background: var(--bg-alt); }
.quickview-image img { width: 100%; height: 100%; object-fit: cover; min-height: 400px; }

.quickview-details { padding: 2.5rem; }
.quickview-category { font-size: 0.8rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.5rem; }
.quickview-details h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.quickview-rating { font-size: 0.85rem; margin-bottom: 1rem; }
.quickview-rating .stars { color: #f59e0b; }
.quickview-price { font-size: 1.5rem; font-weight: 800; margin-bottom: 1rem; }
.quickview-desc { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; margin-bottom: 1.5rem; }

.size-label { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.5rem; }
.size-options { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }

.size-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.size-btn:hover, .size-btn.active { border-color: var(--primary); background: var(--primary); color: white; }

/* Checkout Modal */
.modal-checkout { max-width: 520px; }

.checkout-steps {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-light);
}
.checkout-steps .step.active { color: var(--primary); font-weight: 600; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 600; font-size: 0.8rem; margin-bottom: 0.35rem; color: var(--text-light); }
.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
}
.form-group input:focus { outline: none; border-color: var(--primary); }

.form-divider { height: 1px; background: var(--border); margin: 1.25rem 0; }

.checkout-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1rem 0;
    margin-bottom: 1rem;
    border-top: 1px solid var(--border);
}

/* Confirmation Modal */
.modal-confirmation { text-align: center; max-width: 420px; }
.confirmation-icon {
    width: 64px;
    height: 64px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1.5rem;
}
.modal-confirmation p { color: var(--text-light); margin-bottom: 0.75rem; }
.order-number { font-weight: 700; color: var(--primary); margin-bottom: 1.5rem !important; }

/* Responsive */
@media (max-width: 1024px) {
    .hero { grid-template-columns: 1fr; min-height: auto; padding: 3rem 2rem; text-align: center; }
    .hero-content { margin: 0 auto; padding-right: 0; }
    .hero-actions { justify-content: center; }
    .hero-image { margin-top: 2rem; }
    .hero-image img { max-width: 400px; }
    .featured-banner { grid-template-columns: 1fr; padding: 3rem 2rem; text-align: center; }
    .featured-content { margin: 0 auto; padding-right: 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-actions .search-btn, .nav-actions .icon-btn:nth-child(2) { display: none; }
    .mobile-menu-btn { display: flex; margin-left: auto; margin-right: 0.5rem; }
    .categories-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-content h1 { font-size: 2.5rem; }
    .quickview-content { grid-template-columns: 1fr; }
    .quickview-image img { min-height: 250px; }
    .newsletter-form { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
}

/* ===== Page Styles ===== */

/* Page Hero */
.page-hero {
    background: var(--primary);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}
.page-hero h1 { font-size: 2.5rem; font-weight: 900; margin-bottom: 0.5rem; }
.page-subtitle { opacity: 0.7; font-size: 1.05rem; }

/* Content Pages */
.content-page { max-width: 1000px; margin: 0 auto; }
.content-narrow { max-width: 720px; }
.content-page h2 { font-size: 1.4rem; font-weight: 700; margin: 2.5rem 0 0.75rem; }
.content-page p { color: var(--text-light); line-height: 1.8; margin-bottom: 1rem; }

/* Shop Layout */
.shop-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 3rem;
}

.shop-sidebar { position: sticky; top: 100px; align-self: start; }

.filter-group { margin-bottom: 2rem; }
.filter-group h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-light); margin-bottom: 0.75rem; }

.filter-link {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text);
    transition: var(--transition);
    margin-bottom: 0.25rem;
}
.filter-link:hover { background: var(--bg-alt); }
.filter-link.active { background: var(--primary); color: white; }

.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.results-count { font-size: 0.9rem; color: var(--text-light); }
.filter-bar-mobile { display: none; }

/* Product Detail Page */
.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}
.breadcrumb a { color: var(--text-light); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--primary); }

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}
.product-detail-image img { width: 100%; border-radius: var(--radius-lg); }
.product-detail-info .product-category { text-transform: uppercase; font-size: 0.8rem; color: var(--text-light); letter-spacing: 0.5px; margin-bottom: 0.5rem; }
.product-detail-info h1 { font-size: 2rem; font-weight: 800; margin-bottom: 0.75rem; }
.product-detail-price { font-size: 1.75rem; font-weight: 800; margin: 1rem 0; }
.product-detail-price .price-original { font-size: 1.2rem; }
.product-detail-desc { color: var(--text-light); line-height: 1.8; margin-bottom: 1.5rem; }

.product-detail-sizes { margin-bottom: 1.5rem; }
.product-detail-meta { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.meta-item { font-size: 0.9rem; color: var(--text-light); padding: 0.4rem 0; }

.related-section h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; }

/* About Page */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}
.about-text h2 { margin-top: 0; }

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}
.value-card {
    padding: 2rem;
    background: var(--bg-alt);
    border-radius: var(--radius);
    text-align: center;
}
.value-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.value-card p { font-size: 0.9rem; color: var(--text-light); margin: 0; }

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid var(--border);
}
.stat-number { display: block; font-size: 2rem; font-weight: 900; color: var(--accent); }
.stat-label { font-size: 0.85rem; color: var(--text-light); }

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
}
.contact-info h2 { margin-top: 0; }
.contact-methods { margin-top: 2rem; }
.contact-method { margin-bottom: 1.5rem; }
.contact-method strong { display: block; margin-bottom: 0.25rem; color: var(--text); }
.contact-method p { margin: 0; color: var(--text-light); }
.text-muted { font-size: 0.85rem; opacity: 0.7; }

.contact-form-wrap {
    background: var(--bg-alt);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
}

/* FAQ Page */
.faq-list { margin: 2rem 0; }
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    overflow: hidden;
}
.faq-item summary {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-item summary::after { content: "+"; font-size: 1.25rem; color: var(--text-light); }
.faq-item[open] summary::after { content: "−"; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { padding: 0 1.5rem 1.25rem; color: var(--text-light); line-height: 1.7; }
.faq-item p a { color: var(--accent); text-decoration: underline; }

.faq-cta {
    text-align: center;
    padding: 3rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--border);
}
.faq-cta p { font-weight: 600; margin-bottom: 1rem; color: var(--text); }

/* Size Guide */
.measure-steps, .tips-list {
    padding-left: 1.5rem;
    color: var(--text-light);
    line-height: 2;
    margin-bottom: 2rem;
}

.table-wrap { overflow-x: auto; margin: 1rem 0 2rem; }
.size-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.size-table th, .size-table td {
    padding: 0.75rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.size-table th {
    background: var(--bg-alt);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Account Page */
.auth-tabs {
    display: flex;
    border-bottom: 2px solid var(--border);
    margin-bottom: 2rem;
}
.auth-tab {
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-light);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
}
.auth-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.auth-tab:hover { color: var(--primary); }

.auth-form { max-width: 400px; margin: 0 auto; }
.forgot-link { display: block; text-align: right; font-size: 0.85rem; color: var(--accent); margin: -0.5rem 0 1.5rem; }

/* Legal Pages */
.legal-content h2 { font-size: 1.2rem; }

/* Checkout Page */
.checkout-page-title { font-size: 2rem; font-weight: 800; margin-bottom: 2rem; }

.checkout-layout {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 3rem;
    align-items: start;
}

.checkout-form-section h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; }

.checkout-summary {
    background: var(--bg-alt);
    padding: 2rem;
    border-radius: var(--radius-lg);
    position: sticky;
    top: 100px;
}
.checkout-summary h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; }

.checkout-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}
.checkout-item img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.checkout-item h4 { font-size: 0.85rem; font-weight: 600; }
.checkout-item p { font-size: 0.8rem; color: var(--text-light); margin: 0; }
.checkout-item span { margin-left: auto; font-weight: 600; }

.checkout-totals { padding-top: 1rem; margin-top: 1rem; }
.total-line { display: flex; justify-content: space-between; padding: 0.5rem 0; font-size: 0.9rem; color: var(--text-light); }
.total-final { font-size: 1.1rem; font-weight: 700; color: var(--text); padding-top: 0.75rem; border-top: 1px solid var(--border); margin-top: 0.5rem; }

/* Mobile nav open */
.nav-links.mobile-open {
    display: flex !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

/* Responsive additions */
@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .checkout-layout { grid-template-columns: 1fr; }
    .product-detail { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
    .shop-layout { grid-template-columns: 1fr; }
    .shop-sidebar { display: none; }
    .filter-bar-mobile { display: flex; }
    .values-grid { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: repeat(2, 1fr); }
    .page-hero h1 { font-size: 1.75rem; }
}

/* ===== Search Page ===== */
.search-bar-large {
    display: flex;
    gap: 0.75rem;
    max-width: 600px;
    margin: 1.5rem auto 0;
}
.search-bar-large input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}
.search-bar-large input:focus { outline: none; }

.search-meta { margin-bottom: 1.5rem; }
.search-meta .results-count { font-size: 0.95rem; color: var(--text-light); }
.search-meta strong { color: var(--text); }

.empty-search { text-align: center; padding: 4rem 0; }
.empty-search h3 { margin: 1rem 0 0.5rem; }
.empty-search p { color: var(--text-light); }
.empty-search a { color: var(--accent); }

.search-suggestions { text-align: center; padding: 2rem 0; }
.search-suggestions h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.suggestion-tags { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }
.suggestion-tag {
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.9rem;
    transition: var(--transition);
}
.suggestion-tag:hover { border-color: var(--primary); background: var(--primary); color: white; }

/* ===== Cart Page ===== */
.cart-page-empty { text-align: center; padding: 4rem 0; }
.cart-page-empty h2 { margin: 1rem 0 0.5rem; }
.cart-page-empty p { color: var(--text-light); margin-bottom: 1.5rem; }

.cart-page-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: start;
}

.cart-table-header {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1fr 1fr 40px;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 2px solid var(--border);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
}

.cart-table-row {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1fr 1fr 40px;
    gap: 1rem;
    align-items: center;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
}

.cart-table-product { display: flex; align-items: center; gap: 1rem; }
.cart-table-product img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.cart-table-product h4 { font-size: 0.9rem; margin-bottom: 0.2rem; }
.cart-table-product h4 a { color: var(--text); }
.cart-table-product h4 a:hover { color: var(--accent); }
.cart-table-product p { font-size: 0.8rem; color: var(--text-light); margin: 0; }
.cart-table-price { font-weight: 500; }
.cart-table-qty { display: flex; align-items: center; gap: 0.5rem; }
.cart-table-total { font-weight: 700; }
.cart-remove-btn { background: none; color: var(--text-light); font-size: 1rem; transition: color 0.2s; }
.cart-remove-btn:hover { color: var(--accent); }

.cart-page-summary {
    background: var(--bg-alt);
    padding: 2rem;
    border-radius: var(--radius-lg);
    position: sticky;
    top: 100px;
}
.cart-page-summary h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.5rem; }

.btn-outline-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1.5px solid var(--border);
    color: var(--text);
    transition: var(--transition);
}
.btn-outline-dark:hover { border-color: var(--primary); background: var(--primary); color: white; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8rem; }

/* ===== Order Success/Fail Page ===== */
.order-confirmation-card {
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: left;
    max-width: 480px;
    margin: 0 auto;
}
.order-conf-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}
.order-conf-row:last-child { border-bottom: none; }
.order-conf-row span { color: var(--text-light); }
.order-conf-row strong { color: var(--text); }

.next-steps {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 600px;
    margin: 0 auto;
}
.next-step {
    flex: 1;
    min-width: 150px;
    text-align: center;
}
.step-icon { font-size: 1.75rem; display: block; margin-bottom: 0.5rem; }
.next-step p { font-size: 0.85rem; color: var(--text-light); margin: 0; }
.next-step a { color: var(--accent); }

/* ===== Orders Page ===== */
.order-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 1.5rem;
}
.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.order-card-header h3 { font-size: 1.1rem; }
.order-date { font-size: 0.85rem; color: var(--text-light); margin-top: 0.25rem; }

.order-status {
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
.order-status-active { background: #fef3c7; color: #92400e; }
.order-status-delivered { background: #d1fae5; color: #065f46; }

.order-tracker { margin-bottom: 1.5rem; }
.tracker-bar {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    position: relative;
    margin-bottom: 0.75rem;
}
.tracker-progress {
    height: 100%;
    background: #10b981;
    border-radius: 2px;
    transition: width 0.5s;
}
.tracker-steps {
    display: flex;
    justify-content: space-between;
}
.tracker-step { text-align: center; flex: 1; }
.tracker-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
    margin: 0 auto 0.25rem;
}
.tracker-step.active .tracker-dot { background: #10b981; }
.tracker-step span { font-size: 0.7rem; color: var(--text-light); }
.tracker-step.active span { color: var(--text); font-weight: 600; }

.order-items-list {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}
.order-item-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
}
.order-item-row img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; }
.order-item-row h4 { font-size: 0.85rem; }
.order-item-row p { font-size: 0.8rem; color: var(--text-light); margin: 0; }
.order-item-row span { margin-left: auto; font-weight: 600; font-size: 0.9rem; }

.order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    margin-top: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.order-total-label { font-size: 0.9rem; color: var(--text-light); margin-right: 0.5rem; }
.order-total-value { font-size: 1.1rem; font-weight: 700; }
.order-actions { display: flex; gap: 0.75rem; }

/* ===== Account Settings Page ===== */
.account-dashboard {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 3rem;
}
.account-sidebar { position: sticky; top: 100px; align-self: start; }
.account-nav { display: flex; flex-direction: column; gap: 0.25rem; }
.account-nav-link {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.65rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text);
    transition: var(--transition);
}
.account-nav-link:hover { background: var(--bg-alt); }
.account-nav-link.active { background: var(--primary); color: white; }
.logout-link { color: var(--accent); margin-top: 1rem; }
.logout-link:hover { background: #fff5f5; }

.account-section {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
}
.account-section:first-child { padding-top: 0; }
.account-section h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1.25rem; }

.address-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.address-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    position: relative;
}
.address-card-add {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-style: dashed;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}
.address-card-add:hover { border-color: var(--primary); color: var(--primary); }
.address-card-add span { font-size: 1.5rem; margin-bottom: 0.5rem; }
.address-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}
.address-card p { font-size: 0.9rem; color: var(--text-light); margin: 0.2rem 0; }
.address-actions { display: flex; gap: 1rem; margin-top: 0.75rem; }
.btn-text { background: none; font-size: 0.85rem; font-weight: 600; color: var(--primary); padding: 0; }
.btn-text.danger { color: var(--accent); }
.btn-text:hover { text-decoration: underline; }

.preferences-list { display: flex; flex-direction: column; gap: 0.75rem; }
.pref-item { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9rem; cursor: pointer; }
.pref-item input { width: 16px; height: 16px; }

/* Account quick links (logged-in state) */
.account-quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}
.quick-link-card {
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
}
.quick-link-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.quick-link-card span { font-size: 1.75rem; display: block; margin-bottom: 0.5rem; }
.quick-link-card h4 { font-size: 0.9rem; margin-bottom: 0.2rem; }
.quick-link-card p { font-size: 0.8rem; color: var(--text-light); margin: 0; }

/* Auth hint */
.auth-hint { font-size: 0.8rem; color: var(--text-light); text-align: center; margin-top: 1rem; }

/* Checkout page extras */
.payment-note { font-size: 0.85rem; color: #10b981; margin-bottom: 1rem; }
.checkout-agree { margin: 1.5rem 0; font-size: 0.85rem; }
.checkout-agree a { color: var(--accent); text-decoration: underline; }
.checkout-fail-hint { font-size: 0.8rem; color: var(--text-light); text-align: center; margin-top: 1rem; font-style: italic; }

/* Responsive for new pages */
@media (max-width: 1024px) {
    .cart-page-layout { grid-template-columns: 1fr; }
    .account-dashboard { grid-template-columns: 1fr; }
    .account-sidebar { position: static; }
    .account-nav { flex-direction: row; flex-wrap: wrap; gap: 0.5rem; }
}

@media (max-width: 768px) {
    .cart-table-header { display: none; }
    .cart-table-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .cart-table-product { grid-column: 1 / -1; }
    .order-card { padding: 1.25rem; }
    .tracker-steps { display: none; }
    .search-bar-large { flex-direction: column; }
    .next-steps { flex-direction: column; align-items: center; }
}

/* Checkout redirect notice */
.checkout-redirect-notice {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}
.checkout-redirect-notice p {
    margin: 0;
    color: #1e40af;
    font-size: 0.9rem;
    font-weight: 500;
}
