/* KHEPPA E-commerce - Modern Mobile-First Responsive Design */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* CSS Variables */
:root {
    --primary-yellow: #FFD600;
    --dark-blue: #1a1a2e;
    --light-gray: #f5f5f5;
    --text-gray: #666;
    --text-dark: #333;
    --white: #ffffff;
    --border-gray: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-strong: 0 8px 24px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
    --border-radius: 12px;
    --border-radius-sm: 8px;
}

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

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

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

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

/* Header & Navigation */
header {
    background: var(--white);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.98);
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

header.scrolled .logo-image {
    max-width: 120px;
    height: 60px;
}

header.scrolled .search-container {
    margin: 0.5rem auto;
}

header.scrolled nav {
    padding: 0.25rem 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo {
    display: block;
    text-align: center;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.logo:hover {
    opacity: 0.8;
    transform: scale(0.98);
}

.logo-image {
    max-width: 180px;
    height: 100px;
    margin: 0 auto;
    display: block;
    transition: all 0.3s ease;
}

/* Search Bar */
.search-container {
    max-width: 600px;
    margin: 1rem auto 0.5rem;
    padding: 0 1rem;
    position: relative;
    transition: margin 0.3s ease;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 1rem;
    border: 2px solid var(--border-gray);
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
    background: var(--light-gray);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-yellow);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(255, 214, 0, 0.1);
}

.search-btn {
    position: absolute;
    right: 0.5rem;
    background: var(--primary-yellow);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: #ffed4e;
    transform: scale(1.05);
}

.search-btn svg {
    width: 18px;
    height: 18px;
}

nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 0.5rem 0;
    transition: padding 0.3s ease;
}

nav a {
    color: var(--text-gray);
    font-size: 0.85rem;
    font-weight: 400;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition-fast);
}

nav a:hover,
nav a.active {
    color: var(--dark-blue);
    font-weight: 500;
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-yellow);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        width: 0;
        left: 50%;
    }
    to {
        width: 100%;
        left: 0;
    }
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

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

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

.product-card:active {
    transform: translateY(-2px);
}

/* Product Badges */
.product-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--primary-yellow);
    color: var(--dark-blue);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.product-badge.sale {
    background: #e74c3c;
    color: var(--white);
}

.product-badge.new {
    background: #27ae60;
    color: var(--white);
}

.product-badge.low-stock {
    background: #f39c12;
    color: var(--white);
}

.product-badge.out-of-stock {
    background: #95a5a6;
    color: var(--white);
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    background: var(--light-gray);
}

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-info {
    padding: 1rem;
}

.product-name {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.product-price-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.product-price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-blue);
}

.product-price-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.product-price-wrapper .product-price {
    color: #27ae60;
    font-weight: 700;
}

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

.product-discount-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.5rem;
    background: #e74c3c;
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

.product-stock-indicator {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    background: #e8f5e9;
    color: #27ae60;
    font-weight: 500;
}

.product-stock-indicator.low {
    background: #fff3e0;
    color: #f39c12;
}

.product-stock-indicator.out {
    background: #ffebee;
    color: #e74c3c;
}

.btn-select {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: var(--primary-yellow);
    color: var(--dark-blue);
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

.btn-select:hover {
    background: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 214, 0, 0.3);
}

.btn-select:active {
    transform: translateY(0);
}

.btn-select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Product Detail Page */
.product-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.product-detail-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.product-images {
    position: relative;
}

.main-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--border-radius);
    background: var(--light-gray);
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.main-image.fade-out {
    opacity: 0;
}

.main-image.fade-in {
    opacity: 1;
}

/* Image Navigation Arrows */
.image-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2;
    backdrop-filter: blur(5px);
}

.image-nav-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.image-nav-arrow.prev {
    left: 1rem;
}

.image-nav-arrow.next {
    right: 1rem;
}

.image-nav-arrow svg {
    width: 20px;
    height: 20px;
}

/* Image Counter */
.image-counter {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 2;
    backdrop-filter: blur(5px);
}

/* Autoplay Control */
.autoplay-control {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2;
    backdrop-filter: blur(5px);
}

.autoplay-control:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.autoplay-control.playing {
    background: rgba(255, 214, 0, 0.8);
    color: var(--dark-blue);
}

.autoplay-control svg {
    width: 20px;
    height: 20px;
}

