:root {

  --primary-color: #000000;

  --secondary-color: #5D4037; /* Brown */

  --accent-color: #FFFFFF;

  --bg-color: #FAFAFA;

  --text-color: #111111;

  --text-muted: #666666;

  --border-color: #E0E0E0;

  --font-family: 'Inter', -apple-system, sans-serif;

}



* {

  box-sizing: border-box;

  margin: 0;

  padding: 0;

}



body {

  font-family: var(--font-family);

  background-color: var(--bg-color);

  color: var(--text-color);

  line-height: 1.6;

}



a {

  text-decoration: none;

  color: inherit;

}



ul {

  list-style: none;

}



button {

  cursor: pointer;

  border: none;

  background: none;

  font-family: inherit;

}



/* Header */

.header {

  position: sticky;

  top: 0;

  background-color: rgba(255, 255, 255, 0.95);

  backdrop-filter: blur(8px);

  border-bottom: 1px solid var(--border-color);

  z-index: 100;

}



.nav-container {

  max-width: 1200px;

  margin: 0 auto;

  padding: 1rem 2rem;

  display: flex;

  justify-content: space-between;

  align-items: center;

}



.brand {

  font-weight: 800;

  font-size: 1.5rem;

  letter-spacing: -0.5px;

  text-transform: uppercase;

}



.nav-links {

  display: flex;

  gap: 2rem;

}



.nav-links a {

  font-weight: 500;

  font-size: 0.9rem;

  text-transform: uppercase;

  letter-spacing: 1px;

  transition: color 0.3s;

}



.nav-links a:hover {

  color: var(--text-muted);

}



.cart-btn {

  font-weight: 600;

  font-size: 0.9rem;

  display: flex;

  align-items: center;

  gap: 0.5rem;

}



/* Hero */

.hero {

  background-color: var(--primary-color);

  color: var(--accent-color);

  padding: 6rem 2rem;

  text-align: center;

}



.hero h1 {

  font-size: 3rem;

  font-weight: 800;

  margin-bottom: 1rem;

  text-transform: uppercase;

  line-height: 1.1;

}



.hero p {

  font-size: 1.2rem;

  color: #CCCCCC;

  margin-bottom: 2rem;

  max-width: 600px;

  margin-inline: auto;

}



.btn-primary {

  display: inline-block;

  background-color: var(--accent-color);

  color: var(--primary-color);

  padding: 1rem 2.5rem;

  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 1px;

  border-radius: 2px;

  transition: transform 0.3s, background-color 0.3s;

}



.btn-primary:hover {

  background-color: #EEEEEE;

  transform: translateY(-2px);

}



.btn-dark {

  display: inline-block;

  background-color: var(--primary-color);

  color: var(--accent-color);

  padding: 1rem 2.5rem;

  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 1px;

  border-radius: 2px;

  transition: opacity 0.3s;

}

.btn-dark:hover {

  opacity: 0.8;

}



/* Collections */

.collection-section {

  max-width: 1200px;

  margin: 5rem auto;

  padding: 0 2rem;

}



.collection-header {

  margin-bottom: 3rem;

  text-align: center;

}



.collection-header h2 {

  font-size: 2.5rem;

  font-weight: 800;

  text-transform: uppercase;

  margin-bottom: 0.5rem;

}



.collection-header p {

  color: var(--text-muted);

  font-size: 1.1rem;

}



.product-grid {

  display: grid;

  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));

  gap: 2rem;

}



/* Product Card */

.product-card {

  background: var(--accent-color);

  border: 1px solid var(--border-color);

  border-radius: 4px;

  overflow: hidden;

  transition: transform 0.3s, box-shadow 0.3s;

  display: flex;

  flex-direction: column;

}



.product-card:hover {

  transform: translateY(-5px);

  box-shadow: 0 10px 20px rgba(0,0,0,0.05);

}



.product-image {

  width: 100%;

  aspect-ratio: 3/4;

  object-fit: cover;

  background-color: #F0F0F0;

}



.product-info {

  padding: 1.5rem;

  flex-grow: 1;

  display: flex;

  flex-direction: column;

}



.product-brand {

  font-size: 0.75rem;

  text-transform: uppercase;

  letter-spacing: 1px;

  color: var(--text-muted);

  margin-bottom: 0.25rem;

}



.product-title {

  font-size: 1.1rem;

  font-weight: 700;

  margin-bottom: 0.5rem;

}



.product-price {

  font-weight: 600;

  margin-bottom: 1rem;

}



.old-price {

  text-decoration: line-through;

  color: var(--text-muted);

  font-weight: 400;

  margin-left: 0.5rem;

  font-size: 0.9rem;

}



.product-options {

  margin-top: auto;

}



.size-selector {

  display: flex;

  gap: 0.5rem;

  margin-bottom: 1rem;

}



