/* ===== CSS Variables ===== */
:root {
  --primary: #111111;
  --accent: #C9A961;
  --white: #FFFFFF;
  --gray: #F5F5F5;
  --dark-gray: #333333;
  --danger: #DC2626;
  --success: #16A34A;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
  --transition: all 0.3s ease;
  --container: 1300px;
  --section-padding: 80px;
}

/* Dark Mode Variables */
body.dark {
  --primary: #FFFFFF;
  --white: #0F0F0F;
  --gray: #1A1A1A;
  --dark-gray: #CCCCCC;
  background: #0F0F0F;
  color: #FFFFFF;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Tajawal', 'Poppins', sans-serif;
  background: var(--white);
  color: var(--primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

body[dir="ltr"] {
  font-family: 'Poppins', 'Tajawal', sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== Container ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */
.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

body.dark .header {
  background: #0F0F0F;
  border-bottom: 1px solid #2A2A2A;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  gap: 20px;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-text {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 2px;
}

.logo-sub {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-weight: 500;
  color: var(--primary);
  padding: 8px 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-icon {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: var(--transition);
  position: relative;
}

.btn-icon:hover {
  background: var(--gray);
  transform: scale(1.1);
}

.cart-badge .badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--danger);
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 50%;
  font-weight: 700;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
  transition: var(--transition);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  font-family: inherit;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

/* ===== Hero Section ===== */
.hero {
  padding: 60px 0;
  background: var(--gray);
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 18px;
  color: var(--dark-gray);
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-skeleton {
  width: 100%;
  height: 500px;
  background: linear-gradient(90deg, var(--gray) 25%, #e0e0e0 50%, var(--gray) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s infinite;
  border-radius: var(--radius);
}

@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== Section ===== */
.section {
  padding: var(--section-padding) 0;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 15px;
}

.section-subtitle {
  text-align: center;
  color: var(--dark-gray);
  margin-bottom: 50px;
}

.section-footer {
  text-align: center;
  margin-top: 40px;
}

/* ===== Categories ===== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.category-card {
  background: var(--white);
  padding: 40px 20px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}

body.dark .category-card {
  background: #1A1A1A;
  border: 1px solid #2A2A2A;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.category-card:hover .category-icon {
  transform: scale(1.2);
}

.category-icon {
  font-size: 50px;
  margin-bottom: 15px;
  transition: var(--transition);
}

.category-card h3 {
  font-size: 18px;
  font-weight: 600;
}

/* ===== Products Grid ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}

body.dark .product-card {
  background: #1A1A1A;
  border: 1px solid #2A2A2A;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.product-card:hover .product-image img {
  transform: scale(1.08);
}

.product-image {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--danger);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.product-favorite {
  position: absolute;
  top: 10px;
  left: 10px;
  background: white;
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-favorite:hover {
  transform: scale(1.1);
}

.product-favorite.active {
  color: var(--danger);
}

.product-info {
  padding: 20px;
}

.product-brand {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
}

.product-name {
  font-size: 16px;
  font-weight: 600;
  margin: 8px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
}

.stars {
  color: #FFB800;
  font-size: 14px;
}

.rating-count {
  font-size: 12px;
  color: var(--dark-gray);
}

.product-prices {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.current-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}

.old-price {
  font-size: 14px;
  color: var(--dark-gray);
  text-decoration: line-through;
}

.add-to-cart-btn {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.add-to-cart-btn:hover {
  background: var(--accent);
}

/* ===== Features ===== */
.features {
  background: var(--gray);
}

body.dark .features {
  background: #0A0A0A;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.feature-card {
  text-align: center;
  padding: 30px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

body.dark .feature-card {
  background: #1A1A1A;
}

.feature-icon {
  font-size: 50px;
  margin-bottom: 15px;
}

.feature-card h4 {
  font-size: 18px;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--dark-gray);
  font-size: 14px;
}

/* ===== Newsletter ===== */
.newsletter {
  background: var(--primary);
  color: white;
  text-align: center;
}

.newsletter .section-title {
  color: white;
}

.newsletter .section-subtitle {
  color: rgba(255,255,255,0.7);
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: 10px;
}

.newsletter-form input {
  flex: 1;
  padding: 15px 20px;
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-family: inherit;
}

.newsletter-form input:focus {
  outline: 2px solid var(--accent);
}

.newsletter-form .btn {
  background: var(--accent);
  border-color: var(--accent);
}

.newsletter-form .btn:hover {
  background: var(--white);
  color: var(--primary);
}

/* ===== Footer ===== */
.footer {
  background: var(--gray);
  padding: 60px 0 20px;
}

body.dark .footer {
  background: #0A0A0A;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 18px;
  margin-bottom: 20px;
}

.footer-col p {
  color: var(--dark-gray);
  margin-bottom: 10px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a:hover {
  color: var(--accent);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-links a {
  font-size: 24px;
  transition: var(--transition);
}

.social-links a:hover {
  transform: scale(1.2);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.1);
  color: var(--dark-gray);
}

body.dark .footer-bottom {
  border-color: #2A2A2A;
}

/* ===== Filters ===== */
.filters {
  display: flex;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-group input,
.filter-group select {
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-size: 14px;
  min-width: 180px;
  font-family: inherit;
  background: var(--white);
  color: var(--primary);
}

body.dark .filter-group input,
body.dark .filter-group select {
  background: #1A1A1A;
  border-color: #2A2A2A;
  color: white;
}

.filter-group input:focus,
.filter-group select:focus {
  outline: none;
  border-color: var(--accent);
}

/* ===== No Results ===== */
.no-results {
  text-align: center;
  padding: 60px 20px;
}

.no-results .icon {
  font-size: 80px;
  margin-bottom: 20px;
}

.no-results h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.no-results p {
  color: var(--dark-gray);
  margin-bottom: 20px;
}

/* Product Detail Page */
.product-detail-page {
  padding-top: 40px;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.product-gallery {
  position: sticky;
  top: 100px;
}

.main-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 15px;
  background: var(--gray);
}

.main-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.discount-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--danger);
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 16px;
}

.thumbnails {
  display: flex;
  gap: 10px;
}

.thumb {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: var(--transition);
}

.thumb.active,
.thumb:hover {
  border-color: var(--accent);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product Info */
.product-info-detail {
  padding: 20px 0;
}

.product-brand-label {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 15px;
}

.product-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.3;
}

.product-rating-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.stars {
  color: #FFB800;
  font-size: 18px;
}

.rating-text {
  color: var(--dark-gray);
  font-size: 14px;
}

.product-price-box {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  padding: 20px;
  background: var(--gray);
  border-radius: var(--radius);
}

.current-price-large {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
}

.old-price-large {
  font-size: 20px;
  color: var(--dark-gray);
  text-decoration: line-through;
}

.save-badge {
  background: var(--success);
  color: white;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 13px;
  font-weight: 600;
}

.product-description-box {
  margin-bottom: 25px;
}

.product-description-box h4 {
  font-size: 16px;
  margin-bottom: 10px;
}

.product-description-box p {
  color: var(--dark-gray);
  line-height: 1.8;
}

/* Options */
.option-section {
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--gray);
}

.option-section h4 {
  font-size: 16px;
  margin-bottom: 15px;
}

.color-options {
  display: flex;
  gap: 12px;
}

.color-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.color-btn:hover,
.color-btn.active {
  border-color: var(--accent);
  transform: scale(1.1);
}

.size-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.size-btn {
  padding: 12px 25px;
  border: 2px solid #ddd;
  background: var(--white);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
}

.size-btn:hover,
.size-btn.active {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.quantity-selector-large {
  display: flex;
  align-items: center;
  gap: 15px;
}

.qty-btn {
  width: 50px;
  height: 50px;
  border: none;
  background: var(--gray);
  border-radius: var(--radius);
  font-size: 24px;
  cursor: pointer;
  transition: var(--transition);
}

.qty-btn:hover {
  background: var(--accent);
  color: white;
}

.quantity-selector-large input {
  width: 80px;
  text-align: center;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: var(--radius);
  font-size: 20px;
  font-weight: 700;
}

/* Actions */
.product-actions-detail {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.product-actions-detail .btn {
  flex: 1;
  padding: 18px;
  font-size: 18px;
}

/* Error */
.error-404 {
  grid-column: span 2;
  text-align: center;
  padding: 60px;
}

.error-404 h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
  }
  
  .main-image img {
    height: 350px;
  }
  
  .product-title {
    font-size: 24px;
  }
  
  .current-price-large {
    font-size: 28px;
  }
  
  .product-actions-detail {
    flex-direction: column;
  }
}

/* ===== Related Products ===== */
.related-products {
  margin-top: 60px;
}

/* ===== Cart Page ===== */
.cart-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 20px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  align-items: center;
}

body.dark .cart-item {
  background: #1A1A1A;
}

.cart-item-image {
  width: 120px;
  height: 120px;
  border-radius: var(--radius);
  overflow: hidden;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info h4 {
  font-size: 16px;
  margin-bottom: 5px;
}

.cart-item-info .brand {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.cart-item-info .price {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  margin-top: 10px;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.cart-item-quantity button {
  width: 30px;
  height: 30px;
  border: none;
  background: var(--gray);
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  font-family: inherit;
}

.cart-item-quantity span {
  font-weight: 600;
  min-width: 30px;
  text-align: center;
}

.cart-item-remove {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--danger);
  transition: var(--transition);
}

.cart-item-remove:hover {
  transform: scale(1.2);
}

.cart-summary {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: sticky;
  top: 100px;
}

body.dark .cart-summary {
  background: #1A1A1A;
}

.cart-summary h3 {
  font-size: 20px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  color: var(--dark-gray);
}

.summary-row.total {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  padding-top: 15px;
  border-top: 2px solid var(--primary);
  margin-top: 15px;
}

.coupon-input {
  display: flex;
  gap: 10px;
  margin: 20px 0;
}

.coupon-input input {
  flex: 1;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-family: inherit;
}

.coupon-input button {
  padding: 12px 20px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
}

.coupon-message {
  font-size: 14px;
  margin-bottom: 15px;
}

.coupon-message.success {
  color: var(--success);
}

.coupon-message.error {
  color: var(--danger);
}

.checkout-btn {
  width: 100%;
  padding: 16px;
  background: var(--success);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.checkout-btn:hover {
  background: #15803d;
  transform: translateY(-2px);
}

/* Empty Cart */
.empty-cart {
  text-align: center;
  padding: 80px 20px;
}

.empty-cart .icon {
  font-size: 100px;
  margin-bottom: 20px;
}

.empty-cart h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.empty-cart p {
  color: var(--dark-gray);
  margin-bottom: 30px;
}

/* ===== Auth Page ===== */
.auth-page {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
}

.auth-container {
  max-width: 450px;
  margin: 0 auto;
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

body.dark .auth-container {
  background: #1A1A1A;
}

.auth-tabs {
  display: flex;
  margin-bottom: 30px;
  border-bottom: 2px solid var(--gray);
}

.auth-tab {
  flex: 1;
  padding: 15px;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  color: var(--dark-gray);
  transition: var(--transition);
  font-family: inherit;
}

.auth-tab.active {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.auth-form input {
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-size: 16px;
  font-family: inherit;
  background: var(--white);
  color: var(--primary);
}

body.dark .auth-form input {
  background: #0F0F0F;
  border-color: #2A2A2A;
  color: white;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.auth-message {
  margin-top: 15px;
  padding: 10px;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 600;
}

.auth-message.success {
  background: rgba(22, 163, 74, 0.1);
  color: var(--success);
}

.auth-message.error {
  background: rgba(220, 38, 38, 0.1);
  color: var(--danger);
}

/* ===== Contact Page ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.contact-card {
  text-align: center;
  padding: 40px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

body.dark .contact-card {
  background: #1A1A1A;
}

.contact-card:hover {
  transform: translateY(-5px);
}

.contact-icon {
  font-size: 50px;
  margin-bottom: 15px;
}

.contact-card h4 {
  font-size: 18px;
  margin-bottom: 10px;
}

.contact-card p {
  color: var(--dark-gray);
}

.contact-form {
  max-width: 600px;
  margin: 0 auto 50px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-size: 16px;
  font-family: inherit;
  background: var(--white);
  color: var(--primary);
}

body.dark .contact-form input,
body.dark .contact-form textarea {
  background: #1A1A1A;
  border-color: #2A2A2A;
  color: white;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-social {
  text-align: center;
}

.contact-social h4 {
  margin-bottom: 20px;
}

/* ===== About Page ===== */
.about-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px;
}

.about-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 60px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.about-header h2 {
  font-size: 32px;
  margin-bottom: 5px;
}

.tagline {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 20px;
}

.bio {
  color: var(--dark-gray);
  line-height: 1.8;
  margin-bottom: 20px;
}

.skills {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.skill-tag {
  padding: 8px 16px;
  background: var(--gray);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

body.dark .skill-tag {
  background: #2A2A2A;
}

.about-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.current-project {
  background: var(--gray);
  padding: 40px;
  border-radius: var(--radius);
  text-align: center;
}

body.dark .current-project {
  background: #1A1A1A;
}

.current-project h3 {
  font-size: 18px;
  color: var(--dark-gray);
  margin-bottom: 10px;
}

.project-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 15px;
}

/* ===== 404 Page ===== */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-content {
  text-align: center;
}

.error-code {
  font-size: 150px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.error-content h2 {
  font-size: 32px;
  margin: 20px 0 10px;
}

.error-content p {
  color: var(--dark-gray);
  margin-bottom: 30px;
}

/* ===== Toast Notifications ===== */
.toast-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 15px 25px;
  border-radius: var(--radius);
  color: white;
  font-weight: 600;
  animation: slideUp 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 300px;
  box-shadow: var(--shadow);
}

.toast.success {
  background: var(--success);
}

.toast.error {
  background: var(--danger);
}

.toast.info {
  background: #3B82F6;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateY(20px);
  }
}

/* ===== Scroll to top ===== */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1000;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-5px);
}

/* ===== Loading Skeleton ===== */
.skeleton {
  background: linear-gradient(90deg, var(--gray) 25%, #e0e0e0 50%, var(--gray) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s infinite;
}

@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== Fade In Animation ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
/* WhatsApp Float Button */
.whatsapp-float {
  position: fixed;
  bottom: 100px;
  left: 30px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon {
  font-size: 32px;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
  }
  
  .whatsapp-icon {
    font-size: 26px;
  }
}
/* Admin Login */
.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray);
}

.admin-login-box {
  background: var(--white);
  padding: 50px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  max-width: 400px;
  width: 90%;
}

.admin-login-box h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

.admin-login-box input {
  width: 100%;
  padding: 15px;
  border: 2px solid #ddd;
  border-radius: var(--radius);
  font-size: 18px;
  text-align: center;
  margin-bottom: 20px;
  font-family: inherit;
}

.error-message {
  color: var(--danger);
  margin-top: 15px;
}

.back-link {
  display: block;
  margin-top: 20px;
  color: var(--accent);
}

/* Form Row */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.add-product-form .form-group {
  margin-bottom: 20px;
}

.add-product-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
}

.add-product-form input,
.add-product-form select,
.add-product-form textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
}

.add-product-form small {
  display: block;
  margin-top: 5px;
  color: var(--dark-gray);
  font-size: 12px;
}

.colors-section {
  margin-bottom: 20px;
}

.color-picker-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.selected-colors {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.color-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 20px;
  color: white;
  font-size: 13px;
}

.color-tag button {
  background: rgba(0,0,0,0.3);
  border: none;
  color: white;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  cursor: pointer;
}

body.dark .admin-login-box,
body.dark .add-product-form input,
body.dark .add-product-form select,
body.dark .add-product-form textarea {
  background: #1A1A1A;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}
/* Checkout Modal */
.checkout-modal {
  background: var(--white);
  padding: 0;
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.3s ease;
}

body.dark .checkout-modal {
  background: #1A1A1A;
}

.checkout-header {
  text-align: center;
  padding: 30px 30px 20px;
  border-bottom: 1px solid var(--gray);
}

.checkout-icon {
  font-size: 60px;
  margin-bottom: 15px;
}

.checkout-header h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.checkout-header p {
  color: var(--dark-gray);
  font-size: 14px;
}

.checkout-form {
  padding: 25px 30px;
}

.checkout-form-group {
  margin-bottom: 20px;
}

.checkout-form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
}

.checkout-form-group input,
.checkout-form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  transition: var(--transition);
  background: var(--white);
  color: var(--primary);
}

body.dark .checkout-form-group input,
body.dark .checkout-form-group textarea {
  background: #0F0F0F;
  border-color: #2A2A2A;
  color: white;
}

.checkout-form-group input:focus,
.checkout-form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.1);
}

