/* ============================================
   LEGION STORE - Main Stylesheet
   Premium E-Commerce Design
   ============================================ */

/* === CSS Variables === */
:root {
    --primary: #6c5ce7;
    --primary-dark: #5a4bd1;
    --primary-light: #a29bfe;
    --secondary: #00cec9;
    --accent: #fd79a8;
    --dark: #2d3436;
    --dark-light: #636e72;
    --gray: #b2bec3;
    --gray-light: #dfe6e9;
    --light: #f8f9fa;
    --white: #ffffff;
    --success: #00b894;
    --warning: #fdcb6e;
    --danger: #d63031;
    --info: #0984e3;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 15px 50px rgba(108, 92, 231, 0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: 'Inter', -apple-system, sans-serif;
    --font-display: 'Playfair Display', serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

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

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

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

.section {
    padding: 80px 0;
}

/* === Top Bar === */
.top-bar {
    background: var(--dark);
    color: var(--white);
    padding: 8px 0;
    font-size: 13px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left span {
    opacity: 0.9;
}

.top-bar-left i {
    margin-right: 6px;
    color: var(--primary-light);
}

.top-bar-right {
    display: flex;
    gap: 20px;
}

.top-bar-right a {
    color: var(--white);
    opacity: 0.85;
}

.top-bar-right a:hover {
    opacity: 1;
    color: var(--primary-light);
}

/* === Header === */
.main-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.header-search {
    flex: 1;
    max-width: 500px;
}

.header-search form {
    display: flex;
    border: 2px solid var(--gray-light);
    border-radius: 50px;
    overflow: hidden;
    transition: var(--transition);
}

.header-search form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    font-size: 14px;
}

.search-btn {
    padding: 12px 20px;
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background: var(--primary-dark);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-action-btn {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--light);
    color: var(--dark);
    font-size: 18px;
    transition: var(--transition);
}

.header-action-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

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

.mobile-menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--dark);
}

/* === Navigation === */
.main-nav {
    border-top: 1px solid var(--gray-light);
    padding: 0;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-list > li > a {
    display: block;
    padding: 14px 20px;
    font-weight: 500;
    font-size: 15px;
    color: var(--dark);
    position: relative;
    transition: var(--transition);
}

.nav-list > li > a:hover,
.nav-list > li > a.active {
    color: var(--primary);
}

.nav-list > li > a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px 3px 0 0;
}

.has-dropdown {
    position: relative;
}

.has-dropdown > a i {
    font-size: 10px;
    margin-left: 4px;
}

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

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

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--dark-light);
    transition: var(--transition);
}

.dropdown-menu li a:hover {
    background: var(--light);
    color: var(--primary);
    padding-left: 25px;
}

/* === Flash Messages === */
.flash-message {
    padding: 15px 0;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

.flash-message .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flash-success { background: #d4edda; color: #155724; }
.flash-error { background: #f8d7da; color: #721c24; }
.flash-info { background: #d1ecf1; color: #0c5460; }

.flash-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.5;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* === Hero Section === */
.hero-section {
    position: relative;
}

.hero-slider {
    width: 100%;
}

.hero-slide {
    min-height: 550px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    color: var(--white);
    padding: 60px 0;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
    color: var(--white);
}

.hero-slider .swiper-pagination-bullet {
    background: var(--white);
    opacity: 0.5;
}

.hero-slider .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--white);
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.3);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}

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

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

.btn-white {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.btn-white:hover {
    background: transparent;
    color: var(--white);
}

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

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

.btn-block {
    display: flex;
    width: 100%;
    justify-content: center;
}

/* === Features Section === */
.features-section {
    padding: 40px 0;
    background: var(--light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border-radius: 50%;
    font-size: 20px;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 15px;
    margin-bottom: 2px;
}

.feature-text p {
    font-size: 13px;
    color: var(--dark-light);
}

/* === Section Headers === */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 36px;
    margin-bottom: 10px;
    color: var(--dark);
}

.section-header p {
    color: var(--dark-light);
    font-size: 16px;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    margin-top: 10px;
}

.section-link:hover {
    gap: 10px;
}

/* === Categories Grid === */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
}

.category-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.category-image {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.category-placeholder {
    font-size: 30px;
    color: var(--primary);
}

.category-card h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.category-count {
    font-size: 13px;
    color: var(--dark-light);
}

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

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.product-image {
    position: relative;
    padding-top: 100%;
    background: var(--light);
    overflow: hidden;
}

.product-image img,
.product-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--gray);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

.product-badge.sale { background: var(--danger); color: var(--white); }
.product-badge.new { background: var(--success); color: var(--white); }
.product-badge.featured { background: var(--primary); color: var(--white); }

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

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

.action-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    color: var(--dark);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: var(--transition);
    font-size: 14px;
    border: none;
    cursor: pointer;
}

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

