/* =============================================
   AEKTA STATIONERS - Premium E-Commerce Styles
   ============================================= */

/* ----- CSS Variables ----- */
:root {
    --primary: #ff3e6c;
    --primary-dark: #e8264f;
    --primary-light: #ffe5ec;
    --secondary: #14315f;
    --accent: #ffb800;
    --success: #03a685;
    --danger: #ef4444;

    --text-dark: #282c3f;
    --text-medium: #535766;
    --text-light: #94969f;
    --text-muted: #7e818c;

    --bg-white: #ffffff;
    --bg-light: #f5f5f6;
    --bg-cream: #fafafa;
    --border: #eaeaec;
    --border-dark: #d4d5d9;

    --shadow-sm: 0 2px 4px rgba(40, 44, 63, 0.06);
    --shadow-md: 0 4px 16px rgba(40, 44, 63, 0.08);
    --shadow-lg: 0 8px 32px rgba(40, 44, 63, 0.12);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    --transition: all 0.3s ease;
}

/* ----- Reset ----- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.5;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ----- Container ----- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ----- Top Strip ----- */
.top-strip {
    background: linear-gradient(90deg, #14315f 0%, #2d5395 100%);
    color: #fff;
    text-align: center;
    padding: 8px 16px;
    font-size: 12px;
    letter-spacing: 0.3px;
    font-weight: 500;
}
.top-strip strong { color: var(--accent); }

/* ----- Header ----- */
.header {
    background: #fff;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 16px 20px;
    max-width: 1280px;
    margin: 0 auto;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}
.logo-mark {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 20px;
    box-shadow: var(--shadow-sm);
}
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.logo-text strong {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: 1px;
}
.logo-text span {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav {
    display: flex;
    gap: 28px;
}
.nav a {
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 8px 0;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}
.nav a:hover, .nav a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.search-box {
    flex: 1;
    max-width: 480px;
    position: relative;
}
.search-box input {
    width: 100%;
    background: var(--bg-light);
    border: 1px solid transparent;
    padding: 12px 16px 12px 44px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-dark);
    transition: var(--transition);
}
.search-box input:focus {
    background: #fff;
    border-color: var(--border-dark);
    outline: none;
}
.search-box::before {
    content: '🔍';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    pointer-events: none;
}

.header-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}
.icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--text-dark);
    padding: 4px 8px;
    position: relative;
    transition: var(--transition);
}
.icon-btn:hover { color: var(--primary); }
.icon-btn .icon { font-size: 22px; }
.icon-btn span { font-size: 11px; font-weight: 600; }
.cart-badge {
    position: absolute;
    top: -2px;
    right: 0;
    background: var(--primary);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    color: var(--text-dark);
}

/* ----- Buttons ----- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}
.btn-primary {
    background: var(--primary);
    color: white;
}
.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(255, 62, 108, 0.4);
    transform: translateY(-1px);
}
.btn-secondary {
    background: white;
    color: var(--text-dark);
    border: 1px solid var(--border-dark);
}
.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.btn-dark {
    background: var(--secondary);
    color: white;
}
.btn-dark:hover { background: #0a1d3a; }
.btn-large { padding: 14px 32px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ----- Hero Banner ----- */
.hero {
    background: linear-gradient(135deg, #ffe9e0 0%, #ffd6e1 50%, #f3e7ff 100%);
    padding: 0;
    overflow: hidden;
    position: relative;
}
.hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 60px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    color: var(--text-dark);
}
.hero-content h1 .highlight {
    background: linear-gradient(120deg, var(--primary) 0%, #ff8540 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-content p {
    font-size: 17px;
    color: var(--text-medium);
    margin-bottom: 28px;
    max-width: 480px;
}
.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.hero-stat strong {
    display: block;
    font-size: 26px;
    color: var(--primary);
    font-weight: 800;
}
.hero-stat span {
    font-size: 12px;
    color: var(--text-medium);
    font-weight: 500;
}
.hero-image {
    position: relative;
    text-align: center;
}
.hero-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: 480px;
    object-fit: cover;
}
.hero-image::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--accent);
    opacity: 0.15;
    border-radius: 50%;
    top: -40px;
    right: -40px;
    z-index: -1;
}

.hero-floating-card {
    position: absolute;
    background: white;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}