.checkout-form .btn {
  margin-top: 10px;
  padding: 16px;
  font-size: 17px;
}

.checkout-footer {
  text-align: center;
  padding: 15px 30px 25px;
  border-top: 1px solid var(--gray);
}

.checkout-footer p {
  color: var(--dark-gray);
  font-size: 13px;
}

@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
  
}
/* Image Upload */
.or-divider {
  text-align: center;
  margin: 15px 0;
  color: var(--dark-gray);
  font-size: 14px;
  position: relative;
}

.or-divider::before,
.or-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: #ddd;
}

.or-divider::before { right: 0; }
.or-divider::after { left: 0; }

.file-upload-label {
  display: block;
  cursor: pointer;
}

.file-upload-label input[type="file"] {
  display: none;
}

.upload-btn {
  display: block;
  padding: 15px;
  background: var(--gray);
  border: 2px dashed #ccc;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 600;
  transition: var(--transition);
}

.upload-btn:hover {
  border-color: var(--accent);
  background: rgba(201, 169, 97, 0.1);
}

.image-preview {
  margin-top: 15px;
  position: relative;
}

.image-preview img {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 2px solid var(--accent);
}

.remove-img {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  background: var(--danger);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

body.dark .upload-btn {
  background: #1A1A1A;
  border-color: #2A2A2A;
}
/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
}

