/* ==========================================
   Pakstores - Main Stylesheet
   ========================================== */

/* CSS Variables */
:root {
  --primary-color: #1a1a1a;
  --secondary-color: #c9a050;
  --accent-color: #d4af37;
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --text-light: #999999;
  --bg-light: #f8f8f8;
  --bg-white: #ffffff;
  --border-color: #e0e0e0;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --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);
  --transition: all 0.3s ease;
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--text-primary);
  line-height: 1.6;
  background-color: var(--bg-white);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

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

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

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================
   Header & Navigation
   ========================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

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

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

.header-top-left {
  display: flex;
  gap: 24px;
}

.header-top-right {
  display: flex;
  gap: 16px;
}

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

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

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

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

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

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

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  padding: 8px 0;
  position: relative;
  transition: var(--transition);
}

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

.nav-link:hover {
  color: var(--secondary-color);
}

.nav-link:hover::after {
  width: 100%;
}

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

.search-box {
  position: relative;
  width: 300px;
}

.search-input {
  width: 100%;
  padding: 10px 40px 10px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--secondary-color);
}

.search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  transition: var(--transition);
}

.search-btn:hover {
  color: var(--secondary-color);
}

.icon-btn {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
  color: var(--text-primary);
}

.icon-btn:hover {
  background: var(--bg-light);
  color: var(--secondary-color);
}

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

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
}

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

.hero-content h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

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

.hero-content p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 480px;
}

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

.hero-image {
  position: relative;
}

.hero-image img {
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

.hero-badge {
  position: absolute;
  top: 24px;
  right: -24px;
  background: var(--secondary-color);
  color: var(--bg-white);
  padding: 16px 24px;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.hero-badge .number {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

.hero-badge .text {
  font-size: 13px;
  margin-top: 4px;
}

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

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

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

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

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

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

.btn-gold:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
}

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

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

.btn-full {
  width: 100%;
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
}

/* ==========================================
   Categories Section
   ========================================== */
.categories {
  padding: 80px 0;
  background: var(--bg-white);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.category-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--bg-light);
  border-radius: 16px;
  transition: var(--transition);
  cursor: pointer;
}

.category-card:hover {
  background: var(--primary-color);
  color: var(--bg-white);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.category-card .icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.category-card h3 {
  font-size: 18px;
  font-weight: 600;
}

.category-card p {
  font-size: 14px;
  color: var(--text-light);
  margin-top: 8px;
}

.category-card:hover p {
  color: rgba(255,255,255,0.7);
}

/* ==========================================
   Products Section
   ========================================== */
.products {
  padding: 80px 0;
  background: var(--bg-light);
}

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

.products-header h2 {
  font-size: 36px;
  font-weight: 700;
}

.filter-tabs {
  display: flex;
  gap: 8px;
}

.filter-tab {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-white);
  border-radius: 8px;
  transition: var(--transition);
}

.filter-tab:hover,
.filter-tab.active {
  background: var(--primary-color);
  color: var(--bg-white);
}

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

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

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

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

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

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

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  z-index: 1;
}

.badge-bestseller {
  background: var(--secondary-color);
  color: var(--bg-white);
}

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

.badge-premium {
  background: var(--accent-color);
  color: var(--bg-white);
}

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

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

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

.product-actions .btn {
  flex: 1;
  background: var(--bg-white);
  color: var(--primary-color);
  font-size: 13px;
  padding: 12px;
  box-shadow: var(--shadow-sm);
}

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

.product-info {
  padding: 20px;
}

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

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

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

.stars {
  display: flex;
  gap: 2px;
  color: var(--secondary-color);
}

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

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

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

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

/* ==========================================
   Featured Products Carousel
   ========================================== */
.featured {
  padding: 80px 0;
  background: var(--primary-color);
  color: var(--bg-white);
}

.featured .section-title {
  color: var(--bg-white);
}

.featured .section-subtitle {
  color: rgba(255,255,255,0.7);
}

.carousel-container {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s ease;
}

