/* ============================================================
   RW Graphix - Main Stylesheet
   Custom Apparel & DTF Transfers
   ============================================================ */

/* ── CSS Custom Properties ── */
:root {
    --color-primary: #c41e2a;
    --color-primary-dark: #9c1620;
    --color-primary-light: #e8343f;
    --color-secondary: #1a1a2e;
    --color-dark: #111111;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-text-muted: #999999;
    --color-bg: #ffffff;
    --color-bg-light: #f8f9fa;
    --color-bg-alt: #f0f0f0;
    --color-border: #e0e0e0;
    --color-success: #28a745;
    --color-warning: #ffc107;
    --color-danger: #dc3545;
    --color-info: #17a2b8;

    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Bebas Neue', 'Impact', sans-serif;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --transition: 0.3s ease;
    --max-width: 1280px;
}

/* ── Reset ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-primary-dark);
}

ul, ol {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ── Container ── */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

.section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-light);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Header / Top Bar ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--color-bg);
    box-shadow: var(--shadow-sm);
}

.header-top {
    background: var(--color-secondary);
    color: #ccc;
    font-size: 0.8rem;
    padding: 6px 0;
}

.header-top-content {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.header-top a {
    color: #ccc;
}

.header-top a:hover {
    color: #fff;
}

.header-badge {
    color: var(--color-warning);
    font-weight: 600;
}

/* ── Main Navigation ── */
.main-nav {
    padding: 12px 0;
    background: var(--color-bg);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-logo {
    flex-shrink: 0;
}

.logo-img {
    height: 55px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: var(--color-text);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
    background: rgba(196, 30, 42, 0.06);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.9rem;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    position: relative;
    white-space: nowrap;
}

.nav-action-btn:hover {
    color: var(--color-primary);
    background: rgba(196, 30, 42, 0.06);
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Nav Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    padding: 8px 0;
    z-index: 100;
}

.nav-dropdown.open .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--color-text);
    font-size: 0.9rem;
    transition: background var(--transition);
}

.nav-dropdown-menu a:hover {
    background: var(--color-bg-light);
    color: var(--color-primary);
}

.nav-dropdown-menu hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 4px 0;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-dark);
    position: relative;
    transition: all var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--color-dark);
    left: 0;
    transition: all var(--transition);
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--color-secondary);
    color: #fff;
    border-color: var(--color-secondary);
}

.btn-secondary:hover {
    background: #16162a;
    color: #fff;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-1px);
}

.btn-white {
    background: #fff;
    color: var(--color-primary);
    border-color: #fff;
}

