/* ===================================
   E-Commerce Website - Main Stylesheet
   Rajkot Wholesale Style Clone
   =================================== */

/* ---------- CSS Variables ---------- */
:root {
    --primary-color: #2d5a4a;
    --primary-dark: #1e3d32;
    --secondary-color: #d4a15e;
    --accent-gold: #c9a227;
    --text-dark: #333333;
    --text-medium: #666666;
    --text-light: #999999;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e5e5e5;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

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

ul, ol {
    list-style: none;
}

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

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

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

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

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

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

.header-top {
    background: var(--primary-color);
    color: white;
    padding: 8px 0;
    font-size: 13px;
}

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

.header-top a {
    color: white;
}

.header-top a:hover {
    color: var(--secondary-color);
}

.header-main {
    padding: 15px 0;
}

.header-main .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

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

.logo-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.logo-text span {
    color: var(--primary-color);
}

.logo-text small {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Search Bar */
.search-bar {
    flex: 1;
    max-width: 600px;
}

.search-bar form {
    display: flex;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.search-bar form:focus-within {
    border-color: var(--primary-color);
}

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

.search-bar button {
    background: var(--primary-color);
    color: white;
    padding: 12px 24px;
    font-weight: 600;
    transition: var(--transition);
}

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

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-action {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.header-action:hover {
    background: var(--bg-light);
}

.header-action .icon {
    font-size: 1.5rem;
    color: var(--text-dark);
}

.header-action .text {
    font-size: 13px;
}

.header-action .text span {
    display: block;
    font-weight: 600;
}

.cart-count {
    background: var(--secondary-color);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    padding: 8px;
    color: var(--text-dark);
    background: none;
}

/* ---------- Hero Banner ---------- */
.hero-banner {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 25px;
}

.hero-badge {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-height: 300px;
    object-fit: contain;
}

/* ---------- Category Section ---------- */
.section {
    padding: 50px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.section-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2 .icon {
    color: var(--primary-color);
}

.section-header .items-count {
    font-size: 14px;
    color: var(--text-light);
    font-weight: normal;
}

.view-all {
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-all:hover {
    color: var(--primary-dark);
}

/* ---------- Product Grid ---------- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

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

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--secondary-color);
    color: white;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.product-badge.sale {
    background: var(--danger-color);
}

.product-badge.new {
    background: var(--success-color);
}

.product-image {
    padding: 15px;
    text-align: center;
    background: var(--bg-light);
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-height: 150px;
    object-fit: contain;
    transition: var(--transition);
}

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

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}

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

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

.price-current {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.price-original {
    font-size: 0.9rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-add-cart {
    flex: 1;
    background: var(--primary-color);
    color: white;
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
}

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

.btn-wishlist {
    width: 38px;
    height: 38px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    background: var(--bg-white);
    transition: var(--transition);
}

.btn-wishlist:hover {
    border-color: var(--danger-color);
    color: var(--danger-color);
}

/* Product Card Styles */
.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.product-image {
    position: relative;
    display: block;
    padding: 20px;
    background: #f8f9fa;
    text-align: center;
}

.product-image img {
    max-width: 100%;
    height: 180px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.product-badge.sale {
    background: #ef4444;
    color: white;
}

.product-badge.new {
    background: #3b82f6;
    color: white;
}

.product-info {
    padding: 15px;
}

.product-category {
    font-size: 12px;
    color: #2d5a4a;
    font-weight: 500;
    text-transform: uppercase;
}

.product-name {
    margin: 8px 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.product-name a {
    color: #333;
    text-decoration: none;
}

.product-name a:hover {
    color: #2d5a4a;
}

.product-price {
    margin: 10px 0;
}

.price-old {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
    margin-right: 8px;
}

.price-current {
    font-size: 20px;
    font-weight: 700;
    color: #2d5a4a;
}

.product-sku {
    font-size: 12px;
    color: #999;
    margin-bottom: 12px;
}

/* Fix quantity selector */
.product-form {
    width: 100%;
}

.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: stretch;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    width: 100%;
}

.quantity-selector .qty-btn {
    flex: 1;
    height: 38px;
    border: none;
    background: #f3f4f6;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    color: #333;
    transition: background 0.2s;
}

.quantity-selector .qty-btn:hover {
    background: #e5e7eb;
}

.quantity-selector .qty-input {
    flex: 2;
    height: 38px;
    border: none;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    background: white;
    -moz-appearance: textfield;
}

.quantity-selector .qty-input::-webkit-outer-spin-button,
.quantity-selector .qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn-add-cart {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #2d5a4a, #1a3a2f);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-cart:hover {
    background: linear-gradient(135deg, #1a3a2f, #0f2419);
}
.qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: #f3f4f6;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    color: #333;
    transition: background 0.2s;
}

.qty-btn:hover {
    background: #e5e7eb;
}

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

.out-of-stock {
    display: block;
    text-align: center;
    padding: 12px;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
}

/* Cart Page Styles */
.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto auto;
    gap: 20px;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.cart-item-image img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #eee;
}

.cart-item-name {
    font-weight: 600;
    color: #333;
}

.cart-item-sku {
    font-size: 12px;
    color: #999;
}

.cart-quantity {
    display: flex;
    align-items: center;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.cart-quantity .qty-btn {
    width: 32px;
    height: 32px;
}

.cart-quantity .qty-input {
    width: 40px;
    height: 32px;
}

.cart-item-price,
.cart-item-total {
    font-weight: 600;
    font-size: 16px;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 18px;
}

/* Checkout Page Styles */
.checkout-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    align-items: start;
}

.checkout-form-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.checkout-form-section h2 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
    color: #1a3a2f;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2d5a4a;
}

.order-summary {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 20px;
}

.order-summary h2 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.order-item {
    display: flex;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.order-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    background: #f8f9fa;
}

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

.order-item-name {
    font-weight: 600;
    font-size: 14px;
}

.order-item-qty {
    font-size: 13px;
    color: #666;
}

.order-item-price {
    font-weight: 600;
    color: #2d5a4a;
}

.order-totals {
    margin-top: 20px;
}

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

.order-total-row.total {
    border-top: 2px solid #eee;
    margin-top: 10px;
    padding-top: 15px;
    font-size: 18px;
    font-weight: 700;
}

.btn-place-order {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #d97706, #b45309);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s;
}

.btn-place-order:hover {
    background: linear-gradient(135deg, #b45309, #92400e);
    transform: translateY(-2px);
}

.payment-methods {
    margin-top: 20px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-option:hover,
.payment-option.selected {
    border-color: #2d5a4a;
    background: #f0fdf4;
}

.payment-option input[type="radio"] {
    width: 18px;
    height: 18px;
}

@media (max-width: 768px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }
    
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}
/* ---------- Category Cards ---------- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.category-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px 15px;
    text-align: center;
    transition: var(--transition);
}

.category-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.category-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.category-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    background: var(--bg-light);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb ul {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb li:not(:last-child)::after {
    content: '›';
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--text-medium);
}

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

.breadcrumb .active {
    font-weight: 600;
    color: var(--text-dark);
}

/* ---------- Cart Page ---------- */
.cart-page {
    padding: 40px 0;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
}

.cart-items {
    background: var(--bg-white);
}

.cart-header {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    color: var(--text-medium);
    text-transform: uppercase;
    font-size: 13px;
}

.cart-item {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

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

.cart-product-image {
    width: 100px;
    height: 100px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-product-image img {
    max-height: 80px;
    object-fit: contain;
}

.cart-product-info h4 {
    font-size: 15px;
    margin-bottom: 8px;
}

.cart-product-info h4 a:hover {
    color: var(--primary-color);
}

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

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    width: fit-content;
}

.quantity-control button {
    width: 36px;
    height: 36px;
    background: var(--bg-light);
    color: var(--text-dark);
    font-size: 1.2rem;
    transition: var(--transition);
}

.quantity-control button:hover {
    background: var(--border-color);
}

.quantity-control input {
    width: 50px;
    height: 36px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    font-weight: 600;
}

.remove-item {
    color: var(--text-light);
    font-size: 13px;
    margin-top: 10px;
    display: inline-block;
}

.remove-item:hover {
    color: var(--danger-color);
}

.cart-item-total {
    text-align: right;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Cart Summary */
.cart-summary {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 25px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.cart-summary h3 {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

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

.summary-row.total {
    border-top: 2px solid var(--border-color);
    margin-top: 10px;
    padding-top: 15px;
    font-size: 1.25rem;
    font-weight: 700;
}

.btn-checkout {
    width: 100%;
    background: var(--primary-color);
    color: white;
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
    transition: var(--transition);
}

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

/* ---------- Checkout Page ---------- */
.checkout-page {
    padding: 40px 0;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
}

.billing-form {
    background: var(--bg-white);
}

.billing-form h3 {
    margin-bottom: 25px;
    font-size: 1.25rem;
}

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

.form-row.full {
    grid-template-columns: 1fr;
}

.form-group {
    margin-bottom: 0;
}

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

.form-group label .required {
    color: var(--danger-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 15px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

select.form-control {
    appearance: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 15px center;
}

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

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.checkbox-group input {
    width: 18px;
    height: 18px;
}

/* Order Summary */
.order-summary {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 25px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.order-summary h3 {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.order-items {
    margin-bottom: 20px;
}

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

.order-item-name {
    font-size: 14px;
}

.order-item-qty {
    color: var(--text-light);
}

.order-item-price {
    font-weight: 600;
}

.payment-info {
    background: var(--bg-light);
    padding: 15px;
    border-radius: var(--radius-sm);
    margin: 20px 0;
}

.payment-info h4 {
    font-size: 14px;
    margin-bottom: 8px;
}

.payment-info p {
    font-size: 13px;
    color: var(--text-medium);
}

.btn-place-order {
    width: 100%;
    background: var(--secondary-color);
    color: white;
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    margin-top: 15px;
    transition: var(--transition);
}

.btn-place-order:hover {
    background: #c49345;
}

/* ---------- Order Complete Page ---------- */
.order-complete {
    text-align: center;
    padding: 80px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.order-complete-icon {
    font-size: 80px;
    color: var(--success-color);
    margin-bottom: 30px;
}

.order-complete h1 {
    margin-bottom: 15px;
}

.order-complete p {
    color: var(--text-medium);
    margin-bottom: 30px;
}

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

.order-details h3 {
    margin-bottom: 15px;
    font-size: 1rem;
}

.btn-continue {
    background: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    display: inline-block;
    transition: var(--transition);
}

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

/* ---------- Footer ---------- */
.footer {
    background: #1a1a1a;
    color: #ccc;
    padding: 50px 0 0;
}

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

.footer-section h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1rem;
}

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

.footer-section a {
    color: #aaa;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 14px;
}

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

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

/* ---------- Utility Classes ---------- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-light); }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .cart-layout,
    .checkout-layout {
        grid-template-columns: 1fr;
    }
    
    .cart-summary,
    .order-summary {
        position: static;
    }
    
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-top .container {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    .header-main .container {
        flex-wrap: wrap;
    }
    
    .search-bar {
        order: 3;
        max-width: 100%;
        flex-basis: 100%;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cart-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .cart-item-total {
        text-align: left;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-product {
        flex-direction: column;
        text-align: center;
    }
    
    .quantity-control {
        margin: 0 auto;
    }
}

/* ---------- Animations ---------- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.4s ease forwards;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--text-dark);
    color: white;
    padding: 15px 25px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 9999;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    background: var(--success-color);
}

.toast.error {
    background: var(--danger-color);
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart-icon {
    font-size: 80px;
    color: var(--border-color);
    margin-bottom: 20px;
}

.empty-cart h3 {
    margin-bottom: 10px;
}

.empty-cart p {
    color: var(--text-medium);
    margin-bottom: 20px;
}

/* ---------- Pagination ---------- */
.pagination-wrapper {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.pagination-wrapper nav {
    display: flex;
    justify-content: center;
}

.pagination-wrapper nav > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.pagination-wrapper nav > div > div:first-child {
    font-size: 14px;
    color: #666;
}

.pagination-wrapper nav > div > div:last-child {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Pagination links */
.pagination-wrapper a,
.pagination-wrapper span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination-wrapper a:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.pagination-wrapper a[rel="prev"],
.pagination-wrapper a[rel="next"] {
    font-size: 14px;
    padding: 0 15px;
}

/* Active page */
.pagination-wrapper span[aria-current="page"] span,
.pagination-wrapper .bg-blue-50 {
    background: #2d5a4a !important;
    color: white !important;
    border-color: #2d5a4a !important;
}

/* Disabled state */
.pagination-wrapper span[aria-disabled="true"] span,
.pagination-wrapper .cursor-default {
    color: #9ca3af;
    background: #f9fafb;
    cursor: not-allowed;
}

/* SVG icons in pagination */
.pagination-wrapper svg {
    width: 16px;
    height: 16px;
}

/* Simple pagination (Previous/Next only) */
nav[role="navigation"] {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

nav[role="navigation"] > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

nav[role="navigation"] p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

nav[role="navigation"] a,
nav[role="navigation"] span.relative {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

nav[role="navigation"] a:hover {
    background: #2d5a4a;
    color: white;
    border-color: #2d5a4a;
}

nav[role="navigation"] span.relative {
    color: #9ca3af;
    cursor: not-allowed;
}

/* Hide default Tailwind classes that might interfere */
.pagination-wrapper .hidden {
    display: none !important;
}

.pagination-wrapper .flex-1 {
    flex: none !important;
}

/* Mobile pagination */
@media (max-width: 640px) {
    .pagination-wrapper nav > div > div:last-child {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination-wrapper a,
    .pagination-wrapper span {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 13px;
    }
    
    nav[role="navigation"] {
        flex-direction: column;
        gap: 15px;
    }
}

/* ========== Search Autocomplete ========== */
.search-bar {
    position: relative;
}

.search-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 1000;
    max-height: 450px;
    overflow-y: auto;
    margin-top: 5px;
    border: 1px solid #e5e7eb;
}

.search-suggestions.show {
    display: block;
}

.suggestions-section {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.suggestions-section:last-child {
    border-bottom: none;
}

.suggestions-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    padding: 8px 15px;
    font-weight: 600;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    color: #333;
}

.suggestion-item:hover {
    background: #f8f9fa;
}

/* Product Suggestions */
.suggestion-product-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    background: #f3f4f6;
    flex-shrink: 0;
}

.suggestion-product-info {
    flex: 1;
    min-width: 0;
}

.suggestion-product-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    margin-bottom: 3px;
}

.suggestion-product-price {
    font-size: 14px;
    font-weight: 600;
    color: #2d5a4a;
}

.suggestion-product-price .original-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    margin-left: 6px;
    font-weight: 400;
}

/* Category Suggestions */
.suggestion-category-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2d5a4a, #1a3a2f);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.suggestion-category-icon i {
    color: white;
    font-size: 16px;
}

.suggestion-category-info {
    flex: 1;
}

.suggestion-category-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    display: block;
}

.suggestion-category-count {
    font-size: 12px;
    color: #999;
}

/* View All Link */
.suggestions-view-all {
    display: block;
    text-align: center;
    padding: 12px;
    background: #f8f9fa;
    color: #2d5a4a;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border-radius: 0 0 12px 12px;
}

.suggestions-view-all:hover {
    background: #2d5a4a;
    color: white;
}

/* No Results */
.suggestions-no-results {
    padding: 25px 15px;
    text-align: center;
    color: #999;
}

.suggestions-no-results i {
    font-size: 30px;
    margin-bottom: 10px;
    display: block;
    color: #ddd;
}

/* Loading */
.suggestions-loading {
    padding: 20px;
    text-align: center;
    color: #999;
}

.suggestions-loading i {
    margin-right: 8px;
}

/* Highlight matched text */
.highlight {
    background: #fef3c7;
    padding: 1px 2px;
    border-radius: 2px;
}