.carousel-item {
  flex: 0 0 calc(33.333% - 16px);
  min-width: calc(33.333% - 16px);
}

.featured-card {
  background: rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
}

.featured-card .product-image {
  padding-top: 80%;
  margin-bottom: 20px;
  border-radius: 12px;
}

.featured-card .product-name {
  color: var(--bg-white);
  font-size: 18px;
}

.featured-card .current-price {
  color: var(--secondary-color);
}

.featured-card .original-price {
  color: rgba(255,255,255,0.5);
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

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

/* ==========================================
   Features Section
   ========================================== */
.features {
  padding: 80px 0;
  background: var(--bg-white);
}

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

.feature-card {
  text-align: center;
  padding: 32px;
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--secondary-color);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================
   Newsletter Section
   ========================================== */
.newsletter {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
  color: var(--bg-white);
  text-align: center;
}

.newsletter h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
}

.newsletter p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 32px;
}

.newsletter-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
}

.newsletter-form input {
  flex: 1;
  padding: 16px 20px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
}

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

/* ==========================================
   Footer
   ========================================== */
.footer {
  background: var(--primary-color);
  color: var(--bg-white);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  margin-bottom: 24px;
}

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

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

.social-link:hover {
  background: var(--secondary-color);
}

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

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

.footer-column a {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}

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

.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}

.payment-methods {
  display: flex;
  gap: 16px;
  align-items: center;
}

.payment-method {
  padding: 8px 16px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
}

/* ==========================================
   Product Detail Page
   ========================================== */
.product-detail {
  padding: 120px 0 80px;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
}

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

.main-image {
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-light);
  margin-bottom: 16px;
}

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

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

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

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

.product-detail-info h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
}

.product-detail-info .product-rating {
  margin-bottom: 24px;
}

.product-detail-info .product-price {
  margin-bottom: 24px;
}

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

.product-detail-info .original-price {
  font-size: 20px;
}

.product-description {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
}

.product-features {
  margin-bottom: 32px;
}

.product-features h3 {
  font-size: 18px;
  margin-bottom: 16px;
}

.product-features ul {
  display: grid;
  gap: 12px;
}

.product-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}

.product-features li::before {
  content: '✓';
  width: 24px;
  height: 24px;
  background: var(--secondary-color);
  color: var(--bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.quantity-selector label {
  font-weight: 500;
}

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

.quantity-input button {
  width: 44px;
  height: 44px;
  font-size: 18px;
  color: var(--text-primary);
  transition: var(--transition);
}

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

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

.add-to-cart-btn {
  margin-bottom: 16px;
}

.buy-now-btn {
  margin-bottom: 32px;
}

/* ==========================================
   Cart Page
   ========================================== */
.cart-page {
  padding: 120px 0 80px;
}

.cart-page h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 48px;
}

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

.cart-items {
  background: var(--bg-white);
  border-radius: 16px;
  overflow: hidden;
}

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

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

.cart-item-image {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-light);
}

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

.cart-item-info h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.cart-item-info .product-category {
  margin-bottom: 12px;
}

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

.cart-item-price {
  text-align: right;
}

.cart-item-price .current-price {
  font-size: 20px;
}

.remove-btn {
  color: var(--danger-color);
  padding: 8px;
  transition: var(--transition);
}

.remove-btn:hover {
  background: rgba(220, 53, 69, 0.1);
  border-radius: 8px;
}

.cart-summary {
  background: var(--bg-light);
  border-radius: 16px;
  padding: 32px;
  height: fit-content;
  position: sticky;
  top: 120px;
}

.cart-summary h2 {
  font-size: 24px;
  margin-bottom: 24px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 15px;
}

.summary-row.total {
  font-size: 20px;
  font-weight: 700;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  margin-top: 16px;
}

.payment-options {
  margin: 24px 0;
  padding: 24px;
  background: var(--bg-white);
  border-radius: 12px;
}

.payment-options h3 {
  font-size: 16px;
  margin-bottom: 16px;
}

.payment-method-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.payment-method-option:hover,
.payment-method-option.selected {
  border-color: var(--secondary-color);
}

