/*
Theme Name: ShopifyLite Pakistan
Theme URI: https://yourwebsite.com/shopifylite
Author: Your Name
Author URI: https://yourwebsite.com
Description: A professional Shopify-like e-commerce theme for WordPress with Pakistan payment gateway integration (EasyPaisa & JazzCash), cookie-based user tracking, and guest checkout functionality.
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shopifylite
Domain Path: /languages
Tags: e-commerce, shopify-like, pakistan-payments, guest-checkout, cookies
*/

/* ====================
   ROOT VARIABLES
==================== */
:root {
  --primary: #008060;
  --primary-dark: #004c3f;
  --primary-light: #e3f1e8;
  --secondary: #fb641b;
  --accent: #ffc107;
  --text-dark: #1a1a1a;
  --text-medium: #5c5c5c;
  --text-light: #757575;
  --bg-white: #ffffff;
  --bg-light: #f6f6f7;
  --bg-gray: #f2f2f2;
  --border: #e1e3e5;
  --success: #008060;
  --error: #d72c0d;
  --warning: #ffc107;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.15);
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-white);
}

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

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

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

/* ====================
   UTILITY CLASSES
==================== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.grid {
  display: grid;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ====================
   BUTTONS
==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

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

.btn-secondary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-dark);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--bg-light);
  border-color: var(--text-medium);
}

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

.btn-full {
  width: 100%;
}

/* ====================
   HEADER
==================== */
.site-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

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

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

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

.search-bar {
  flex: 1;
  max-width: 600px;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 12px 48px 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 14px;
  transition: var(--transition);
}

.search-bar input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.search-bar button {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-medium);
}

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

.header-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-dark);
  font-size: 12px;
  position: relative;
}

.header-action:hover {
  color: var(--primary);
}

.header-action svg {
  width: 24px;
  height: 24px;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--secondary);
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Navigation */
.main-nav {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-menu a {
  display: block;
  padding: 14px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
}

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

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

/* ====================
   HERO SECTION
==================== */
.hero-section {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg-white) 100%);
  padding: 60px 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.hero-content h1 span {
  color: var(--primary);
}

.hero-content p {
  font-size: 18px;
  color: var(--text-medium);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* ====================
   SECTION HEADERS
==================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
}

.section-link {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.section-link:hover {
  color: var(--primary-dark);
}

/* ====================
   PRODUCT GRID
==================== */
.products-section {
  padding: 60px 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

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

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

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--secondary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  z-index: 2;
}

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

.product-badge.bestseller {
  background: var(--accent);
  color: var(--text-dark);
}

.product-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-light);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

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

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

.product-action-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.product-info {
  padding: 16px;
}