.contact-info-box {
  background: var(--gray);
  padding: 30px;
  border-radius: var(--radius);
}

.contact-info-box h3 {
  margin-bottom: 20px;
}

.info-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.info-item .icon {
  font-size: 24px;
}

.info-item strong {
  display: block;
  margin-bottom: 5px;
}

.contact-form {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

body.dark .contact-form {
  background: #1A1A1A;
}

.contact-form h3 {
  margin-bottom: 20px;
}

.contact-form .form-group {
  margin-bottom: 15px;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
}

body.dark .contact-form input,
body.dark .contact-form select,
body.dark .contact-form textarea {
  background: #0F0F0F;
  border-color: #2A2A2A;
  color: white;
}

/* Admin Panel */
.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray);
}

.admin-login-box {
  background: var(--white);
  padding: 50px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  max-width: 400px;
  width: 90%;
}

.admin-login-box h2 {
  margin-bottom: 20px;
}

.admin-login-box input {
  width: 100%;
  padding: 15px;
  border: 2px solid #ddd;
  border-radius: var(--radius);
  font-size: 18px;
  text-align: center;
  margin-bottom: 20px;
  font-family: inherit;
}

.error-message {
  color: var(--danger);
  margin-top: 15px;
}

.back-link {
  display: block;
  margin-top: 20px;
  color: var(--accent);
}