.payment-method-option input {
  width: 20px;
  height: 20px;
  accent-color: var(--secondary-color);
}

.checkout-btn {
  margin-top: 24px;
}

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

.empty-cart-icon {
  font-size: 80px;
  margin-bottom: 24px;
}

.empty-cart h2 {
  font-size: 28px;
  margin-bottom: 16px;
}

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

/* ==========================================
   Checkout Page
   ========================================== */
.checkout-page {
  padding: 120px 0 80px;
}

.checkout-page h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 48px;
}

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

.checkout-form {
  background: var(--bg-white);
  border-radius: 16px;
  padding: 32px;
}

.form-section {
  margin-bottom: 32px;
}

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

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

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

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
}

.order-summary {
  background: var(--bg-light);
  border-radius: 16px;
  padding: 32px;
  height: fit-content;
  position: sticky;
  top: 120px;
}

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

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

.order-item-image {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-white);
}

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

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

.order-item-info h4 {
  font-size: 15px;
  margin-bottom: 4px;
}

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

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

/* ==========================================
   Order Confirmation Page
   ========================================== */
.order-confirmation {
  padding: 120px 0 80px;
  text-align: center;
}

.confirmation-icon {
  width: 120px;
  height: 120px;
  background: var(--success-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  font-size: 60px;
  color: var(--bg-white);
}

.order-confirmation h1 {
  font-size: 36px;
  margin-bottom: 16px;
}

.order-confirmation p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.order-number {
  font-size: 20px;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 48px;
}

/* ==========================================
   Policy Pages
   ========================================== */
.policy-page {
  padding: 120px 0 80px;
}

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

.policy-content h1 {
  font-size: 36px;
  margin-bottom: 16px;
}

.policy-meta {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 48px;
}

.policy-content h2 {
  font-size: 24px;
  margin: 48px 0 24px;
}

.policy-content p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.policy-content ul {
  margin-left: 24px;
  margin-bottom: 16px;
}

.policy-content li {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 8px;
  list-style: disc;
}

/* ==========================================
   Toast Notifications
   ========================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background: var(--primary-color);
  color: var(--bg-white);
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideIn 0.3s ease;
}

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

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

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ==========================================
   Loading States
   ========================================== */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

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

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

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(90deg, var(--bg-light) 25%, var(--border-color) 50%, var(--bg-light) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

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

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 42px;
  }
  
  .hero-content p {
    margin: 0 auto 32px;
  }
  
  .hero-btns {
    justify-content: center;
  }
  
  .hero-image {
    order: -1;
  }
  
  .product-detail-grid {
    grid-template-columns: 1fr;
  }
  
  .product-gallery {
    position: static;
  }
  
  .cart-grid,
  .checkout-grid {
    grid-template-columns: 1fr;
  }
  
  .cart-summary,
  .order-summary {
    position: static;
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-top {
    display: none;
  }
  
  .search-box {
    display: none;
  }
  
  .nav-menu {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .hero {
    padding: 100px 0 60px;
  }
  
  .hero-content h1 {
    font-size: 32px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .products-header {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
  
  .filter-tabs {
    overflow-x: auto;
    width: 100%;
    padding-bottom: 8px;
  }
  
  .carousel-item {
    flex: 0 0 calc(100% - 48px);
    min-width: calc(100% - 48px);
  }
  
  .cart-item {
    grid-template-columns: 80px 1fr;
    gap: 16px;
  }
  
  .cart-item-image {
    width: 80px;
    height: 80px;
  }
  
  .cart-item-actions {
    grid-column: 1 / -1;
    justify-content: space-between;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .hero-content h1 {
    font-size: 28px;
  }
  
  .hero-btns {
    flex-direction: column;
  }
  
  .hero-btns .btn {
    width: 100%;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .categories-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .product-info {
    padding: 16px;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form .btn {
    width: 100%;
  }
}

/* ==========================================
   Utility Classes
   ========================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.hidden { display: none !important; }
.visible { display: block !important; }