.product-category {
  font-size: 12px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

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

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

.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.stars {
  display: flex;
  color: var(--accent);
  font-size: 13px;
}

.rating-count {
  font-size: 12px;
  color: var(--text-light);
}

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

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

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

.discount {
  font-size: 12px;
  color: var(--secondary);
  font-weight: 600;
}

/* ====================
   PRODUCT PAGE
==================== */
.product-single {
  padding: 40px 0 60px;
}

.product-single-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.product-gallery {
  position: sticky;
  top: 100px;
}

.main-image {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.thumbnail-list {
  display: flex;
  gap: 12px;
}

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

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

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

.product-details {
  padding-top: 20px;
}

.product-details .product-category {
  font-size: 13px;
}

.product-details h1 {
  font-size: 32px;
  font-weight: 700;
  margin: 10px 0 16px;
  line-height: 1.3;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.product-meta .product-rating {
  margin: 0;
}

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

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

.stock-status.out-stock {
  color: var(--error);
}

.product-description {
  color: var(--text-medium);
  line-height: 1.8;
  margin-bottom: 24px;
}

.product-options {
  margin-bottom: 24px;
}

.option-label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}

.quantity-selector {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.quantity-selector button {
  width: 40px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-medium);
  transition: var(--transition);
}

.quantity-selector button:hover {
  background: var(--bg-light);
}

.quantity-selector input {
  width: 60px;
  height: 44px;
  border: none;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
}

.product-actions-main {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.product-actions-main .btn {
  flex: 1;
  padding: 16px 32px;
}

.btn-add-cart {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
}

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

.btn-buy-now {
  background: var(--secondary);
  color: white;
  font-weight: 700;
}

.btn-buy-now:hover {
  opacity: 0.9;
}

.product-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 24px;
  background: var(--bg-light);
  border-radius: var(--radius);
}

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

.feature-item svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

/* ====================
   TABS
==================== */
.product-tabs {
  margin-top: 60px;
}

.tabs-header {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.tab-btn {
  padding: 16px 32px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-medium);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: var(--transition);
}

.tab-btn:hover {
  color: var(--text-dark);
}

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

.tab-content {
  display: none;
}

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

/* ====================
   CART PAGE
==================== */
.cart-section {
  padding: 40px 0 60px;
}

.cart-header {
  margin-bottom: 32px;
}

.cart-header h1 {
  font-size: 32px;
  font-weight: 700;
}

.cart-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}

.cart-items {
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

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

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-image {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}

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

.cart-item-details h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.cart-item-details h3:hover {
  color: var(--primary);
}

.cart-item-variant {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.cart-item-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.remove-item {
  color: var(--error);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.remove-item:hover {
  text-decoration: underline;
}

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

.cart-summary h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

.summary-row.total {
  font-size: 18px;
  font-weight: 700;
  border-bottom: none;
  padding-top: 16px;
  margin-top: 8px;
}

.checkout-btn {
  width: 100%;
  margin-top: 24px;
  padding: 16px;
  font-size: 16px;
}

.empty-cart {
  text-align: center;
  padding: 80px 20px;
}

.empty-cart svg {
  width: 80px;
  height: 80px;
  color: var(--border);
  margin-bottom: 24px;
}

.empty-cart h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
}

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

/* ====================
   CHECKOUT PAGE
==================== */
.checkout-section {
  padding: 40px 0 60px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: start;
}

.checkout-form h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

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

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

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

.form-label span {
  color: var(--error);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  transition: var(--transition);
}

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

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

.form-error {
  color: var(--error);
  font-size: 12px;
  margin-top: 6px;
  display: none;
}

.form-group.has-error .form-error {
  display: block;
}

.form-group.has-error .form-input {
  border-color: var(--error);
}

/* Payment Methods */
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.payment-method {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: var(--transition);
}

.payment-method:hover {
  border-color: var(--primary);
}

.payment-method.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}

.payment-method input {
  display: none;
}

.payment-method-label {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}

.payment-radio {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.payment-method.selected .payment-radio {
  border-color: var(--primary);
}

.payment-method.selected .payment-radio::after {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
}

.payment-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}

.payment-icon.easypaisa {
  background: #4caf50;
  color: white;
}

.payment-icon.jazzcash {
  background: #9c27b0;
  color: white;
}

.payment-icon.cod {
  background: var(--bg-gray);
  color: var(--text-dark);
}

.payment-info h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

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

/* Payment Proof Upload */
.payment-proof {
  margin-top: 16px;
  padding: 20px;
  background: var(--bg-white);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border);
}

.payment-proof-label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}

.file-upload {
  position: relative;
}

.file-upload input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.file-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  transition: var(--transition);
}

.file-upload:hover .file-upload-area {
  border-color: var(--primary);
  background: var(--primary-light);
}

.file-upload-area svg {
  width: 40px;
  height: 40px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.file-upload-area p {
  font-size: 14px;
  color: var(--text-medium);
}

.file-upload-area .file-name {
  font-weight: 600;
  color: var(--primary);
  margin-top: 8px;
}

/* Order Summary */
.order-summary {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 100px;
}

.order-summary h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}

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

.order-item {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.order-item-image {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

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

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

.order-item-details h4 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.order-item-details p {
  font-size: 12px;
  color: var(--text-light);
}

.order-item-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.place-order-btn {
  width: 100%;
  padding: 18px;
  font-size: 16px;
  margin-top: 8px;
}

/* ====================
   MY ACCOUNT PAGE
==================== */
.account-section {
  padding: 40px 0 60px;
}

.account-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

.account-sidebar {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 8px;
}

.account-menu {
  list-style: none;
}

.account-menu li {
  margin-bottom: 4px;
}

.account-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-medium);
  transition: var(--transition);
}

.account-menu a:hover,
.account-menu a.active {
  background: var(--bg-white);
  color: var(--primary);
}

.account-menu a svg {
  width: 20px;
  height: 20px;
}

.account-content {
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 32px;
}

.account-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
}

.user-id-display {
  background: var(--primary-light);
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-id-display span {
  font-size: 13px;
  color: var(--text-medium);
}

.user-id-display code {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  background: var(--bg-white);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
}

/* Orders List */
.orders-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.order-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--bg-light);
}

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