.hero-floating-card.top {
    top: 30px;
    left: -20px;
}
.hero-floating-card.bottom {
    bottom: 30px;
    right: -20px;
}
.hero-floating-card .icon {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.hero-floating-card strong { color: var(--text-dark); display: block; font-weight: 700; }
.hero-floating-card small { color: var(--text-muted); font-size: 11px; }

/* ----- Sections ----- */
.section { padding: 60px 0; }
.section-light { background: var(--bg-cream); }
.section-header {
    text-align: center;
    margin-bottom: 40px;
}
.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.section-header p {
    color: var(--text-medium);
    font-size: 15px;
    max-width: 560px;
    margin: 0 auto;
}
.section-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

/* ----- Categories ----- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
.category-card {
    background: white;
    padding: 24px 16px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
}
.category-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.category-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 12px;
}
.category-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}
.category-card span {
    font-size: 11px;
    color: var(--text-muted);
}

/* ----- Product Grid ----- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}
.product-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    text-decoration: none;
    color: inherit;
    display: block;
}
.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: transparent;
}
.product-card .image-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--bg-light);
}
.product-card .image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card:hover .image-wrap img {
    transform: scale(1.08);
}
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--secondary);
    color: white;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}
.product-badge.bestseller { background: var(--accent); color: var(--text-dark); }
.product-badge.new { background: var(--success); }
.product-badge.trending { background: var(--primary); }
.discount-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--danger);
    color: white;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    z-index: 2;
}
.stock-warning {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.product-info {
    padding: 14px 16px 18px;
}
.product-cat {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.product-info h3 {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.3;
    height: 36px;
    overflow: hidden;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.product-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: white;
    border: 1px solid var(--border);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    margin-bottom: 8px;
    color: var(--text-medium);
    font-weight: 600;
}
.product-rating .stars { color: var(--success); }
.product-rating-divider { color: var(--border-dark); }
.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}
.price-current {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 16px;
}
.price-old {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 13px;
}
.price-discount {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
}

/* ----- Promo Banner ----- */
.promo-banner {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    border-radius: var(--radius-lg);
    overflow: hidden;
    color: white;
    padding: 50px 40px;
    margin: 60px 0;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
}
.promo-banner::before {
    content: '';
    position: absolute;
    width: 240px;
    height: 240px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    top: -100px;
    right: -50px;
}
.promo-banner h2 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 12px;
}
.promo-banner h2 span {
    color: var(--accent);
}
.promo-banner p {
    font-size: 16px;
    margin-bottom: 24px;
    opacity: 0.9;
}
.promo-image {
    text-align: center;
    position: relative;
    z-index: 1;
}
.promo-image img {
    width: 100%;
    max-width: 280px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    margin: 0 auto;
}

/* ----- Features ----- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.feature-card {
    background: white;
    padding: 28px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    text-align: center;
    transition: var(--transition);
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 16px;
}
.feature-card h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-dark);
}
.feature-card p {
    font-size: 13px;
    color: var(--text-medium);
    line-height: 1.5;
}

/* ----- Newsletter ----- */
.newsletter {
    background: linear-gradient(135deg, #fff5f7 0%, #fef9e7 100%);
    border-radius: var(--radius-lg);
    padding: 50px;
    text-align: center;
    margin: 0 auto;
    max-width: 760px;
}
.newsletter h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}
.newsletter p {
    color: var(--text-medium);
    margin-bottom: 24px;
    font-size: 14px;
}
.newsletter-form {
    display: flex;
    max-width: 480px;
    margin: 0 auto;
    gap: 8px;
}
.newsletter-form input {
    flex: 1;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-dark);
    background: white;
    font-size: 14px;
}
.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary);
}

/* ----- Footer ----- */
.footer {
    background: var(--secondary);
    color: #c8d4e6;
    padding: 60px 0 0;
    margin-top: 60px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
}
.footer-inner h4 {
    color: white;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
}
.footer-about p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
    opacity: 0.85;
}
.footer-contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 13px;
    line-height: 1.5;
}
.footer-contact-item .icon {
    color: var(--accent);
    flex-shrink: 0;
    width: 22px;
    text-align: center;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    font-size: 13px;
    color: #c8d4e6;
    transition: var(--transition);
}
.footer-links a:hover {
    color: var(--accent);
    padding-left: 4px;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 12px;
    opacity: 0.7;
}
.payment-icons {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}
.payment-icons span {
    background: white;
    color: var(--text-dark);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
}