.image-thumbnails {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: thin;
}

.image-thumbnails::-webkit-scrollbar {
    height: 6px;
}

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

.thumbnail {
    min-width: 80px;
    width: 80px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    position: relative;
}

.thumbnail:hover {
    border-color: var(--primary-yellow);
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 3px rgba(255, 214, 0, 0.2);
}

.thumbnail.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-yellow);
    border-radius: 0 0 var(--border-radius-sm) var(--border-radius-sm);
}

.product-details {
    padding: 1rem 0;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.product-price-large {
    font-size: 1.8rem;
    font-weight: 700;
    color: #27ae60;
    margin-bottom: 0.5rem;
}

.product-price-details {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.product-original-price-large {
    font-size: 1.2rem;
    color: var(--text-gray);
    text-decoration: line-through;
    font-weight: 400;
}

.product-discount-large {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    background: #e74c3c;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.product-savings {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    background: #27ae60;
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
}

.stock-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.stock-status.in-stock {
    background: #e8f5e9;
    color: #27ae60;
}

.stock-status.low-stock {
    background: #fff3e0;
    color: #f39c12;
}

.stock-status.out-of-stock {
    background: #ffebee;
    color: #e74c3c;
}

.stock-status-icon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.shipping-info {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-gray);
    border-left: 3px solid var(--primary-yellow);
}

.size-section {
    margin-bottom: 1.5rem;
}

.size-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.size-label {
    font-weight: 600;
    display: block;
    color: var(--text-dark);
}

/* Product Divider */
.product-divider {
    height: 1px;
    background: var(--border-gray);
    margin: 2rem 0;
}

/* Size Chart Section - Simple Display (before description) */
.size-chart-section {
    margin-bottom: 2rem;
    padding-top: 0;
}

.size-chart-loading {
    text-align: center;
    color: var(--text-gray);
    padding: 0.5rem;
    font-size: 0.85rem;
}

.size-chart-error {
    text-align: center;
    color: #e74c3c;
    padding: 0.5rem;
    font-size: 0.85rem;
}

.size-chart-simple {
    margin-top: 0;
}

.size-chart-simple-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 0.75rem;
}

.size-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-gray);
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.size-select:focus {
    outline: none;
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 3px rgba(255, 214, 0, 0.1);
}

.quantity-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

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

.quantity-btn {
    width: 40px;
    height: 40px;
    background: var(--light-gray);
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.quantity-btn:hover {
    background: var(--primary-yellow);
    color: var(--dark-blue);
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity-input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: none;
    border-left: 2px solid var(--border-gray);
    border-right: 2px solid var(--border-gray);
    font-size: 1rem;
    font-weight: 500;
}

.product-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.btn-add-cart {
    flex: 1;
    padding: 1rem 1.5rem;
    background: var(--primary-yellow);
    color: var(--dark-blue);
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

.btn-add-cart:hover {
    background: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 214, 0, 0.3);
}

.btn-buy-now {
    flex: 1;
    padding: 1rem 1.5rem;
    background: var(--dark-blue);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

.btn-buy-now:hover {
    background: #2a2a4e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 26, 46, 0.3);
}

.btn-add-cart:disabled,
.btn-buy-now:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.size-chart {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: var(--border-radius);
}

.size-chart h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.size-chart table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.size-chart th,
.size-chart td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-gray);
}

.size-chart th {
    font-weight: 600;
    color: var(--text-dark);
    background: var(--white);
}

/* Size Chart Table - Simple Compact Display */
.size-chart-table-wrapper {
    overflow-x: auto;
    margin-top: 0.5rem;
}

.size-chart-table-simple {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    margin: 0;
    min-width: 300px;
}

.size-chart-table-simple thead {
    background: var(--dark-blue);
    color: var(--white);
}