.order-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.order-info-item span {
  font-size: 12px;
  color: var(--text-light);
}

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

.order-status {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.order-status.pending {
  background: #fff3cd;
  color: #856404;
}

.order-status.processing {
  background: #cce5ff;
  color: #004085;
}

.order-status.completed {
  background: #d4edda;
  color: #155724;
}

.order-status.cancelled {
  background: #f8d7da;
  color: #721c24;
}

.order-items-preview {
  padding: 20px;
  display: flex;
  gap: 16px;
}

.order-item-thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}

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

.order-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}

.order-total {
  font-size: 14px;
}

.order-total strong {
  font-size: 18px;
  color: var(--primary);
}

/* ====================
   COOKIE CONSENT
==================== */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-white);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  z-index: 9999;
  padding: 24px 0;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-consent.show {
  transform: translateY(0);
}

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cookie-content h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.cookie-content p {
  font-size: 14px;
  color: var(--text-medium);
  line-height: 1.6;
}

.cookie-content a {
  color: var(--primary);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.btn-cookie {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: var(--transition);
}

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

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

.btn-cookie-decline {
  background: var(--bg-light);
  color: var(--text-dark);
  border: 1px solid var(--border);
}

.btn-cookie-decline:hover {
  background: var(--border);
}

/* ====================
   MINI CART
==================== */
.mini-cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mini-cart-overlay.show {
  opacity: 1;
  visibility: visible;
}

.mini-cart {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 100%;
  height: 100%;
  background: var(--bg-white);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.4s ease;
  display: flex;
  flex-direction: column;
}

.mini-cart.show {
  transform: translateX(0);
}

.mini-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.mini-cart-header h3 {
  font-size: 18px;
  font-weight: 700;
}

.close-mini-cart {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.close-mini-cart:hover {
  background: var(--bg-light);
}

.mini-cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.mini-cart-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.mini-cart-item-image {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.mini-cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.mini-cart-item-details h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.mini-cart-item-details p {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.mini-cart-item-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

.remove-mini-item {
  color: var(--error);
  font-size: 12px;
}

.mini-cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-light);
}

.mini-cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.mini-cart-total span:last-child {
  color: var(--primary);
  font-size: 20px;
}

.mini-cart-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ====================
   NOTIFICATIONS
==================== */
.notification {
  position: fixed;
  top: 100px;
  right: 24px;
  padding: 16px 24px;
  border-radius: var(--radius);
  background: var(--bg-white);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10000;
  transform: translateX(150%);
  transition: transform 0.4s ease;
}

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

.notification.success {
  border-left: 4px solid var(--success);
}

.notification.error {
  border-left: 4px solid var(--error);
}

.notification svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.notification.success svg {
  color: var(--success);
}

.notification.error svg {
  color: var(--error);
}

/* ====================
   FOOTER
==================== */
.site-footer {
  background: var(--text-dark);
  color: var(--bg-white);
  padding: 60px 0 0;
}

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

.footer-brand .logo {
  color: var(--bg-white);
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 20px;
}

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

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

.footer-social a:hover {
  background: var(--primary);
}

.footer-column h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: var(--text-light);
  font-size: 14px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--bg-white);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-light);
}

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

.payment-method-icon {
  height: 32px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}

/* ====================
   RESPONSIVE
==================== */
@media (max-width: 1024px) {
  .hero-inner,
  .product-single-inner,
  .cart-grid,
  .checkout-grid,
  .account-grid {
    grid-template-columns: 1fr;
  }
  
  .product-gallery {
    position: static;
  }
  
  .cart-summary,
  .order-summary {
    position: static;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 16px;
  }
  
  .search-bar {
    order: 3;
    max-width: 100%;
    flex-basis: 100%;
  }
  
  .hero-content h1 {
    font-size: 32px;
  }
  
  .nav-menu {
    overflow-x: auto;
    gap: 20px;
    -webkit-overflow-scrolling: touch;
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .cart-item {
    grid-template-columns: 80px 1fr;
  }
  
  .cart-item-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .cookie-inner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .mini-cart {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .product-actions-main {
    flex-direction: column;
  }
  
  .product-features {
    grid-template-columns: 1fr;
  }
}

/* ====================
   ANIMATIONS
==================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translateY(20px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

.animate-slide-up {
  animation: slideUp 0.4s ease;
}

/* Loading State */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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