/* ----- Page Header ----- */
.page-header {
    background: linear-gradient(135deg, #f8f4ff 0%, #fff5f5 100%);
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
}
.page-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { color: var(--border-dark); }

/* ----- Listing Page ----- */
.listing-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    padding: 40px 0;
}
.filter-sidebar {
    position: sticky;
    top: 90px;
    align-self: start;
}
.filter-section {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 16px;
}
.filter-section h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dark);
    margin-bottom: 16px;
}
.filter-section ul li {
    margin-bottom: 12px;
}
.filter-section ul li a {
    color: var(--text-medium);
    font-size: 14px;
    transition: var(--transition);
    display: block;
}
.filter-section ul li a:hover, .filter-section ul li a.active {
    color: var(--primary);
    font-weight: 600;
}

.listing-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 12px 0;
}
.listing-count {
    font-size: 14px;
    color: var(--text-medium);
}
.listing-count strong { color: var(--text-dark); }
.listing-sort select {
    padding: 8px 32px 8px 14px;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    background: white;
    font-size: 13px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23535766' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
}
.empty-state {
    text-align: center;
    padding: 80px 20px;
}
.empty-state h3 {
    font-size: 22px;
    margin: 16px 0 8px;
    color: var(--text-dark);
}
.empty-state p { color: var(--text-medium); margin-bottom: 24px; }
.empty-state .icon { font-size: 64px; opacity: 0.5; }

/* ----- Product Detail Page ----- */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px 0;
}
.gallery-main {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    margin-bottom: 12px;
}
.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.gallery-thumbs button {
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid var(--border);
    background: var(--bg-light);
    transition: var(--transition);
    padding: 0;
}
.gallery-thumbs button.active {
    border-color: var(--primary);
}
.gallery-thumbs button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info .pd-cat {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 8px;
}
.detail-info h1 {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 12px;
}
.detail-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
    font-size: 13px;
}
.detail-pricing {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}
.detail-pricing .price-current {
    font-size: 26px;
}
.detail-pricing .price-old {
    font-size: 18px;
}
.detail-pricing .price-discount {
    font-size: 14px;
}
.tax-note {
    font-size: 13px;
    color: var(--success);
    font-weight: 600;
    margin-bottom: 24px;
}

.detail-alerts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}
.alert-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    width: fit-content;
}
.alert-pill.danger { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-pill.info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

.qty-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}
.qty-row label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}
.qty-control {
    display: inline-flex;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.qty-control button {
    width: 36px;
    height: 36px;
    background: white;
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}
.qty-control button:hover { background: var(--bg-light); }
.qty-control input {
    width: 50px;
    height: 36px;
    border: none;
    border-left: 1px solid var(--border-dark);
    border-right: 1px solid var(--border-dark);
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    background: white;
    color: var(--text-dark);
}
.qty-control input:focus { outline: none; }

.detail-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
}
.detail-actions .btn { flex: 1; }

.detail-features {
    background: var(--bg-cream);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
}
.detail-features h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}
.detail-features ul li {
    padding: 6px 0 6px 24px;
    position: relative;
    font-size: 13px;
    color: var(--text-medium);
}
.detail-features ul li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
    position: absolute;
    left: 0;
}

.detail-perks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.perk {
    display: flex;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: white;
}
.perk .icon {
    font-size: 22px;
    flex-shrink: 0;
}
.perk strong { display: block; font-size: 13px; color: var(--text-dark); }
.perk small { color: var(--text-muted); font-size: 11px; }

.description-section {
    padding: 32px 0;
}
.description-section h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}
.description-section p {
    color: var(--text-medium);
    line-height: 1.7;
    font-size: 14px;
}

/* ----- Cart Page ----- */
.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    padding: 32px 0;
}
.cart-items {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 16px;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    align-items: center;
}
.cart-item:last-child { border-bottom: none; }
.cart-item-image {
    width: 100px;
    height: 100px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cart-item-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}