.product-info {
    padding: 18px;
}

.product-category {
    font-size: 12px;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    margin: 6px 0;
    line-height: 1.3;
}

.product-name a:hover {
    color: var(--primary);
}

.star-rating {
    display: flex;
    gap: 2px;
    color: #f1c40f;
    font-size: 13px;
    margin: 6px 0;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.price-current {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.price-old {
    font-size: 15px;
    color: var(--gray);
    text-decoration: line-through;
}

/* === Promo Section === */
.promo-section {
    padding: 40px 0;
}

.promo-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: var(--radius-lg);
    padding: 60px;
    text-align: center;
    color: var(--white);
}

.promo-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
}

.promo-content h2 {
    font-family: var(--font-display);
    font-size: 40px;
    margin-bottom: 15px;
}

.promo-content p {
    font-size: 17px;
    opacity: 0.9;
    margin-bottom: 25px;
}

/* === Testimonials === */
.testimonials-section {
    background: var(--light);
}

.testimonial-card {
    background: var(--white);
    padding: 35px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.testimonial-card p {
    font-size: 16px;
    color: var(--dark-light);
    margin: 15px 0 20px;
    font-style: italic;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.testimonial-author h4 {
    font-size: 15px;
}

.testimonial-author span {
    font-size: 13px;
    color: var(--dark-light);
}

/* === Shop Page === */
.shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
}

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

.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.widget-title {
    font-size: 17px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-light);
}

.category-list li a {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
    color: var(--dark-light);
    border-bottom: 1px solid var(--gray-light);
    transition: var(--transition);
}

.category-list li a:hover,
.category-list li a.active {
    color: var(--primary);
    font-weight: 500;
}

.category-list li a span {
    font-size: 12px;
    color: var(--gray);
}

.price-filter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-inputs input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-sm);
}

.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 12px 20px;
    background: var(--light);
    border-radius: var(--radius-sm);
}

.toolbar-left p {
    font-size: 14px;
    color: var(--dark-light);
}

.sort-select {
    padding: 8px 15px;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-sm);
    font-size: 14px;
    cursor: pointer;
}

/* === Product Detail === */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.gallery-main {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--light);
}

