/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.5));
  color: #fff;
  padding: 80px 40px;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 15px;
  letter-spacing: 2px;
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 300;
  opacity: 0.95;
}

/* ===== MAIN CONTENT ===== */
main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 40px;
}

.page-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 40px;
  color: #000;
  text-align: center;
}

.breadcrumb {
  margin-bottom: 30px;
  font-size: 13px;
}

.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: #000;
}

/* ===== ABOUT PAGE ===== */
.about-content {
  line-height: 1.8;
  color: #555;
}

.about-title {
  font-size: 32px;
  font-weight: 900;
  color: #000;
  margin-bottom: 15px;
  text-align: center;
  letter-spacing: 1px;
}

.about-subtitle {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 2px solid #e0e0e0;
}

.about-content p {
  margin-bottom: 20px;
  text-align: justify;
  font-size: 15px;
  line-height: 1.8;
}

.signature-section {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 2px solid #e0e0e0;
}

.signature {
  font-weight: 700;
  color: #000;
  margin-top: 10px;
  font-size: 14px;
}

.ceo-name {
  font-weight: 900;
  color: #000;
  font-size: 15px;
  margin-top: 5px;
}

/* ===== CATEGORY PAGE ===== */
.category-header {
  text-align: center;
  margin-bottom: 60px;
}