.cart-item-cat {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.cart-item-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.cart-item-price {
    font-weight: 700;
    color: var(--text-dark);
}
.cart-item-old {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 13px;
}
.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.cart-remove {
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
}
.cart-remove:hover { color: var(--danger); }
.cart-summary {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 90px;
}
.cart-summary h3 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px dashed var(--border-dark);
}
.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-medium);
}
.summary-row.discount { color: var(--success); }
.summary-row.total {
    padding-top: 16px;
    border-top: 1px dashed var(--border-dark);
    margin-top: 16px;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}

/* ----- Checkout Page ----- */
.checkout-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 32px;
    padding: 32px 0;
}
.checkout-form {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
}
.checkout-form h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}
.checkout-form .step-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}
.form-group label .req { color: var(--danger); }
.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-dark);
    background: white;
    transition: var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}
.form-control.error {
    border-color: var(--danger);
}
textarea.form-control {
    resize: vertical;
    min-height: 90px;
    font-family: inherit;
}
.error-message {
    color: var(--danger);
    font-size: 12px;
    margin-top: 4px;
    display: none;
}
.error-message.visible { display: block; }

.payment-section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.payment-section h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}
.cod-card {
    border: 2px solid var(--success);
    background: #f0fdf4;
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.cod-card .cod-icon {
    width: 48px;
    height: 48px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    flex-shrink: 0;
}
.cod-card strong {
    display: block;
    color: var(--text-dark);
    font-size: 15px;
    margin-bottom: 2px;
}
.cod-card span {
    font-size: 13px;
    color: var(--text-medium);
}
.cod-only-note {
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

.order-summary-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 90px;
}
.order-summary-card h3 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px dashed var(--border-dark);
}
.summary-product {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}
.summary-product:last-of-type { border-bottom: none; padding-bottom: 16px; }
.summary-product img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: var(--bg-light);
    flex-shrink: 0;
}
.summary-product-info { flex: 1; }
.summary-product-info h5 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.summary-product-info span {
    color: var(--text-muted);
    font-size: 12px;
}
.summary-product-price {
    font-weight: 700;
    color: var(--text-dark);
}

/* ----- Success Page ----- */
.success-page {
    padding: 60px 0;
    text-align: center;
}
.success-icon {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--success);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 24px;
    animation: scaleIn 0.5s ease;
}
@keyframes scaleIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.success-page h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.success-page > .container > p {
    color: var(--text-medium);
    font-size: 15px;
    margin-bottom: 24px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}
.success-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    max-width: 720px;
    margin: 0 auto 24px;
    padding: 28px;
    text-align: left;
}
.order-id-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.order-id-row .label {
    font-size: 12px;
    color: var(--text-medium);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 4px;
}
.order-id-row .id {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 1px;
}
.order-id-row .pill {
    background: var(--success);
    color: white;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}
.success-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: left;
}
.success-block h4 {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 8px;
}
.success-block p { font-size: 13px; color: var(--text-dark); line-height: 1.6; }
.summary-list {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    max-width: 720px;
    margin: 0 auto 24px;
    padding: 28px;
    text-align: left;
}
.summary-list h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
}
.success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ----- About Page ----- */
.about-hero {
    text-align: center;
    padding: 60px 20px;
}
.about-hero h1 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
}
.about-hero p {
    color: var(--text-medium);
    font-size: 17px;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 40px 0;
}
.about-grid img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    height: 400px;
    width: 100%;
    object-fit: cover;
}
.about-grid h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
}
.about-grid p {
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 12px;
}
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 40px 0;
}
.value-card {
    text-align: center;
    padding: 32px 24px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}
.value-card .icon {
    font-size: 36px;
    margin-bottom: 12px;
}
.value-card h4 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.value-card p { font-size: 13px; color: var(--text-medium); line-height: 1.6; }