.btn-white:hover {
    background: var(--color-bg-light);
    color: var(--color-primary-dark);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

/* ── Flash Messages ── */
.flash-container {
    position: fixed;
    top: 120px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 400px;
}

.flash {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: 0.9rem;
    animation: slideIn 0.3s ease;
}

.flash-success { background: #d4edda; color: #155724; border-left: 4px solid var(--color-success); }
.flash-error { background: #f8d7da; color: #721c24; border-left: 4px solid var(--color-danger); }
.flash-warning { background: #fff3cd; color: #856404; border-left: 4px solid var(--color-warning); }
.flash-info { background: #d1ecf1; color: #0c5460; border-left: 4px solid var(--color-info); }

.flash-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.6;
    color: inherit;
}

.flash-close:hover { opacity: 1; }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ── Hero Section ── */
.hero {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #0f0f23 50%, var(--color-primary-dark) 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(196,30,42,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1;
}

.hero h1 span {
    color: var(--color-primary-light);
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Section Styling ── */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--color-bg-light);
}

.section-dark {
    background: var(--color-secondary);
    color: #fff;
}

.section-dark h2,
.section-dark h3,
.section-dark .section-title {
    color: #fff;
}

.section-dark .section-subtitle {
    color: rgba(255,255,255,0.7);
}

/* ── About / Services Grid ── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-text p {
    margin-bottom: 16px;
    color: var(--color-text-light);
    line-height: 1.8;
}

.services-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

.services-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--color-bg);
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
}

.services-list li i {
    color: var(--color-primary);
    font-size: 0.85rem;
}

.about-visual {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-card {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
    padding: 32px;
    border-radius: var(--radius-lg);
    text-align: center;
}

.about-card i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    opacity: 0.9;
}

.about-card h3 {
    color: #fff;
    margin-bottom: 8px;
}

.about-card p {
    opacity: 0.9;
    font-size: 0.9rem;
}

/* ── Category Cards ── */
.category-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.category-card {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
    text-align: center;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.category-card-img {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #fff;
}

.category-card-img.bg-christmas { background: linear-gradient(135deg, #c41e2a, #1a5e1f); }
.category-card-img.bg-easter { background: linear-gradient(135deg, #a8e6cf, #ffd3b6, #ffaaa5); }
.category-card-img.bg-stpatricks { background: linear-gradient(135deg, #1a8a3b, #4caf50); }
.category-card-img.bg-valentines { background: linear-gradient(135deg, #e91e63, #f48fb1); }
.category-card-img.bg-gang-sheets { background: linear-gradient(135deg, var(--color-secondary), #2a2a4e); }
.category-card-img.bg-transfers { background: linear-gradient(135deg, #ff6b35, #f7c948); }

.category-card-body {
    padding: 20px;
}

.category-card-body h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.category-card-body p {
    color: var(--color-text-light);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

/* ── Steps / Process ── */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 40px;
}

.step-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.step-card h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.step-card p {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.step-card i.step-icon {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 12px;
}

/* ── Product Grid ── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--color-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 1px solid var(--color-border);
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.product-card-img {
    position: relative;
    height: 220px;
    background: var(--color-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card-img img {
    max-height: 100%;
    object-fit: contain;
    padding: 16px;
}

.product-card-img .badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.product-card-body {
    padding: 16px;
}

.product-card-category {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.product-card-body h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-card-body h3 a {
    color: var(--color-dark);
}

.product-card-body h3 a:hover {
    color: var(--color-primary);
}

.product-card-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.product-card-price .price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
}

.product-card-price .original-price {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    text-decoration: line-through;
}

.product-card-actions {
    display: flex;
    gap: 8px;
}

.product-card-actions .btn {
    flex: 1;
    padding: 10px 12px;
    font-size: 0.85rem;
}

/* ── Product Detail Page ── */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 48px 0;
}

.product-gallery {
    background: var(--color-bg-light);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.product-gallery img {
    max-height: 400px;
    object-fit: contain;
}

.product-info h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.product-info .product-sku {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.product-info .product-price-large {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.product-info .product-description {
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 24px;
}

.product-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--color-bg-light);
    border-radius: var(--radius-md);
}

.product-options label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text);
}

.quantity-input {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    width: fit-content;
}

.quantity-input button {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--color-bg-light);
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--color-text);
    transition: background var(--transition);
}

.quantity-input button:hover {
    background: var(--color-border);
}

.quantity-input input {
    width: 50px;
    height: 40px;
    border: none;
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    text-align: center;
    font-weight: 600;
    -moz-appearance: textfield;
}

.quantity-input input::-webkit-outer-spin-button,
.quantity-input input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.product-meta {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.product-meta i {
    width: 20px;
    color: var(--color-primary);
}

/* ── Sidebar / Filters ── */
.catalog-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    padding: 48px 0;
}

.catalog-sidebar {
    position: sticky;
    top: 140px;
    align-self: start;
}

.sidebar-section {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
}

.sidebar-section h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-primary);
}

.sidebar-section ul li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    color: var(--color-text);
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.sidebar-section ul li a:hover,
.sidebar-section ul li a.active {
    background: rgba(196, 30, 42, 0.06);
    color: var(--color-primary);
}

.sidebar-section ul li a .count {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.sidebar-section ul li ul {
    padding-left: 16px;
}

/* ── Testimonials ── */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background: var(--color-bg);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    font-size: 4rem;
    color: var(--color-primary);
    opacity: 0.2;
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: serif;
    line-height: 1;
}

.testimonial-card p {
    font-style: italic;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.testimonial-card .stars {
    color: var(--color-warning);
    margin-bottom: 8px;
}

.testimonial-card .author {
    font-weight: 700;
    color: var(--color-dark);
}

/* ── CTA Banner ── */
.cta-banner {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.cta-banner h2 {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.cta-banner p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Forms ── */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--color-text);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--color-text);
    background: var(--color-bg);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(196, 30, 42, 0.1);
}

.form-control::placeholder {
    color: var(--color-text-muted);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-error {
    color: var(--color-danger);
    font-size: 0.85rem;
    margin-top: 4px;
}

.form-help {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-top: 4px;
}

/* ── Auth Pages ── */
.auth-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
}

.auth-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 460px;
    box-shadow: var(--shadow-lg);
}

.auth-card h1 {
    text-align: center;
    margin-bottom: 8px;
    font-size: 1.8rem;
}

.auth-card .auth-subtitle {
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: 28px;
}

.auth-card .auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* ── Cart Page ── */
.cart-page {
    padding: 48px 0;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 32px;
}

.cart-table th {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 2px solid var(--color-border);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-light);
}

.cart-table td {
    padding: 16px;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}

.cart-item-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-item-thumb {
    width: 70px;
    height: 70px;
    background: var(--color-bg-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cart-item-thumb img {
    max-width: 50px;
    max-height: 50px;
    object-fit: contain;
}

.cart-item-name {
    font-weight: 600;
    color: var(--color-dark);
}

.cart-item-meta {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.cart-remove {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
    transition: color var(--transition);
}

.cart-remove:hover {
    color: var(--color-danger);
}

.cart-summary {
    max-width: 400px;
    margin-left: auto;
    background: var(--color-bg-light);
    border-radius: var(--radius-md);
    padding: 24px;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.95rem;
}

.cart-summary-row.total {
    border-top: 2px solid var(--color-border);
    margin-top: 8px;
    padding-top: 16px;
    font-size: 1.2rem;
    font-weight: 700;
}

.cart-summary-row .free-shipping {
    color: var(--color-success);
    font-weight: 600;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    gap: 16px;
}

.cart-empty {
    text-align: center;
    padding: 80px 24px;
}

.cart-empty i {
    font-size: 4rem;
    color: var(--color-border);
    margin-bottom: 16px;
}

.cart-empty h2 {
    margin-bottom: 12px;
}

.cart-empty p {
    color: var(--color-text-light);
    margin-bottom: 24px;
}

/* ── Checkout Page ── */
.checkout-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    padding: 48px 0;
}

.checkout-section {
    margin-bottom: 32px;
}

.checkout-section h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-primary);
}

.order-summary-card {
    background: var(--color-bg-light);
    border-radius: var(--radius-md);
    padding: 24px;
    position: sticky;
    top: 140px;
}

.order-summary-card h2 {
    font-size: 1.2rem;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-primary);
}

.order-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--color-border);
}

.order-summary-item:last-of-type {
    border-bottom: none;
}

.order-summary-item .item-name {
    flex: 1;
    margin-right: 12px;
}

.order-summary-item .item-qty {
    color: var(--color-text-muted);
    margin-right: 12px;
    white-space: nowrap;
}

.demo-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: #856404;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ── Order Confirmation ── */
.confirmation-page {
    text-align: center;
    padding: 80px 24px;
    max-width: 600px;
    margin: 0 auto;
}

.confirmation-page .check-circle {
    width: 80px;
    height: 80px;
    background: var(--color-success);
    color: #fff;
    font-size: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.confirmation-page h1 {
    margin-bottom: 12px;
}

.confirmation-page .order-number {
    font-size: 1.2rem;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 20px;
}

/* ── Create Transfers Page ── */
.create-page {
    padding: 48px 0;
}

.create-steps {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 48px;
}

.create-step-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
}

.create-step-indicator .step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-border);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.create-step-indicator.active {
    color: var(--color-primary);
}

.create-step-indicator.active .step-num {
    background: var(--color-primary);
    color: #fff;
}

.create-step-indicator.completed .step-num {
    background: var(--color-success);
    color: #fff;
}

.create-step-indicator::after {
    content: '';
    width: 40px;
    height: 2px;
    background: var(--color-border);
    position: absolute;
    right: -20px;
}

.create-step-indicator:last-child::after {
    display: none;
}

.step-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.step-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.format-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 700px;
    margin: 0 auto;
}

.format-card {
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
}

.format-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.format-card.selected {
    border-color: var(--color-primary);
    background: rgba(196, 30, 42, 0.04);
}

.format-card i {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.format-card h3 {
    margin-bottom: 8px;
}

.format-card p {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* Upload zone */
.upload-zone {
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--color-bg-light);
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--color-primary);
    background: rgba(196, 30, 42, 0.04);
}

.upload-zone i {
    font-size: 3rem;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.upload-zone p {
    color: var(--color-text-light);
}

.upload-zone .upload-hint {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 8px;
}

.upload-preview {
    margin-top: 24px;
    display: none;
}

.upload-preview.visible {
    display: block;
}

.preview-container {
    max-width: 400px;
    margin: 0 auto;
    position: relative;
    background: var(--color-bg-light);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
}

.preview-container img {
    max-height: 300px;
    margin: 0 auto;
}

.preview-filename {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* ── Contact Page ── */
.contact-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    padding: 48px 0;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-info-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    background: var(--color-bg-light);
    border-radius: var(--radius-md);
}

.contact-info-card i {
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-card h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.contact-info-card p, .contact-info-card a {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.contact-map {
    margin-top: 24px;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 250px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ── Account Page ── */
.account-page {
    padding: 48px 0;
}

.account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.account-section {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
}

.account-section h2 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-primary);
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table th {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 2px solid var(--color-border);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-light);
}

.orders-table td {
    padding: 12px;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9rem;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending { background: #fff3cd; color: #856404; }
.status-processing { background: #d1ecf1; color: #0c5460; }
.status-shipped { background: #d4edda; color: #155724; }
.status-delivered { background: #d4edda; color: #155724; }
.status-cancelled { background: #f8d7da; color: #721c24; }

/* ── Breadcrumbs ── */
.breadcrumbs {
    padding: 16px 0;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.breadcrumbs a {
    color: var(--color-text-muted);
}

.breadcrumbs a:hover {
    color: var(--color-primary);
}

.breadcrumbs span {
    margin: 0 8px;
}

/* ── Page Header ── */
.page-header {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #0f0f23 100%);
    color: #fff;
    padding: 48px 0;
    text-align: center;
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    letter-spacing: 1px;
    color: #fff;
    margin-bottom: 8px;
}

.page-header p {
    color: rgba(255,255,255,0.7);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ── Pagination ── */
.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 40px;
}

.pagination a, .pagination span {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    transition: all var(--transition);
}

.pagination a:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.pagination .active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* ── Utilities ── */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--color-text-muted); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.hidden { display: none !important; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .catalog-sidebar {
        position: static;
    }

    .product-detail {
        grid-template-columns: 1fr;
    }

    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .account-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-bg);
        flex-direction: column;
        padding: 16px;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--color-border);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .nav-user-name {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .format-cards {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .cart-table thead {
        display: none;
    }

    .cart-table tr {
        display: block;
        border-bottom: 2px solid var(--color-border);
        padding: 12px 0;
    }

    .cart-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: none;
        padding: 6px 16px;
    }

    .cart-table td::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 0.85rem;
        text-transform: uppercase;
        color: var(--color-text-light);
    }

    .cart-actions {
        flex-direction: column;
    }

    .header-top-content {
        font-size: 0.75rem;
        gap: 12px;
    }

    .header-badge {
        display: none;
    }

    .category-cards {
        grid-template-columns: 1fr 1fr;
    }

    .create-step-indicator span:not(.step-num) {
        display: none;
    }

    .create-step-indicator::after {
        width: 20px;
        right: -10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 50px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section {
        padding: 50px 0;
    }

    .category-cards {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}