.size-btn {

  border: 1px solid var(--border-color);

  background: var(--accent-color);

  padding: 0.5rem;

  width: 40px;

  height: 40px;

  display: flex;

  align-items: center;

  justify-content: center;

  font-weight: 600;

  border-radius: 2px;

  transition: all 0.2s;

}



.size-btn:not(:disabled):hover {

  border-color: var(--primary-color);

}



.size-btn.selected {

  background: var(--primary-color);

  color: var(--accent-color);

  border-color: var(--primary-color);

}



.size-btn:disabled {

  opacity: 0.3;

  cursor: not-allowed;

  text-decoration: line-through;

}



.add-to-cart-btn {

  width: 100%;

  background: var(--primary-color);

  color: var(--accent-color);

  padding: 1rem;

  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 1px;

  border-radius: 2px;

  transition: opacity 0.3s;

}



.add-to-cart-btn:hover {

  opacity: 0.9;

}

.add-to-cart-btn:disabled {

  background: #ccc;

  cursor: not-allowed;

}



.view-details-btn {

  width: 100%;

  background: transparent;

  color: var(--primary-color);

  border: 1px solid var(--primary-color);

  padding: 0.75rem;

  font-weight: 600;

  text-transform: uppercase;

  margin-top: 0.5rem;

  border-radius: 2px;

  transition: all 0.3s;

}



.view-details-btn:hover {

  background: var(--primary-color);

  color: var(--accent-color);

}



/* Modals */

.modal-overlay {

  position: fixed;

  inset: 0;

  background: rgba(0, 0, 0, 0.5);

  backdrop-filter: blur(4px);

  display: flex;

  align-items: center;

  justify-content: center;

  z-index: 1000;

  opacity: 0;

  pointer-events: none;

  transition: opacity 0.3s;

}



.modal-overlay.active {

  opacity: 1;

  pointer-events: all;

}



.modal-content {

  background: var(--accent-color);

  width: 90%;

  max-width: 900px;

  max-height: 90vh;

  overflow-y: auto;

  border-radius: 4px;

  position: relative;

  display: flex;

  flex-direction: column;

}

@media (min-width: 768px) {

  .modal-content {

    flex-direction: row;

  }

}



.modal-close {

  position: absolute;

  top: 1rem;

  right: 1rem;

  font-size: 1.5rem;

  background: rgba(255,255,255,0.8);

  width: 40px;

  height: 40px;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: 50%;

  z-index: 10;

  border: 1px solid var(--border-color);

}



.modal-gallery {

  flex: 1;

  background: #F5F5F5;

  display: flex;

  flex-direction: column;

}



.modal-main-img {

  width: 100%;

  aspect-ratio: 3/4;

  object-fit: cover;

}



.main-img-container {

  display: flex;

  align-items: center;

  justify-content: center;

}



.nav-btn {

  position: absolute;

  top: 50%;

  transform: translateY(-50%);

  background: rgba(255, 255, 255, 0.8);

  border: 1px solid var(--border-color);

  border-radius: 50%;

  width: 40px;

  height: 40px;

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 1.2rem;

  color: var(--primary-color);

  cursor: pointer;

  transition: 0.3s;

  z-index: 10;

}

.nav-btn:hover {

  background: white;

}

.prev-btn {

  left: 10px;

}

.next-btn {

  right: 10px;

}



.modal-info {

  flex: 1;

  padding: 2rem;

}



.modal-info h2 {

  font-size: 2rem;

  margin-bottom: 0.5rem;

}



.modal-price {

  font-size: 1.25rem;

  font-weight: 600;

  margin-bottom: 1.5rem;

}



.modal-desc {

  color: var(--text-muted);

  margin-bottom: 2rem;

  white-space: pre-wrap;

}



.specs-list {

  margin-bottom: 2rem;

  font-size: 0.9rem;

}

.specs-list li {

  margin-bottom: 0.5rem;

  display: flex;

}

.specs-list li span:first-child {

  font-weight: 600;

  width: 120px;

}



/* Quantity */

.quantity-selector {

  display: flex;

  align-items: center;

  border: 1px solid var(--border-color);

  border-radius: 2px;

  width: fit-content;

  margin-bottom: 1.5rem;

}

.quantity-selector button {

  width: 40px;

  height: 40px;

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 1.2rem;

  transition: background 0.2s;

}

.quantity-selector button:hover {

  background: #F5F5F5;

}

.quantity-selector span {

  width: 40px;

  text-align: center;

  font-weight: 600;

}



/* Toast */

.toast {

  position: fixed;

  bottom: 2rem;

  right: 2rem;

  background: var(--primary-color);

  color: var(--accent-color);

  padding: 1rem 2rem;

  border-radius: 4px;

  font-weight: 600;

  box-shadow: 0 5px 15px rgba(0,0,0,0.2);

  transform: translateY(100px);

  opacity: 0;

  transition: all 0.3s;

  z-index: 2000;

}