.category-header h1 {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.category-header p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== PRODUCTS GRID ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.product-card {
  background-color: var(--bg-secondary);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all 0.3s;
  box-shadow: 0 4px 15px var(--shadow);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px var(--shadow);
  border-color: var(--text-primary);
}

.product-image {
  width: 100%;
  height: 280px;
  background-color: var(--hover-bg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-info {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
  line-height: 1.4;
  min-height: 40px;
  flex-grow: 1;
}

.product-price {
  font-size: 18px;
  font-weight: 700;
  color: #000;
  margin-bottom: 15px;
}

.product-actions {
  display: flex;
}

.product-actions a {
  flex: 1;
  padding: 10px;
  border: 2px solid var(--text-primary);
  color: var(--text-primary);
  text-decoration: none;
  text-align: center;
  font-weight: 700;
  font-size: 12px;
  border-radius: 4px;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-actions a:first-child {
  background-color: var(--text-primary);
  color: var(--bg-secondary);
}

.product-actions a:first-child:hover {
  background-color: #000;
  border-color: #000;
}

.product-actions a:last-child:hover {
  background-color: var(--text-primary);
  color: var(--bg-secondary);
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 80px 40px;
}

.empty-state-icon {
  font-size: 80px;
  margin-bottom: 20px;
}

.empty-state p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.empty-state a {
  color: #000;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 24px;
  border: 2px solid #000;
  border-radius: 6px;
  display: inline-block;
  transition: all 0.3s;
}

.empty-state a:hover {
  background-color: #000;
  color: #fff;
}

/* ===== CART PAGE ===== */
.cart-container {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 30px;
}

.cart-items {
  background-color: var(--bg-secondary);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #e0e0e0;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table thead {
  background-color: var(--hover-bg);
  border-bottom: 2px solid var(--border-color);
}

.cart-table th {
  padding: 14px 12px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

.cart-table th:nth-child(4),
.cart-cell-size {
  width: 140px;
}

.cart-table th:nth-child(2),
.cart-cell-product {
  width: 320px;
}

.size-select-cart {
  min-width: 120px;
}

.cart-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
}

.cart-table tbody tr:last-child td {
  border-bottom: none;
}

.cart-table tbody tr:hover {
  background-color: var(--hover-bg);
}

.cart-product {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-product-image {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.qty-input {
  width: 52px;
  padding: 8px 12px;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  font-size: 14px;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  transition: border-color 0.3s;
  text-align: center;
}

.qty-input:focus {
  outline: none;
  border-color: var(--text-primary);
}

.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-color);
  background-color: var(--hover-bg);
  color: var(--text-primary);
  border-radius: 4px;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, border-color 0.2s;
}

.qty-btn:hover {
  background-color: var(--bg-secondary);
  border-color: var(--text-primary);
}

.remove-btn {
  background-color: #8B0000;
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
  transition: background-color 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.remove-btn:hover {
  background-color: #660000;
}

/* ===== CART SUMMARY ===== */
.cart-summary {
  background-color: var(--bg-secondary);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 15px var(--shadow);
  border: 1px solid var(--border-color);
  height: fit-content;
  position: sticky;
  top: 100px;
  transition: background-color 0.3s, border-color 0.3s;
}

.summary-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
  color: var(--text-primary);
}

.summary-row:last-of-type {
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 20px;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 25px;
}

.summary-total .amount {
  color: var(--accent);
}

.cart-summary .btn-secondary {
  background-color: #000;
  color: #fff;
  border-color: #000;
}

.cart-summary .btn-secondary:hover {
  background-color: #333;
  color: #fff;
}

html.dark-mode .cart-summary .btn-secondary {
  background-color: #fff;
  color: #000;
  border-color: #fff;
}

html.dark-mode .cart-summary .btn-secondary:hover {
  background-color: #e6e6e6;
  color: #000;
}

/* ===== EMPTY CART ===== */
.empty-cart {
  text-align: center;
  padding: 80px 40px;
  color: var(--text-light);
}

.empty-cart p {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 30px;
}

.empty-cart a {
  color: #000;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 24px;
  border: 2px solid #000;
  border-radius: 6px;
  display: inline-block;
  transition: all 0.3s;
}

.empty-cart a:hover {
  background-color: #000;
  color: #fff;
}

/* ===== PRODUCT PAGE ===== */
.product-container {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #e0e0e0;
  padding: 40px;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.product-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  object-fit: cover;
}

.product-details h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #000;
  line-height: 1.3;
}

.product-description {
  color: #666;
  line-height: 1.8;
  margin-bottom: 30px;
  font-size: 15px;
}

.product-price {
  font-size: 42px;
  font-weight: 700;
  color: #000;
  margin-bottom: 30px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.price-label {
  font-size: 14px;
  color: #999;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.form-row .form-group {
  margin-bottom: 0;
}

.form-row .form-group:first-child {
  flex: 2;
}

.form-row .form-group:last-child {
  flex: 1;
}

.quantity-input,
.size-select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.3s;
  background-color: #fff;
  cursor: pointer;
}

.quantity-input:focus,
.size-select:focus {
  outline: none;
  border-color: #000;
}

.product-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.info-section {
  padding-top: 30px;
  border-top: 2px solid #e0e0e0;
  margin-top: 30px;
}

.info-section h3 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #666;
  margin-bottom: 10px;
}

.info-section p {
  color: #555;
  line-height: 1.6;
  font-size: 14px;
}

/* ===== CART TOAST ===== */
.cart-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #000;
  color: #fff;
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid #e0e0e0;
}

.cart-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== WISHLIST PAGE ===== */
.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.wishlist-card {
  background-color: var(--bg-secondary);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all 0.3s;
  box-shadow: 0 4px 15px var(--shadow);
  display: flex;
  flex-direction: column;
}

.wishlist-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px var(--shadow);
  border-color: var(--text-primary);
}

/* ===== SEARCH PAGE ===== */
.search-header {
  margin-bottom: 50px;
  text-align: center;
  position: relative;
}

.back-btn {
  position: absolute;
  left: 0;
  top: 0;
  color: #000;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s;
  padding: 10px 15px;
  border-radius: 4px;
}

.back-btn:hover {
  color: #666;
  background-color: #f0f0f0;
}

.search-header h1 {
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 10px;
  color: #000;
}

.search-header p {
  font-size: 16px;
  color: #666;
}

.results-count {
  font-size: 14px;
  color: #999;
  margin-bottom: 30px;
}

/* ===== POLICY PAGES ===== */
.policy-section {
  background-color: #fff;
  padding: 30px;
  margin-bottom: 30px;
  border-radius: 8px;
  border-left: 4px solid #ff6b9d;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.policy-section h2 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #000;
}