.size-chart-table-simple th {
    padding: 0.5rem 0.4rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.size-chart-table-simple th:last-child {
    border-right: none;
}

.size-chart-table-simple th:first-child {
    text-align: left;
    padding-left: 0.6rem;
}

.size-chart-table-simple td {
    padding: 0.5rem 0.4rem;
    text-align: center;
    border-bottom: 1px solid var(--border-gray);
    border-right: 1px solid var(--border-gray);
    color: var(--text-dark);
    font-size: 0.8rem;
}

.size-chart-table-simple td:last-child {
    border-right: none;
}

.size-chart-table-simple td:first-child {
    text-align: left;
    padding-left: 0.6rem;
    font-weight: 600;
    background: rgba(255, 214, 0, 0.05);
}

.size-chart-table-simple tbody tr:hover {
    background: rgba(255, 214, 0, 0.08);
}

.size-chart-table-simple tbody tr:last-child td {
    border-bottom: none;
}

/* Mobile Responsive - Size Chart */
@media (max-width: 768px) {
    .size-chart-section {
        margin-top: 1rem;
        padding-top: 1rem;
    }
    
    .size-chart-simple-title {
        font-size: 0.9rem;
    }
    
    .size-chart-table-simple {
        font-size: 0.75rem;
        min-width: 280px;
    }
    
    .size-chart-table-simple th,
    .size-chart-table-simple td {
        padding: 0.4rem 0.3rem;
    }
}

.description-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-gray);
}

.description-toggle {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-dark);
    transition: var(--transition);
}

.description-toggle:hover {
    color: var(--primary-yellow);
}