.toast.show {

  transform: translateY(0);

  opacity: 1;

}



/* Cart Page */

.cart-container {

  max-width: 1200px;

  margin: 4rem auto;

  padding: 0 2rem;

  display: grid;

  gap: 3rem;

}

@media (min-width: 992px) {

  .cart-container {

    grid-template-columns: 1.5fr 1fr;

  }

}



.cart-items h2 {

  font-size: 2rem;

  margin-bottom: 2rem;

  border-bottom: 2px solid var(--primary-color);

  padding-bottom: 1rem;

}



.cart-item {

  display: flex;

  gap: 1.5rem;

  padding: 1.5rem 0;

  border-bottom: 1px solid var(--border-color);

}



.cart-item-img {

  width: 100px;

  height: 133px;

  object-fit: cover;

  background: #f0f0f0;

}



.cart-item-details {

  flex: 1;

}



.cart-item-title {

  font-size: 1.1rem;

  font-weight: 700;

  margin-bottom: 0.25rem;

}

.cart-item-meta {

  font-size: 0.9rem;

  color: var(--text-muted);

  margin-bottom: 1rem;

}

.cart-item-price {

  font-weight: 600;

}

.cart-item-actions {

  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-top: 1rem;

}

.remove-btn {

  color: #d32f2f;

  font-size: 0.9rem;

  font-weight: 600;

  text-decoration: underline;

}



.checkout-section {

  background: #F9F9F9;

  padding: 2rem;

  border-radius: 4px;

  border: 1px solid var(--border-color);

  height: fit-content;

}

.checkout-section h3 {

  font-size: 1.5rem;

  margin-bottom: 1.5rem;

}

.summary-row {

  display: flex;

  justify-content: space-between;

  margin-bottom: 1rem;

  font-size: 1.1rem;

}

.summary-row.total {

  font-size: 1.25rem;

  font-weight: 800;

  border-top: 1px solid var(--border-color);

  padding-top: 1rem;

  margin-top: 1rem;

}



.form-group {

  margin-bottom: 1.25rem;

}

.form-group label {

  display: block;

  margin-bottom: 0.5rem;

  font-weight: 600;

  font-size: 0.9rem;

}

.form-control {

  width: 100%;

  padding: 0.75rem;

  border: 1px solid var(--border-color);

  border-radius: 2px;

  font-family: inherit;

  font-size: 1rem;

}

.form-control:focus {

  outline: none;

  border-color: var(--primary-color);

}



.payment-method {

  border: 1px solid var(--primary-color);

  background: rgba(0,0,0,0.05);

  padding: 1rem;

  border-radius: 2px;

  margin-bottom: 2rem;

  display: flex;

  align-items: center;

  gap: 0.5rem;

  font-weight: 600;

}



/* Admin Dashboard */

.admin-container {

  display: flex;

  min-height: 100vh;

  background: #F0F2F5;

}

.admin-sidebar {

  width: 250px;

  background: var(--primary-color);

  color: var(--accent-color);

  padding: 2rem;

  flex-shrink: 0;

}

.admin-sidebar h2 {

  margin-bottom: 2rem;

  font-size: 1.25rem;

  letter-spacing: 1px;

}

.admin-nav li {

  margin-bottom: 1rem;

}

.admin-nav button {

  color: rgba(255,255,255,0.7);

  font-size: 1.1rem;

  font-weight: 500;

  width: 100%;

  text-align: left;

  transition: color 0.2s;

}

.admin-nav button:hover, .admin-nav button.active {

  color: var(--accent-color);

}

.admin-main {

  flex: 1;

  padding: 2rem;

  overflow-y: auto;

}

.admin-header {

  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-bottom: 2rem;

}

.admin-card {

  background: var(--accent-color);

  border-radius: 8px;

  padding: 1.5rem;

  box-shadow: 0 2px 4px rgba(0,0,0,0.05);

  margin-bottom: 2rem;

}

.stats-grid {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));

  gap: 1.5rem;

  margin-bottom: 2rem;

}

.stat-box {

  background: var(--accent-color);

  padding: 1.5rem;

  border-radius: 8px;

  box-shadow: 0 2px 4px rgba(0,0,0,0.05);

}

.stat-box h4 {

  color: var(--text-muted);

  font-size: 0.9rem;

  text-transform: uppercase;

  margin-bottom: 0.5rem;

}

.stat-box .val {

  font-size: 2rem;

  font-weight: 800;

}



.table-responsive {

  overflow-x: auto;

}

table {

  width: 100%;

  border-collapse: collapse;

}

th, td {

  padding: 1rem;

  text-align: left;

  border-bottom: 1px solid var(--border-color);

}