.gallery-main img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.product-placeholder-lg {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: var(--gray);
    background: var(--light);
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.thumb {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.thumb.active,
.thumb:hover {
    border-color: var(--primary);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info-detail {
    padding: 20px 0;
}

.product-category-tag {
    display: inline-block;
    background: var(--light);
    color: var(--primary);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.product-title {
    font-family: var(--font-display);
    font-size: 32px;
    margin-bottom: 15px;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.review-count {
    font-size: 14px;
    color: var(--dark-light);
}

.stock-status {
    font-size: 14px;
    font-weight: 600;
}

.stock-status.in-stock { color: var(--success); }
.stock-status.out-of-stock { color: var(--danger); }

.product-price-detail {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px 0;
    border-top: 1px solid var(--gray-light);
    border-bottom: 1px solid var(--gray-light);
}

.product-price-detail .price-current {
    font-size: 32px;
}

.price-save {
    background: #d4edda;
    color: #155724;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
}

.product-description {
    margin-bottom: 25px;
    color: var(--dark-light);
    line-height: 1.8;
}

.add-to-cart-form {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid var(--gray-light);
    border-radius: 50px;
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: var(--light);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

.qty-input {
    width: 50px;
    text-align: center;
    border: none;
    font-size: 16px;
    font-weight: 600;
}

.add-cart-btn {
    flex: 1;
}

.product-extras {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: var(--light);
    border-radius: var(--radius);
}

.extra-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.extra-item i {
    color: var(--primary);
    width: 20px;
}

.product-sku {
    margin-top: 15px;
    font-size: 14px;
    color: var(--dark-light);
}

/* === Product Tabs === */
.product-tabs {
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    overflow: hidden;
}

.tab-headers {
    display: flex;
    background: var(--light);
    border-bottom: 1px solid var(--gray-light);
}

.tab-btn {
    padding: 16px 30px;
    font-weight: 600;
    font-size: 15px;
    color: var(--dark-light);
    border: none;
    background: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.tab-btn.active {
    color: var(--primary);
    background: var(--white);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
}

.tab-content {
    display: none;
    padding: 30px;
}

.tab-content.active {
    display: block;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--gray-light);
}

.specs-table tr:last-child td {
    border: none;
}

/* === Cart Page === */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    text-align: left;
    padding: 15px;
    border-bottom: 2px solid var(--gray-light);
    font-size: 14px;
    text-transform: uppercase;
    color: var(--dark-light);
}

.cart-table td {
    padding: 20px 15px;
    border-bottom: 1px solid var(--gray-light);
    vertical-align: middle;
}

.cart-product-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-thumb {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.cart-thumb-placeholder {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-sm);
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
}

.cart-product h4 {
    font-size: 15px;
}

.qty-input-sm {
    width: 60px;
    padding: 8px;
    text-align: center;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-sm);
}

.remove-btn {
    color: var(--danger);
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    background: none;
    border: none;
}

.remove-btn:hover {
    transform: scale(1.2);
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.cart-summary {
    background: var(--light);
    border-radius: var(--radius);
    padding: 30px;
    position: sticky;
    top: 100px;
}

.cart-summary h3 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gray-light);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 15px;
}

.shipping-note {
    padding: 10px;
    background: #fff3cd;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: #856404;
    margin: 10px 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    border-top: 2px solid var(--gray-light);
    font-size: 20px;
    font-weight: 700;
    margin-top: 10px;
}

.free-shipping {
    color: var(--success);
    font-weight: 600;
}

.secure-badge {
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
    color: var(--dark-light);
}

.secure-badge i {
    color: var(--success);
}

/* === Checkout === */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
}

.checkout-section-box {
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 25px;
}

.checkout-section-box h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

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

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-size: 15px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.payment-methods-checkout {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-option {
    cursor: pointer;
}

.payment-option input {
    display: none;
}

.payment-option-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-size: 15px;
}

.payment-option input:checked + .payment-option-content {
    border-color: var(--primary);
    background: rgba(108, 92, 231, 0.05);
}

.payment-option-content i {
    font-size: 24px;
    color: var(--primary);
}

.order-summary-box {
    background: var(--light);
    border-radius: var(--radius);
    padding: 30px;
    position: sticky;
    top: 100px;
}

.order-items {
    max-height: 250px;
    overflow-y: auto;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-light);
}

.order-item-info {
    display: flex;
    gap: 8px;
}

.item-qty {
    color: var(--dark-light);
    font-size: 13px;
}

.summary-divider {
    height: 2px;
    background: var(--gray-light);
    margin: 15px 0;
}

.checkout-note {
    text-align: center;
    font-size: 13px;
    color: var(--dark-light);
    margin-top: 15px;
}

/* === Auth Pages === */
.auth-section {
    background: var(--light);
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.auth-box {
    max-width: 450px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-family: var(--font-display);
    font-size: 28px;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--dark-light);
}

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

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.forgot-link {
    font-size: 14px;
    color: var(--primary);
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-light);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
}

.auth-demo {
    text-align: center;
    margin-top: 15px;
    padding: 12px;
    background: var(--light);
    border-radius: var(--radius-sm);
    font-size: 13px;
}

/* === Account Page === */
.account-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
}

.account-sidebar {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 25px;
}

.account-user {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-light);
    margin-bottom: 15px;
}

.user-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 12px;
}

.account-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--dark-light);
    transition: var(--transition);
}

.account-nav a:hover,
.account-nav a.active {
    background: var(--light);
    color: var(--primary);
}

.dashboard-welcome {
    margin-bottom: 30px;
}

.dashboard-welcome h2 {
    font-family: var(--font-display);
    font-size: 24px;
    margin-bottom: 8px;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--light);
    border-radius: var(--radius);
}

.stat-card i {
    font-size: 30px;
    color: var(--primary);
}

.stat-card h4 {
    font-size: 13px;
    color: var(--dark-light);
}

.stat-card span {
    font-size: 24px;
    font-weight: 700;
}

/* === Orders === */
.order-card {
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 15px;
    transition: var(--transition);
}