.policy-section p {
  margin-bottom: 15px;
  color: #555;
  line-height: 1.8;
}

.policy-section ul,
.policy-section ol {
  margin-left: 20px;
  margin-bottom: 15px;
}

.policy-section li {
  margin-bottom: 10px;
  color: #555;
  line-height: 1.8;
}

.policy-section strong {
  color: #000;
  font-weight: 600;
}

.highlight-box {
  background-color: #fff9fa;
  border: 2px solid #ff6b9d;
  padding: 20px;
  border-radius: 6px;
  margin: 20px 0;
}

.highlight-box strong {
  color: #ff6b9d;
}

.steps-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0;
}

.step-card {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 6px;
  border-top: 3px solid #ff6b9d;
}

.step-card h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #000;
}

.step-card p {
  font-size: 14px;
  color: #666;
}

.cta-button {
  display: inline-block;
  background-color: #000;
  color: #fff;
  padding: 12px 30px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  margin-top: 20px;
}

.cta-button:hover {
  background-color: #333;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  main {
    padding: 30px 20px;
  }

  .page-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .hero {
    padding: 50px 20px;
  }

  .hero-title {
    font-size: 32px;
  }

  .category-header h1 {
    font-size: 36px;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
  }

  .cart-container {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
    top: auto;
  }

  .cart-table thead {
    display: none;
  }

  .cart-table,
  .cart-table tbody,
  .cart-table tr {
    display: block;
    width: 100%;
  }

  .cart-table tbody tr {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px var(--shadow);
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    grid-template-areas:
      "check product product"
      "check size qty"
      "check action action";
    gap: 10px 12px;
  }

  .cart-table td {
    border: none;
    padding: 0;
  }

  .cart-cell-check {
    grid-area: check;
    padding-top: 6px;
  }

  .cart-cell-product {
    grid-area: product;
  }

  .cart-cell-size {
    grid-area: size;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  .cart-cell-qty {
    grid-area: qty;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .cart-cell-action {
    grid-area: action;
    display: flex;
    justify-content: flex-end;
  }

  .cart-cell-price,
  .cart-cell-subtotal {
    display: none;
  }

  .cart-product {
    display: flex;
    gap: 12px;
    align-items: flex-start;
  }

  .cart-product-image {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
  }

  .cart-product-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
  }

  .cart-product-meta {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
  }

  .cart-product-price {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
  }

  .qty-input {
    width: 40px;
  }

  .qty-btn {
    width: 24px;
    height: 24px;
    font-size: 14px;
  }

  .cart-cell-size .size-select-cart {
    width: 100%;
    max-width: 140px;
  }

  .remove-btn {
    width: 32px;
  }

  .product-container {
    padding: 25px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .product-details h1 {
    font-size: 24px;
  }

  .product-price {
    font-size: 32px;
  }

  .product-actions {
    flex-direction: column;
  }

  .search-header h1 {
    font-size: 28px;
    margin-top: 50px;
  }

  .back-btn {
    position: static;
    display: block;
    margin-bottom: 20px;
  }

  .steps-container {
    grid-template-columns: 1fr;
  }

  .form-row {
    flex-direction: column;
  }

  .form-row .form-group {
    flex: 1 !important;
  }

  .info-section {
    padding-top: 20px;
  }
}

/* ===== MOBILE PHONE STYLES (< 480px) ===== */
@media (max-width: 480px) {
  .product-image {
    height: 120px;
  }
  /* Make Shop By Category much smaller on phones */
  .categories-section {
    margin: 40px auto;
    padding: 0 12px;
  }

  .section-title {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 16px;
  }

  .category-card {
    border-radius: 6px;
  }

  .category-image {
    height: 80px;
    font-size: 36px;
  }

  .category-info {
    padding: 8px 10px;
  }

  .category-name {
    font-size: 14px;
  }

  .category-description {
    display: none;
  }
}