.description-content {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.8;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.description-content.active {
    max-height: 1000px;
}

/* Cart Page */
.cart-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.cart-items {
    margin-bottom: 2rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-gray);
    align-items: center;
    background: var(--white);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.cart-item:hover {
    box-shadow: var(--shadow-hover);
}

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.cart-item-info {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.cart-item-price {
    font-weight: 600;
    color: var(--dark-blue);
}

.cart-item-quantity {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.quantity-label {
    font-size: 0.8rem;
    color: var(--text-gray);
    font-weight: 500;
}

.cart-quantity-controls {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-gray);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    background: var(--white);
}

.cart-quantity-btn {
    width: 35px;
    height: 35px;
    background: var(--light-gray);
    border: none;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
}

.cart-quantity-btn:hover {
    background: var(--primary-yellow);
    color: var(--dark-blue);
}

.cart-quantity-btn:active {
    transform: scale(0.95);
}

.cart-quantity-input {
    width: 50px;
    height: 35px;
    text-align: center;
    border: none;
    border-left: 2px solid var(--border-gray);
    border-right: 2px solid var(--border-gray);
    font-size: 0.9rem;
    font-weight: 500;
    background: var(--white);
    color: var(--text-dark);
}

.cart-quantity-input:focus {
    outline: none;
    background: var(--light-gray);
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0.5rem;
    transition: var(--transition);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.cart-item-remove:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    transform: rotate(90deg);
}

.cart-summary {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.cart-subtotal,
.cart-delivery-fee {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.cart-delivery-fee {
    color: var(--text-gray);
    font-size: 0.85rem;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-blue);
    padding-top: 1rem;
    border-top: 2px solid var(--border-gray);
    margin-top: 0.5rem;
}

/* Checkout Form */
.checkout-form {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.checkout-form h2 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-gray);
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 3px rgba(255, 214, 0, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.payment-method {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--primary-yellow);
}

.payment-method-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.payment-method-info {
    font-size: 0.85rem;
    color: var(--text-gray);
}

.btn-checkout {
    width: 100%;
    padding: 1rem;
    background: var(--primary-yellow);
    color: var(--dark-blue);
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    margin-top: 1rem;
}

.btn-checkout:hover {
    background: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 214, 0, 0.3);
}

.btn-checkout:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Order Summary */
.order-summary {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-gray);
}

.order-summary h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.order-summary-content {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.order-subtotal,
.order-delivery-fee {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.order-delivery-fee {
    color: var(--text-gray);
    font-size: 0.85rem;
}

.order-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-blue);
    padding-top: 1rem;
    border-top: 2px solid var(--border-gray);
    margin-top: 0.5rem;
}

/* Main Content Area */
main {
    flex: 1 0 auto;
}

/* Footer */
.footer {
    background: var(--dark-blue);
    color: var(--white);
    margin-top: auto;
    padding: 2.5rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.footer-social a:hover {
    opacity: 1;
    background: var(--primary-yellow);
    color: var(--dark-blue);
    transform: translateY(-3px) scale(1.1);
}

.footer-copyright {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Floating Icons */
.floating-cart,
.floating-support {
    position: fixed;
    bottom: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--dark-blue);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-strong);
    cursor: pointer;
    transition: var(--transition);
    z-index: 999;
}

.floating-cart {
    left: 1rem;
}

.floating-support {
    right: 1rem;
}

.floating-cart:hover,
.floating-support:hover {
    transform: scale(1.15) rotate(5deg);
    background: var(--primary-yellow);
    color: var(--dark-blue);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: var(--white);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Loader */
.loader {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.loader.active {
    display: flex;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--light-gray);
    border-top-color: var(--primary-yellow);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, var(--light-gray) 25%, #e8e8e8 50%, var(--light-gray) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: var(--border-radius-sm);
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

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

.skeleton-image {
    width: 100%;
    aspect-ratio: 1 / 1;
}

.skeleton-text {
    height: 1rem;
    margin: 0.5rem 1rem;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-button {
    height: 2.5rem;
    margin: 1rem;
}

/* Success Message */
.success-message {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    overflow-y: auto;
}

.success-message.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1;
}

.success-content {
    position: relative;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-strong);
    z-index: 2;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUpBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUpBounce {
    0% {
        opacity: 0;
        transform: translateY(100px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Success Icon */
.success-icon-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(39, 174, 96, 0.3);
    animation: scaleIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.2s both;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}

.checkmark {
    width: 50px;
    height: 50px;
}

.checkmark-circle {
    stroke: var(--white);
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) 0.4s forwards;
}

.checkmark-check {
    stroke: var(--white);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

/* Success Title */
.success-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
    text-align: center;
}

.success-subtitle {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    text-align: center;
}

/* Success Details */
.success-details {
    background: var(--light-gray);
    border-radius: var(--border-radius-sm);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.success-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.success-detail-item:last-child {
    margin-bottom: 0;
}

.success-detail-item svg {
    flex-shrink: 0;
    color: var(--primary-yellow);
    margin-top: 0.2rem;
}

.success-detail-item > div {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.75rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.detail-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-blue);
}

/* Order Summary in Success */
.success-order-summary {
    background: var(--white);
    border: 2px solid var(--border-gray);
    border-radius: var(--border-radius-sm);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.success-order-summary h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 1rem;
    text-align: center;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-gray);
    font-size: 0.9rem;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.total {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-blue);
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 2px solid var(--border-gray);
}

/* Success Message Text */
.success-message-text {
    background: #fff3cd;
    border-left: 4px solid var(--primary-yellow);
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1.5rem;
}

.success-message-text p {
    font-size: 0.85rem;
    color: #856404;
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.success-message-text p:first-child {
    margin-top: 0;
}

.success-message-text p:last-child {
    margin-bottom: 0;
}

/* Success Actions */
.success-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    flex: 1;
    min-width: 200px;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary-yellow);
    color: var(--dark-blue);
}

.btn-primary:hover {
    background: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 214, 0, 0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--dark-blue);
    border: 2px solid var(--border-gray);
}

.btn-secondary:hover {
    background: var(--light-gray);
    border-color: var(--dark-blue);
    transform: translateY(-2px);
}

/* Confetti Canvas */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .success-content {
        padding: 1.5rem;
        width: 95%;
    }
    
    .success-title {
        font-size: 1.4rem;
    }
    
    .success-icon {
        width: 60px;
        height: 60px;
    }
    
    .checkmark {
        width: 40px;
        height: 40px;
    }
    
    .success-actions {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        min-width: auto;
    }
    
    .success-detail-item {
        font-size: 0.85rem;
    }
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-gray);
}

.empty-cart-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Custom Modal System */
.custom-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    pointer-events: none;
}

.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: all;
}

.custom-modal.show {
    opacity: 1;
}

.custom-modal-content {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-align: center;
}

.custom-modal.show .custom-modal-content {
    transform: scale(1) translateY(0);
}

/* Modal Icon */
.modal-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.2s both;
}

.modal-icon svg {
    width: 40px;
    height: 40px;
}

.modal-icon.success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: var(--white);
}

.modal-icon.error {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: var(--white);
}

.modal-icon.warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: var(--white);
}

.modal-icon.info {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: var(--white);
}

/* Modal Title & Message */
.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 0.75rem;
}

.modal-message {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Modal Input */
.modal-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-gray);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.modal-input:focus {
    outline: none;
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 3px rgba(255, 214, 0, 0.1);
}