.admin-divider {
  margin: 50px 0;
  border: none;
  border-top: 2px solid var(--gray);
}

.admin-note {
  color: var(--dark-gray);
  margin-bottom: 20px;
  text-align: center;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.add-product-form .form-group {
  margin-bottom: 20px;
}

.add-product-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.add-product-form input,
.add-product-form select,
.add-product-form textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
}

body.dark .add-product-form input,
body.dark .add-product-form select,
body.dark .add-product-form textarea {
  background: #0F0F0F;
  border-color: #2A2A2A;
  color: white;
}

.or-divider {
  text-align: center;
  margin: 15px 0;
  color: var(--dark-gray);
  position: relative;
}

.or-divider::before,
.or-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: #ddd;
}

.or-divider::before { right: 0; }
.or-divider::after { left: 0; }

.file-upload-label {
  display: block;
  cursor: pointer;
}

.file-upload-label input[type="file"] {
  display: none;
}

.upload-btn {
  display: block;
  padding: 15px;
  background: var(--gray);
  border: 2px dashed #ccc;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 600;
  transition: var(--transition);
}

.upload-btn:hover {
  border-color: var(--accent);
}

.image-preview {
  margin-top: 15px;
  position: relative;
}

.image-preview img {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  border-radius: var(--radius);
}