.order-card:hover {
    box-shadow: var(--shadow);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.order-date {
    font-size: 13px;
    color: var(--dark-light);
    margin-left: 10px;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending { background: #fff3cd; color: #856404; }
.status-processing { background: #cce5ff; color: #004085; }
.status-shipped { background: #d1ecf1; color: #0c5460; }
.status-delivered { background: #d4edda; color: #155724; }
.status-cancelled { background: #f8d7da; color: #721c24; }

.order-items-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.order-item-preview {
    background: var(--light);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 13px;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--gray-light);
    font-size: 14px;
}

/* === Orders Table === */
.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table th,
.orders-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--gray-light);
}

.orders-table th {
    font-size: 13px;
    text-transform: uppercase;
    color: var(--dark-light);
}

/* === About Page === */
.about-hero {
    text-align: center;
    padding: 40px 0;
}

.about-hero h1 {
    font-family: var(--font-display);
    font-size: 42px;
    margin-bottom: 15px;
}

.about-lead {
    font-size: 18px;
    color: var(--dark-light);
    max-width: 600px;
    margin: 0 auto;
}

.about-content {
    max-width: 800px;
    margin: 0 auto 50px;
}

.about-text h2 {
    font-family: var(--font-display);
    font-size: 28px;
    margin-bottom: 15px;
}

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

.about-values {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.value-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.value-card i {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 15px;
}

.value-card h3 {
    font-size: 17px;
    margin-bottom: 10px;
}

.value-card p {
    font-size: 14px;
    color: var(--dark-light);
}

/* === Contact Page === */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    gap: 15px;
}

.contact-item i {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    font-size: 18px;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 14px;
    color: var(--dark-light);
}

.contact-form-box {
    background: var(--white);
    padding: 35px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* === Confirmation Page === */
.confirmation-box {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 50px;
}

.confirmation-icon {
    font-size: 80px;
    color: var(--success);
    margin-bottom: 20px;
}

.confirmation-box h1 {
    font-family: var(--font-display);
    font-size: 32px;
    margin-bottom: 15px;
}

.confirmation-msg {
    color: var(--dark-light);
    margin-bottom: 30px;
}

.order-details-box {
    background: var(--light);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 30px;
    text-align: left;
}

.order-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-light);
}

.order-detail-row:last-child {
    border: none;
}

.confirmation-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* === Error Page === */
.error-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.error-box {
    text-align: center;
}

.error-code {
    font-size: 120px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 10px;
}

.error-box h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.error-box p {
    color: var(--dark-light);
    margin-bottom: 25px;
}

/* === Empty State === */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 60px;
    color: var(--gray);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--dark-light);
    margin-bottom: 20px;
}

/* === Alerts === */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* === Pagination === */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.page-btn {
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
    background: var(--white);
    border: 1px solid var(--gray-light);
    transition: var(--transition);
}

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

/* === Breadcrumb === */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 0;
    margin-bottom: 20px;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--dark-light);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb span {
    color: var(--gray);
}

/* === Page Title === */
.page-title {
    font-family: var(--font-display);
    font-size: 32px;
    margin-bottom: 30px;
}

/* === Footer === */
.site-footer {
    background: var(--dark);
    color: var(--white);
}

.footer-top {
    padding: 60px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-title {
    font-size: 18px;
    margin-bottom: 20px;
    font-family: var(--font-display);
}

.footer-desc {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

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

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 14px;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-light);
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    border-radius: 50px;
    overflow: hidden;
    background: rgba(255,255,255,0.1);
}

.newsletter-form input {
    flex: 1;
    padding: 12px 18px;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 14px;
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.5);
}

.newsletter-form button {
    padding: 12px 18px;
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--primary-dark);
}

.payment-methods {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.payment-methods img {
    height: 25px;
    opacity: 0.7;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    opacity: 0.7;
}

/* === Back to Top === */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
    cursor: pointer;
    border: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* === Payment Page === */
.payment-box {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    padding: 50px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.payment-amount {
    font-size: 20px;
    margin: 20px 0 30px;
}

.card-element {
    padding: 15px;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}


/* === Currency Selector === */
.currency-selector {
    position: relative;
    display: inline-block;
}

.currency-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: var(--white);
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    transition: var(--transition);
}

.currency-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.currency-btn .currency-flag {
    font-size: 16px;
}

.currency-btn i {
    font-size: 9px;
    opacity: 0.7;
    transition: var(--transition);
}

.currency-selector.active .currency-btn i {
    transform: rotate(180deg);
}

.currency-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 280px;
    max-height: 400px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 9999;
    overflow: hidden;
}

.currency-selector.active .currency-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.currency-dropdown-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--gray-light);
    font-size: 13px;
    color: var(--dark);
}

.currency-list {
    max-height: 320px;
    overflow-y: auto;
}

.currency-list::-webkit-scrollbar {
    width: 5px;
}

.currency-list::-webkit-scrollbar-track {
    background: var(--light);
}

.currency-list::-webkit-scrollbar-thumb {
    background: var(--gray);
    border-radius: 3px;
}

.currency-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    color: var(--dark);
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.currency-option:hover {
    background: var(--light);
    padding-left: 22px;
}

.currency-option.active {
    background: rgba(108, 92, 231, 0.08);
    color: var(--primary);
    font-weight: 600;
}

.currency-option .currency-flag {
    font-size: 18px;
    flex-shrink: 0;
}

.currency-option .currency-name {
    flex: 1;
}

.currency-option .currency-code {
    color: var(--dark-light);
    font-size: 12px;
    flex-shrink: 0;
}

.currency-option.active .currency-code {
    color: var(--primary);
}


.currency-dropdown-footer {
    padding: 10px 18px;
    border-top: 1px solid var(--gray-light);
    font-size: 11px;
    color: var(--dark-light);
    text-align: center;
    background: var(--light);
}
