/**
 * GenzoMart - Main Stylesheet
 * Version: 2.0 Enhanced
 */

:root {
    --primary-color: #4CAF50;
    --primary-dark: #388E3C;
    --primary-light: #81C784;
    --secondary-color: #8BC34A;
    --accent-color: #FFC107;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --gray-light: #e9ecef;
    --danger-color: #dc3545;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --white: #ffffff;
    --black: #333333;
    --border-color: #dee2e6;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 20px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
    --border-radius: 5px;
    --border-radius-lg: 10px;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--dark-color);
}

h1 { font-size: 36px; }
h2 { font-size: 30px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }

p {
    margin-bottom: 15px;
}

.lead {
    font-size: 18px;
    font-weight: 300;
}

.text-muted {
    color: var(--gray-color);
}

.text-primary { color: var(--primary-color); }
.text-success { color: var(--success-color); }
.text-danger { color: var(--danger-color); }
.text-warning { color: var(--warning-color); }
.text-info { color: var(--info-color); }

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    padding: 10px 20px;
    font-size: 14px;
    line-height: 1.5;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn:active {
    transform: translateY(0);
}

.btn-lg {
    padding: 12px 30px;
    font-size: 16px;
}

.btn-sm {
    padding: 5px 15px;
    font-size: 12px;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-danger {
    background: var(--danger-color);
    color: var(--white);
}

.btn-success {
    background: var(--success-color);
    color: var(--white);
}

.btn-warning {
    background: var(--warning-color);
    color: var(--dark-color);
}

.btn-info {
    background: var(--info-color);
    color: var(--white);
}

.btn-light {
    background: var(--light-color);
    color: var(--dark-color);
    border: 1px solid var(--border-color);
}

.btn-link {
    background: transparent;
    color: var(--primary-color);
    text-decoration: underline;
}

.btn-link:hover {
    color: var(--primary-dark);
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
    color: var(--dark-color);
}

.form-control {
    display: block;
    width: 100%;
    padding: 10px 15px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--black);
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

.form-control-file {
    display: block;
    width: 100%;
    padding: 10px 0;
}

.form-check {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.form-check-input {
    position: absolute;
    left: 0;
    top: 3px;
}

.form-check-label {
    margin-bottom: 0;
}

.input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.input-group-prepend,
.input-group-append {
    display: flex;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 400;
    color: var(--black);
    text-align: center;
    background-color: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.input-group .form-control {
    position: relative;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 5px;
    font-size: 12px;
    color: var(--danger-color);
}

/* ============================================
   ALERTS
   ============================================ */

.alert {
    position: relative;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

/* ============================================
   TABLE
   ============================================ */

.table {
    width: 100%;
    margin-bottom: 20px;
    color: var(--black);
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px;
    vertical-align: top;
    border-top: 1px solid var(--border-color);
}

.table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid var(--border-color);
    background-color: var(--light-color);
    font-weight: 600;
}

.table tbody tr:hover {
    background-color: rgba(0,0,0,0.02);
}

.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ============================================
   BADGES
   ============================================ */

.badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 3px;
}

.badge-primary { background: var(--primary-color); color: white; }
.badge-success { background: var(--success-color); color: white; }
.badge-danger { background: var(--danger-color); color: white; }
.badge-warning { background: var(--warning-color); color: var(--dark-color); }
.badge-info { background: var(--info-color); color: white; }
.badge-light { background: var(--light-color); color: var(--dark-color); }
.badge-dark { background: var(--dark-color); color: white; }

.badge-pending { background: #fff3cd; color: #856404; }
.badge-processing { background: #cce5ff; color: #004085; }
.badge-shipped { background: #d4edda; color: #155724; }
.badge-delivered { background: #28a745; color: white; }
.badge-cancelled { background: #f8d7da; color: #721c24; }

/* ============================================
   CARD
   ============================================ */

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: var(--white);
    background-clip: border-box;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.card-header {
    padding: 15px 20px;
    margin-bottom: 0;
    background-color: rgba(0,0,0,0.02);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

.card-body {
    flex: 1 1 auto;
    min-height: 1px;
    padding: 20px;
}

.card-footer {
    padding: 15px 20px;
    background-color: rgba(0,0,0,0.02);
    border-top: 1px solid var(--border-color);
}

/* ============================================
   PRODUCT CARD
   ============================================ */

.product-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #999;
}

.product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-actions {
    opacity: 1;
}

.action-btn {
    width: 35px;
    height: 35px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.action-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.sale-badge,
.new-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--danger-color);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
}

.new-badge {
    background: var(--primary-color);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.product-info h3 a {
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
}

.product-info h3 a:hover {
    color: var(--primary-color);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
    font-size: 12px;
}

.stars {
    display: flex;
    gap: 2px;
}

.stars i {
    color: #ddd;
    font-size: 12px;
}

.stars i.active {
    color: #ffc107;
}

.product-price {
    margin-bottom: 15px;
}

.price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.sale-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--danger-color);
    margin-right: 10px;
}

.regular-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.top-bar {
    background: var(--dark-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

.top-bar a {
    color: var(--white);
    text-decoration: none;
    margin-right: 15px;
    transition: var(--transition);
}

.top-bar a:hover {
    color: var(--secondary-color);
}

.main-header {
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.logo span {
    color: var(--dark-color);
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-form input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.search-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-form button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.search-form button:hover {
    background: var(--secondary-color);
}

.header-icons {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: flex-end;
}

.header-icon {
    position: relative;
    color: var(--dark-color);
    text-decoration: none;
    font-size: 22px;
    transition: var(--transition);
}

.header-icon:hover {
    color: var(--primary-color);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 50%;
    min-width: 18px;
    text-align: center;
}

.nav-menu {
    background: var(--light-color);
    padding: 12px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    padding: 5px 10px;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a.active:after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
}

/* ============================================
   FOOTER
   ============================================ */

.main-footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-widget h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

.footer-widget ul {
    list-style: none;
    padding: 0;
}

.footer-widget ul li {
    margin-bottom: 12px;
}

.footer-widget a {
    color: #999;
    text-decoration: none;
    transition: var(--transition);
}

.footer-widget a:hover {
    color: var(--primary-color);
}

.footer-widget i {
    margin-right: 10px;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid #444;
    color: #999;
    font-size: 14px;
}

/* ============================================
   HERO SLIDER
   ============================================ */

.hero-slider {
    height: 500px;
    position: relative;
    overflow: hidden;
}

.hero-slide {
    height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-slide:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
}

.slide-content {
    position: relative;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    z-index: 1;
}

.slide-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--white);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
    opacity: 1;
}

.swiper-button-prev,
.swiper-button-next {
    color: var(--white);
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.features-section {
    padding: 60px 0;
    background: var(--white);
}

.feature-box {
    text-align: center;
    padding: 30px 20px;
    background: var(--light-color);
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
}

.feature-box:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-5px);
}

.feature-box i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: var(--transition);
}

.feature-box:hover i {
    color: var(--white);
}

.feature-box h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: inherit;
}

.feature-box p {
    font-size: 14px;
    opacity: 0.8;
    margin: 0;
}

/* ============================================
   CATEGORIES SECTION
   ============================================ */

.categories-section {
    padding: 60px 0;
    background: var(--light-color);
}

.category-card {
    display: block;
    text-align: center;
    text-decoration: none;
    color: var(--dark-color);
    padding: 20px;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
    margin-bottom: 20px;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.category-image {
    width: 100%;
    height: 150px;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-placeholder {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, #e0e0e0, #f0f0f0);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #999;
    margin-bottom: 15px;
}

.category-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.category-info span {
    font-size: 14px;
    color: var(--gray-color);
}

/* ============================================
   SECTION TITLE
   ============================================ */

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

.section-title p {
    color: var(--gray-color);
    font-size: 16px;
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   DEALS SECTION
   ============================================ */

.deals-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.deal-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    transition: var(--transition);
    margin-bottom: 30px;
}

.deal-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.deal-card.flash {
    border: 2px solid var(--danger-color);
}

.deal-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--danger-color);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    z-index: 1;
}

.deal-image {
    height: 200px;
    overflow: hidden;
}

.deal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.deal-info {
    padding: 20px;
}

.deal-info h3 {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 600;
}

.deal-info h3 a {
    color: var(--dark-color);
    text-decoration: none;
}

.deal-price {
    margin-bottom: 10px;
}

.deal-savings {
    font-size: 12px;
    color: var(--success-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.stock-left {
    font-size: 12px;
    color: var(--danger-color);
    margin-bottom: 10px;
}

.deal-timer {
    font-size: 18px;
    font-weight: 700;
    color: var(--danger-color);
    margin-bottom: 15px;
    text-align: center;
}

.deal-timer span {
    background: var(--dark-color);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 5px;
    margin: 0 2px;
}

.flash-sale-banner {
    background: linear-gradient(135deg, var(--danger-color), #ff6b6b);
    color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    margin-bottom: 40px;
    text-align: center;
}

.flash-sale-banner h2 {
    font-size: 48px;
    margin-bottom: 10px;
    color: var(--white);
}

.flash-timer {
    font-size: 36px;
    font-weight: 700;
    margin-top: 20px;
}

/* ============================================
   TESTIMONIALS
   ============================================ */

.testimonials-section {
    padding: 60px 0;
    background: var(--white);
}

.testimonial-card {
    background: var(--light-color);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    margin: 20px 0;
}

.testimonial-image {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-image .avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 700;
}

.testimonial-content .rating {
    margin-bottom: 15px;
}

.testimonial-content .rating i {
    color: #ffc107;
    margin: 0 2px;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 15px;
}

.testimonial-content h4 {
    margin-bottom: 5px;
    font-size: 18px;
}

.testimonial-content span {
    color: var(--gray-color);
    font-size: 14px;
}

/* ============================================
   NEWSLETTER
   ============================================ */

.newsletter-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-align: center;
}

.newsletter-content h2 {
    color: var(--white);
    margin-bottom: 15px;
}

.newsletter-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form .input-group {
    margin-bottom: 15px;
}

.newsletter-form input {
    height: 50px;
    border: none;
    padding: 0 20px;
    border-radius: 30px 0 0 30px;
}

.newsletter-form button {
    height: 50px;
    border-radius: 0 30px 30px 0;
    padding: 0 30px;
    background: var(--dark-color);
    border: none;
}

.newsletter-form button:hover {
    background: #1e2b37;
}

/* ============================================
   CART PAGE
   ============================================ */

.cart-page {
    padding: 40px 0;
}

.cart-items {
    margin-bottom: 30px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    margin-bottom: 15px;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    margin-right: 20px;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h3 {
    margin: 0 0 5px;
    font-size: 16px;
}

.cart-item-details h3 a {
    color: var(--dark-color);
}

.cart-item-price {
    color: var(--gray-color);
    font-size: 14px;
}

.cart-item-quantity {
    width: 120px;
    margin: 0 20px;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.qty-btn {
    width: 35px;
    height: 35px;
    background: var(--light-color);
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.quantity-control input {
    width: 50px;
    height: 35px;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    text-align: center;
    font-size: 14px;
}

.quantity-control input:focus {
    outline: none;
}

.cart-item-total {
    font-weight: 600;
    font-size: 16px;
    min-width: 100px;
    text-align: right;
}

.cart-item-remove {
    margin-left: 20px;
}

.remove-btn {
    width: 35px;
    height: 35px;
    background: var(--danger-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.remove-btn:hover {
    background: #c82333;
    transform: scale(1.1);
}

.cart-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.cart-summary {
    background: var(--light-color);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    position: sticky;
    top: 100px;
}

.cart-summary h3 {
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 20px 0;
}

.free-shipping-progress {
    margin: 20px 0;
}

.progress-text {
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--gray-color);
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart i {
    font-size: 80px;
    color: var(--gray-color);
    margin-bottom: 20px;
}

.empty-cart h2 {
    margin-bottom: 10px;
}

.empty-cart p {
    color: var(--gray-color);
    margin-bottom: 30px;
}

.empty-cart-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* ============================================
   CHECKOUT PAGE
   ============================================ */

.checkout-page {
    padding: 40px 0;
}

.checkout-steps {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.step {
    display: flex;
    align-items: center;
    margin: 0 20px;
    position: relative;
}

.step:not(:last-child):after {
    content: '';
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 2px;
    background: var(--border-color);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--light-color);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 10px;
}

.step.active .step-number {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.step-label {
    font-weight: 500;
}

.checkout-section {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    margin-bottom: 30px;
}

.checkout-section h3 {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.address-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.address-card {
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.address-card:hover,
.address-card.selected {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.address-card.default {
    border-color: var(--success-color);
    background: #f0fff4;
}

.default-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--success-color);
    color: var(--white);
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
}

.address-radio {
    display: flex;
    cursor: pointer;
}

.address-details {
    flex: 1;
    margin-left: 10px;
}

.address-details h4 {
    margin: 0 0 10px;
    font-size: 16px;
}

.address-details p {
    margin: 0 0 5px;
    color: var(--gray-color);
}

.address-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.payment-methods-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.payment-method-card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 15px;
    cursor: pointer;
    transition: var(--transition);
}

.payment-method-card:hover {
    border-color: var(--primary-color);
}

.payment-method-card.selected {
    border-color: var(--primary-color);
    background: #f0f7ff;
}

.method-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.method-info i {
    font-size: 24px;
}

.payment-fields {
    margin-top: 20px;
    padding: 20px;
    background: var(--light-color);
    border-radius: var(--border-radius);
}

.order-summary {
    background: var(--light-color);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    position: sticky;
    top: 100px;
}

.order-items {
    margin-bottom: 20px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.item-info {
    flex: 1;
}

.item-name {
    font-weight: 500;
}

.item-qty {
    color: var(--gray-color);
    margin-left: 10px;
    font-size: 12px;
}

.item-price {
    font-weight: 600;
}

.summary-totals {
    margin: 20px 0;
}

.terms-agreement {
    margin: 20px 0;
}

.secure-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--success-color);
    margin-top: 20px;
}

/* ============================================
   ORDER CONFIRMATION
   ============================================ */

.order-confirmation-page {
    padding: 40px 0;
}

.confirmation-box {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
    padding: 40px;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
}

.success-animation {
    margin: 30px auto;
    width: 100px;
    height: 100px;
}

.checkmark-circle {
    width: 100px;
    height: 100px;
    position: relative;
    display: inline-block;
    vertical-align: top;
}

.checkmark-circle .background {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--success-color);
    position: absolute;
}

.checkmark-circle .checkmark {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: block;
    stroke-width: 2;
    stroke: #fff;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px var(--success-color);
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
    position: relative;
    top: 0;
    left: 0;
}

.checkmark-circle .checkmark.draw:after {
    animation-delay: 100ms;
    animation-duration: 1s;
    animation-timing-function: ease;
    animation-name: checkmark;
    transform: scaleX(-1) rotate(135deg);
    opacity: 1;
    height: 56px;
    width: 28px;
    transform-origin: left top;
    border-right: 3px solid #fff;
    border-top: 3px solid #fff;
    content: '';
    left: 35px;
    top: 48px;
    position: absolute;
}

@keyframes checkmark {
    0% { height: 0; width: 0; opacity: 1; }
    20% { height: 0; width: 28px; opacity: 1; }
    40% { height: 56px; width: 28px; opacity: 1; }
    100% { height: 56px; width: 28px; opacity: 1; }
}

.order-info-box {
    background: var(--light-color);
    padding: 20px;
    border-radius: var(--border-radius);
    margin: 30px 0;
    text-align: left;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.info-row:last-child {
    border-bottom: none;
}

.confirmation-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* ============================================
   AUTH PAGES (LOGIN/REGISTER)
   ============================================ */

.auth-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 60px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.auth-box {
    max-width: 450px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-hover);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--gray-color);
}

.auth-form .form-group {
    position: relative;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.social-login {
    margin-top: 30px;
}

.or-divider {
    text-align: center;
    position: relative;
    margin: 20px 0;
}

.or-divider:before,
.or-divider:after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: var(--border-color);
}

.or-divider:before {
    left: 0;
}

.or-divider:after {
    right: 0;
}

.or-divider span {
    background: var(--white);
    padding: 0 10px;
    color: var(--gray-color);
    font-size: 12px;
}

.social-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.btn-google {
    background: #DB4437;
    color: white;
    border: none;
}

.btn-google:hover {
    background: #c53929;
    color: white;
}

.btn-facebook {
    background: #4267B2;
    color: white;
    border: none;
}

.btn-facebook:hover {
    background: #365899;
    color: white;
}

/* ============================================
   ACCOUNT DASHBOARD
   ============================================ */

.account-page {
    padding: 40px 0;
}

.account-sidebar {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}

.user-profile {
    padding: 30px 20px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.user-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--white);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 700;
}

.user-profile h4 {
    color: var(--white);
    margin: 10px 0 5px;
}

.user-profile p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.member-since {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    opacity: 0.8;
}

.account-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.account-menu li {
    border-bottom: 1px solid var(--border-color);
}

.account-menu li:last-child {
    border-bottom: none;
}

.account-menu a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
}

.account-menu a:hover,
.account-menu a.active {
    background: var(--light-color);
    color: var(--primary-color);
    padding-left: 25px;
}

.account-menu a i {
    width: 25px;
    margin-right: 10px;
}

.account-menu .badge {
    margin-left: auto;
}

.account-menu .logout a {
    color: var(--danger-color);
}

.account-content {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
}

.account-content h2 {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--light-color);
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    align-items: center;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 15px;
}

.stat-info h3 {
    margin: 0 0 5px;
    font-size: 24px;
    font-weight: 700;
}

.stat-info p {
    margin: 0;
    color: var(--gray-color);
    font-size: 14px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    h1 { font-size: 32px; }
    h2 { font-size: 28px; }
    
    .hero-slide h1 {
        font-size: 36px;
    }
    
    .cart-item {
        flex-wrap: wrap;
    }
    
    .cart-item-image {
        margin-bottom: 15px;
    }
    
    .cart-item-details {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .cart-item-quantity {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    .top-bar .text-right {
        text-align: left !important;
        margin-top: 10px;
    }
    
    .header-icons {
        margin-top: 15px;
        justify-content: center;
    }
    
    .nav-menu ul {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .hero-slide h1 {
        font-size: 28px;
    }
    
    .slide-content {
        text-align: center;
    }
    
    .checkout-steps {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .step:not(:last-child):after {
        display: none;
    }
    
    .cart-actions {
        flex-direction: column;
    }
    
    .cart-actions .btn {
        width: 100%;
    }
    
    .empty-cart-actions {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    h1 { font-size: 28px; }
    h2 { font-size: 24px; }
    
    .hero-slider,
    .hero-slide {
        height: 400px;
    }
    
    .auth-box {
        padding: 30px 20px;
    }
    
    .social-buttons {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

.slide-in-up {
    animation: slideInUp 0.5s ease;
}

.slide-in-left {
    animation: slideInLeft 0.5s ease;
}

.slide-in-right {
    animation: slideInRight 0.5s ease;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-none { display: none; }
.d-block { display: block; }
.d-inline-block { display: inline-block; }
.d-flex { display: flex; }

.flex-row { flex-direction: row; }
.flex-column { flex-direction: column; }
.justify-content-start { justify-content: flex-start; }
.justify-content-end { justify-content: flex-end; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-start { align-items: flex-start; }
.align-items-end { align-items: flex-end; }
.align-items-center { align-items: center; }

.m-0 { margin: 0; }
.mt-1 { margin-top: 5px; }
.mt-2 { margin-top: 10px; }
.mt-3 { margin-top: 15px; }
.mt-4 { margin-top: 20px; }
.mt-5 { margin-top: 30px; }

.mb-1 { margin-bottom: 5px; }
.mb-2 { margin-bottom: 10px; }
.mb-3 { margin-bottom: 15px; }
.mb-4 { margin-bottom: 20px; }
.mb-5 { margin-bottom: 30px; }

.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }

.p-0 { padding: 0; }
.p-1 { padding: 5px; }
.p-2 { padding: 10px; }
.p-3 { padding: 15px; }
.p-4 { padding: 20px; }
.p-5 { padding: 30px; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.bg-primary { background: var(--primary-color); }
.bg-success { background: var(--success-color); }
.bg-danger { background: var(--danger-color); }
.bg-warning { background: var(--warning-color); }
.bg-info { background: var(--info-color); }
.bg-light { background: var(--light-color); }
.bg-dark { background: var(--dark-color); }
.bg-white { background: var(--white); }

.text-white { color: white; }

.border { border: 1px solid var(--border-color); }
.border-top { border-top: 1px solid var(--border-color); }
.border-bottom { border-bottom: 1px solid var(--border-color); }
.border-left { border-left: 1px solid var(--border-color); }
.border-right { border-right: 1px solid var(--border-color); }

.rounded { border-radius: var(--border-radius); }
.rounded-lg { border-radius: var(--border-radius-lg); }
.rounded-circle { border-radius: 50%; }

.shadow { box-shadow: var(--shadow); }
.shadow-hover { box-shadow: var(--shadow-hover); }

.position-relative { position: relative; }
.position-absolute { position: absolute; }
.position-fixed { position: fixed; }
.position-sticky { position: sticky; top: 100px; }

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

.cursor-pointer { cursor: pointer; }

/* ============================================
   NOTIFICATION
   ============================================ */

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    z-index: 9999;
    animation: slideInRight 0.3s ease;
    max-width: 350px;
}

.notification.error {
    background: var(--danger-color);
}

.notification.warning {
    background: var(--warning-color);
    color: var(--dark-color);
}

.notification.info {
    background: var(--info-color);
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}