.remove-img {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  background: var(--danger);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

.colors-section {
  margin-bottom: 20px;
}

.color-picker-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.selected-colors {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.color-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 20px;
  color: white;
  font-size: 13px;
}

.color-tag button {
  background: rgba(0,0,0,0.3);
  border: none;
  color: white;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  cursor: pointer;
}

/* Admin Products Grid */
.products-admin-grid {
  display: grid;
  gap: 15px;
}

.admin-product-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  padding: 15px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

body.dark .admin-product-card {
  background: #1A1A1A;
}

.admin-product-img {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.admin-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-product-info {
  flex: 1;
}

.admin-product-info h4 {
  margin-bottom: 5px;
}

.admin-product-info p {
  color: var(--dark-gray);
  font-size: 14px;
}

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 12px;
  margin-top: 5px;
}

.status-badge.published {
  background: #d4edda;
  color: #155724;
}

.status-badge.draft {
  background: #fff3cd;
  color: #856404;
}

.admin-product-actions {
  display: flex;
  gap: 10px;
}

.btn-warning {
  background: #ffc107;
  color: #000;
}

.btn-success {
  background: #28a745;
  color: white;
}

.btn-danger {
  background: #dc3545;
  color: white;
}

.btn-sm {
  padding: 8px 15px;
  font-size: 13px;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .admin-product-card {
    flex-direction: column;
    text-align: center;
  }
  
  .admin-product-actions {
    width: 100%;
    justify-content: center;
  }
}
/* Size Checkboxes in Admin */
.size-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.size-checkbox {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 15px;
  background: var(--gray);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.size-checkbox:hover {
  background: var(--accent);
  color: white;
}

.size-checkbox input {
  width: auto !important;
  cursor: pointer;
}

/* Admin Product Card */
.sizes-text {
  font-size: 12px;
  color: var(--dark-gray);
  margin-top: 3px;
}

/* Size Options in Product Page */
.size-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.size-btn {
  padding: 12px 25px;
  border: 2px solid #ddd;
  background: var(--white);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
}

.size-btn:hover,
.size-btn.active {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

body.dark .size-btn {
  background: #0F0F0F;
  border-color: #2A2A2A;
  color: white;
}

body.dark .size-checkbox {
  background: #1A1A1A;
}