/* Modal Actions */
.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.modal-btn {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    min-width: 120px;
}

.modal-btn.primary {
    background: var(--primary-yellow);
    color: var(--dark-blue);
}

.modal-btn.primary:hover {
    background: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 214, 0, 0.3);
}

.modal-btn.secondary {
    background: var(--light-gray);
    color: var(--text-dark);
    border: 2px solid var(--border-gray);
}

.modal-btn.secondary:hover {
    background: var(--white);
    border-color: var(--dark-blue);
    transform: translateY(-2px);
}

/* Toast Notifications */
.custom-notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: var(--white);
    border-radius: var(--border-radius-sm);
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 400px;
    z-index: 100001;
    transform: translateX(450px);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: all;
}

.custom-notification.show {
    transform: translateX(0);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon svg {
    width: 24px;
    height: 24px;
}

.custom-notification.success .notification-icon {
    background: #27ae60;
    color: var(--white);
}

.custom-notification.error .notification-icon {
    background: #e74c3c;
    color: var(--white);
}

.custom-notification.warning .notification-icon {
    background: #f39c12;
    color: var(--white);
}

.custom-notification.info .notification-icon {
    background: #3498db;
    color: var(--white);
}

.notification-content {
    flex: 1;
    text-align: left;
}

.notification-title {
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.notification-message {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    flex-shrink: 0;
}

.notification-close:hover {
    background: var(--light-gray);
    color: var(--dark-blue);
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .custom-modal-content {
        padding: 1.5rem;
        width: 95%;
    }
    
    .modal-title {
        font-size: 1.3rem;
    }
    
    .modal-icon {
        width: 60px;
        height: 60px;
    }
    
    .modal-icon svg {
        width: 35px;
        height: 35px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-btn {
        width: 100%;
    }
    
    .custom-notification {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .product-info {
        padding: 0.75rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .btn-add-cart,
    .btn-buy-now {
        width: 100%;
    }
    
    .image-nav-arrow {
        width: 35px;
        height: 35px;
    }
    
    .image-nav-arrow.prev {
        left: 0.5rem;
    }
    
    .image-nav-arrow.next {
        right: 0.5rem;
    }
    
    .autoplay-control {
        width: 35px;
        height: 35px;
        top: 0.5rem;
        right: 0.5rem;
    }
    
    .cart-item {
        grid-template-columns: 80px 1fr auto;
        gap: 0.75rem;
        padding: 1rem;
        position: relative;
    }
    
    .cart-item-image {
        width: 80px;
        height: 80px;
    }
    
    .cart-item-quantity {
        grid-column: 2 / -1;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 0.75rem;
        padding-top: 0.5rem;
        margin-top: 0.5rem;
    }
    
    .quantity-label {
        margin: 0;
        font-size: 0.8rem;
    }
    
    .cart-quantity-controls {
        flex-shrink: 0;
    }
    
    .cart-item-remove {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
        width: 30px;
        height: 30px;
        font-size: 1.3rem;
    }
    
    .floating-cart,
    .floating-support {
        width: 55px;
        height: 55px;
        bottom: 1.5rem;
    }
    
    .floating-cart {
        left: 0.75rem;
    }
    
    .floating-support {
        right: 0.75rem;
    }
}

/* Responsive Design - Tablet */
@media (min-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .logo-image {
        max-width: 220px;
    }
    
    header.scrolled .logo-image {
        max-width: 150px;
        height: 70px;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .product-detail-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .cart-item {
        grid-template-columns: 120px 1fr auto;
    }
    
    .checkout-form {
        max-width: 600px;
        margin: 0 auto;
    }
}

/* Responsive Design - Desktop */
@media (min-width: 1024px) {
    .logo-image {
        max-width: 250px;
    }
    
    header.scrolled .logo-image {
        max-width: 180px;
        height: 80px;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .footer {
        padding: 3rem 1rem;
    }
    
    .footer-social {
        gap: 2rem;
    }
    
    .footer-social a {
        width: 45px;
        height: 45px;
    }
    
    .floating-cart,
    .floating-support {
        width: 70px;
        height: 70px;
        bottom: 2.5rem;
    }
    
    .floating-cart {
        left: 2rem;
    }
    
    .floating-support {
        right: 2rem;
    }
}

/* Responsive Design - Large Desktop */
@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