th {

  font-weight: 600;

  color: var(--text-muted);

  text-transform: uppercase;

  font-size: 0.85rem;

}

.badge {

  padding: 0.25rem 0.5rem;

  border-radius: 4px;

  font-size: 0.8rem;

  font-weight: 600;

  background: #E0E0E0;

}

.badge.pending { background: #FFF3E0; color: #E65100; }

.badge.processing { background: #E3F2FD; color: #1565C0; }

.badge.shipped { background: #E8F5E9; color: #2E7D32; }

.badge.delivered { background: #C8E6C9; color: #1B5E20; }

.badge.cancelled { background: #FFEBEE; color: #C62828; }



.action-btn {

  padding: 0.5rem 1rem;

  background: var(--primary-color);

  color: var(--accent-color);

  border-radius: 4px;

  font-size: 0.85rem;

}

.action-btn.danger {

  background: #d32f2f;

}



/* Footer */

.footer {

  background: var(--primary-color);

  color: var(--accent-color);

  padding: 4rem 2rem 2rem;

  text-align: center;

}

.footer h2 {

  font-size: 1.5rem;

  font-weight: 800;

  letter-spacing: 1px;

  margin-bottom: 0.5rem;

}

.footer p {

  color: #AAAAAA;

  margin-bottom: 2rem;

}

.footer-links {

  display: flex;

  justify-content: center;

  gap: 2rem;

  margin-bottom: 2rem;

}

.footer-links a {

  text-transform: uppercase;

  font-size: 0.85rem;

  letter-spacing: 1px;

}

.footer-bottom {

  border-top: 1px solid #333;

  padding-top: 2rem;

  color: #666;

  font-size: 0.85rem;

}



.loader {

  border: 3px solid #f3f3f3;

  border-top: 3px solid var(--primary-color);

  border-radius: 50%;

  width: 24px;

  height: 24px;

  animation: spin 1s linear infinite;

  margin: 0 auto;

}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }



/* Mobile Responsiveness */

@media (max-width: 768px) {

  .nav-container {

    flex-wrap: wrap;

    gap: 1rem;

    justify-content: center;

    padding: 1rem;

  }

  .brand {

    font-size: 1.25rem;

    width: 100%;

    text-align: center;

  }

  .nav-links {

    gap: 1rem;

  }

  .nav-links a {

    font-size: 0.8rem;

  }

  .cart-btn {

    font-size: 0.8rem;

  }

  

  .hero {

    padding: 3rem 1rem;

  }

  .hero h1 {

    font-size: 2rem;

  }

  .hero p {

    font-size: 1rem;

  }

  

  .collection-header h2 {

    font-size: 2rem;

  }

  

  .footer {

    padding: 3rem 1rem 1.5rem;

  }

  .footer-links {

    flex-wrap: wrap;

    gap: 1rem;

  }

  

  .cart-item {

    flex-direction: column;

    align-items: center;

    text-align: center;

  }

  .cart-item-img {

    width: 100%;

    max-width: 200px;

    height: auto;

    aspect-ratio: 3/4;

  }

  .cart-item-actions {

    flex-direction: column;

    gap: 1rem;

  }

  .quantity-selector {

    margin: 0 auto !important;

  }

  

  .modal-info {

    padding: 1rem;

  }

  .modal-info h2 {

    font-size: 1.5rem;

  }

  

  .form-row {

    grid-template-columns: 1fr;

  }

  

  .admin-container {

    flex-direction: column;

  }

  .admin-sidebar {

    width: 100%;

    padding: 1rem;

    display: flex;

    flex-direction: column;

  }

  .admin-nav {

    display: flex;

    flex-wrap: wrap;

    gap: 0.5rem;

  }

  .admin-nav li {

    margin-bottom: 0;

  }

  .admin-nav button {

    font-size: 0.9rem;

    padding: 0.5rem;

  }

}


/* Category Overlay Styles */
.category-overlay {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  background-color: var(--primary-color);
  overflow-x: hidden;
  transition: 0.4s;
  box-shadow: -5px 0 15px rgba(0,0,0,0.5);
}

.category-overlay-content {
  padding: 80px 40px 40px 40px;
}

.category-overlay-content h2 {
  color: var(--accent-color);
  font-size: 2rem;
  margin-bottom: 2rem;
  letter-spacing: 2px;
}

.category-list {
  list-style: none;
}

.category-list li {
  margin-bottom: 1.5rem;
}

.category-list a {
  text-decoration: none;
  font-size: 1.2rem;
  color: var(--accent-color);
  display: block;
  transition: 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.category-list a:hover {
  color: var(--accent-color);
  padding-left: 10px;
}

.close-category-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: 0.3s;
}

.close-category-btn:hover {
  color: var(--accent-color);
}