/* ----- Contact Page ----- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px 0;
}
.contact-info-card {
    background: linear-gradient(135deg, var(--secondary) 0%, #2d5395 100%);
    color: white;
    border-radius: var(--radius-lg);
    padding: 40px;
}
.contact-info-card h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
}
.contact-info-card > p {
    opacity: 0.85;
    margin-bottom: 32px;
    font-size: 14px;
    line-height: 1.6;
}
.contact-detail {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}
.contact-detail .icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.contact-detail h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    font-weight: 600;
    opacity: 0.85;
}
.contact-detail p {
    font-size: 15px;
    line-height: 1.6;
    font-weight: 500;
}
.contact-form-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
}
.contact-form-card h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}
.contact-form-card > p {
    color: var(--text-medium);
    margin-bottom: 24px;
    font-size: 14px;
}
.success-banner {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 16px;
    font-weight: 500;
}
.map-section {
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 360px;
    margin: 40px 0;
    border: 1px solid var(--border);
}

/* ----- Toast notification ----- */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--text-dark);
    color: white;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    max-width: 360px;
    font-size: 14px;
}
.toast.show { transform: translateX(0); }
.toast.success { background: var(--success); }
.toast .icon { font-size: 20px; }

/* ----- Recent Order Popup ----- */
.recent-order {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 14px 18px 14px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 999;
    max-width: 320px;
    border-left: 4px solid var(--success);
    transform: translateX(-120%);
    transition: transform 0.4s ease;
    font-size: 13px;
}
.recent-order.show { transform: translateX(0); }
.recent-order img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: var(--bg-light);
    flex-shrink: 0;
}
.recent-order strong {
    display: block;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 2px;
}
.recent-order p {
    color: var(--text-medium);
    line-height: 1.4;
    font-size: 12px;
}
.recent-order p span { font-weight: 600; color: var(--text-dark); }
.recent-order small { color: var(--text-muted); font-size: 11px; display: block; margin-top: 2px; }
.recent-order-close {
    position: absolute;
    top: 4px;
    right: 6px;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

/* ----- Responsive ----- */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 36px; }
    .hero-image img { height: 380px; }
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .listing-layout { grid-template-columns: 1fr; }
    .filter-sidebar { position: static; }
    .product-detail { grid-template-columns: 1fr; }
    .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr; }
    .promo-banner { grid-template-columns: 1fr; padding: 32px 24px; }
    .promo-banner h2 { font-size: 28px; }
}

@media (max-width: 768px) {
    body { font-size: 13px; }
    .header-inner { gap: 12px; padding: 12px 16px; }
    .nav, .search-box { display: none; }
    .nav.active {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 16px;
        box-shadow: var(--shadow-md);
        gap: 0;
    }
    .nav.active a {
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
        border-radius: 0;
        width: 100%;
    }
    .mobile-menu-toggle { display: block; }
    .header-actions { gap: 8px; margin-left: auto; }
    .icon-btn span { display: none; }
    .icon-btn .icon { font-size: 20px; }

    .hero-inner { grid-template-columns: 1fr; text-align: center; padding: 40px 20px; gap: 24px; }
    .hero-content h1 { font-size: 30px; }
    .hero-content p { margin: 0 auto 24px; }
    .hero-image img { height: 280px; }
    .hero-floating-card { display: none; }
    .hero-stats { justify-content: center; }

    .section { padding: 40px 0; }
    .section-header h2 { font-size: 24px; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .category-card { padding: 16px 8px; }
    .category-icon { width: 48px; height: 48px; font-size: 24px; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-info { padding: 12px; }
    .product-info h3 { font-size: 13px; }
    .price-current { font-size: 14px; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 32px; }

    .form-row { grid-template-columns: 1fr; gap: 0; }
    .newsletter-form { flex-direction: column; }
    .newsletter { padding: 32px 20px; }
    .newsletter h2 { font-size: 22px; }

    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 12px;
    }
    .cart-item-actions {
        grid-column: 1 / -1;
        justify-content: space-between;
        padding-top: 8px;
        border-top: 1px solid var(--border);
    }
    .cart-item-image { width: 80px; height: 80px; }

    .success-grid { grid-template-columns: 1fr; }
    .order-id-row .id { font-size: 20px; }
    .recent-order { left: 12px; right: 12px; max-width: none; bottom: 12px; }
    .toast { left: 12px; right: 12px; max-width: none; }
    .promo-banner { padding: 24px 20px; }
    .promo-banner h2 { font-size: 22px; }
    .checkout-form, .contact-form-card, .contact-info-card { padding: 24px 20px; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 24px; }
    .detail-info h1 { font-size: 20px; }
    .detail-pricing .price-current { font-size: 22px; }
    .detail-actions { flex-direction: column; }
    .detail-perks { grid-template-columns: 1fr; }
    .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
}
