:root {
    /* Color Variables */
    --primary-color: #892603;
    --primary-light: #a03b1a;
    --primary-dark: #701e02;
    --secondary-color: #d9ad26;
    --text-color: #333333;
    --text-light: #777777;
    --background-color: #ffffff;
    --background-light: #f9f9f9;
    --background-warm: #f8f5f2;
    --border-color: #e6e6e6;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --error-color: #f44336;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2.5rem;
    
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-display: 'Playfair Display', serif;
    
    /* Other */
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
  }
  
  /* Base Styles */
  body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-light);
    margin: 0;
    padding: 0;
  }
  
  h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-top: 0;
  }
  
  p {
    margin-top: 0;
  }
  
  ul {
    padding-left: 1.2rem;
  }
  
  button {
    cursor: pointer;
  }
  
  /* Main Content */
  main {
    max-width: 1400px;
    margin: 80px auto 0; /* Added top margin of 80px */
    padding: 2rem 1.5rem;
  }

  /* Product Detail Layout */
  .product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2.5rem;
  }
  
  /* Product Images */
  .product-images {
    position: relative;
  }
  
  .main-image {
    width: 100%;
    height: 450px;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    margin-bottom: 1.5rem;
    box-shadow: var(--box-shadow);
  }
  
  .main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
  }
  
  .main-image:hover img {
    transform: scale(1.05);
  }
  
  .thumbnail-images {
    display: flex;
    gap: 1rem;
  }
  
  .thumbnail {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius);
    object-fit: cover;
    cursor: pointer;
    opacity: 0.7;
    border: 2px solid transparent;
    transition: var(--transition);
  }
  
  .thumbnail:hover {
    opacity: 1;
  }
  
  .thumbnail.active {
    opacity: 1;
    border-color: var(--primary-color);
  }
  
  /* Product Info */
  .product-info h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    color: var(--primary-dark);
  }
  
  .product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
    color: var(--secondary-color);
  }
  
  .product-rating span {
    color: var(--text-light);
    margin-left: 0.8rem;
    font-size: 0.9rem;
  }
  
  .product-price {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
  }
  
  .product-description {
    margin-bottom: 2rem;
    color: var(--text-light);
  }
  
  .product-specs {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--background-warm);
    border-radius: var(--border-radius);
  }
  
  .product-specs h3 {
    margin-bottom: 1rem;
    font-family: var(--font-display);
    font-size: 1.3rem;
  }
  
  .product-specs ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
  }
  
  .product-specs li {
    margin-bottom: 0.8rem;
    display: flex;
    flex-wrap: wrap;
  }
  
  .product-specs li strong {
    width: 140px;
    color: var(--text-color);
  }
  
  /* Product Actions */
  .product-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
  }
  
  .quantity-selector {
    display: flex;
    align-items: center;
    height: 46px;
    border-radius: 50px;
    overflow: hidden;
    border: 1px solid var(--border-color);
  }
  
  .quantity-selector button {
    width: 40px;
    height: 100%;
    border: none;
    background-color: var(--background-light);
    color: var(--text-color);
    font-size: 1.2rem;
    transition: var(--transition);
  }
  
  .quantity-selector button:hover {
    background-color: var(--primary-light);
    color: white;
  }
  
  .quantity-selector input {
    width: 50px;
    height: 100%;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    background-color: white;
    font-size: 1rem;
  }
  
  /* Hide input arrows */
  .quantity-selector input::-webkit-outer-spin-button,
  .quantity-selector input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }
  
  .quantity-selector input[type=number] {
    -moz-appearance: textfield;
  }
  
  .btn {
    height: 46px;
    padding: 0 2rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    text-decoration: none;
  }
  
  .btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  }
  
  .wishlist-btn {
    height: 46px;
    padding: 0 1.5rem;
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
  }
  
  .wishlist-btn i {
    margin-right: 0.5rem;
  }
  
  .wishlist-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
  }
  
  .wishlist-btn.active {
    color: var(--primary-color);
    border-color: var(--primary-color);
  }
  
  .wishlist-btn.active i {
    color: var(--primary-color);
  }
  
  /* Product Tabs */
  .product-tabs {
    margin-bottom: 4rem;
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
  }
  
  .tab-buttons {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--background-warm);
  }
  
  .tab-btn {
    padding: 1.2rem 2rem;
    background-color: transparent;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
  }
  
  .tab-btn:hover {
    color: var(--primary-color);
  }
  
  .tab-btn.active {
    color: var(--primary-color);
    font-weight: 600;
  }
  
  .tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
  }
  
  .tab-content {
    padding: 2.5rem;
    display: none;
  }
  
  .tab-content.active {
    display: block;
  }
  
  .tab-content h3 {
    font-family: var(--font-display);
    margin-bottom: 1.2rem;
    font-size: 1.5rem;
    color: var(--primary-dark);
  }
  
  /* Reviews Tab */
  .review-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
  }
  
  .avg-rating {
    font-size: 4rem;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1;
  }
  
  .rating-bars {
    flex-grow: 1;
    max-width: 500px;
  }
  
  .rating-bar {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
  }
  
  .rating-bar span {
    width: 70px;
    font-size: 0.9rem;
    color: var(--text-light);
  }
  
  .rating-bar span:last-child {
    width: 50px;
    text-align: right;
  }
  
  .bar-container {
    flex-grow: 1;
    height: 8px;
    background-color: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 1rem;
  }
  
  .bar {
    height: 100%;
    background-color: var(--secondary-color);
    border-radius: 10px;
  }
  
  .customer-reviews {
    margin-bottom: 3rem;
  }
  
  .review {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
  }
  
  .review:last-of-type {
    border-bottom: none;
  }
  
  .review-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
  }
  
  .reviewer-name {
    font-weight: 600;
  }
  
  .review-rating {
    color: var(--secondary-color);
  }
  
  .review-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-left: auto;
  }
  
  .review-text {
    color: var(--text-light);
  }
  
  .write-review {
    background-color: var(--background-warm);
    padding: 2rem;
    border-radius: var(--border-radius);
  }
  
  .form-group {
    margin-bottom: 1.5rem;
  }
  
  .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
  }
  
  .star-rating {
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
  }
  
  .star-rating i {
    margin-right: 0.3rem;
    transition: var(--transition);
  }
  
  .star-rating i:hover {
    color: var(--secondary-color);
  }
  
  .star-rating i.selected {
    color: var(--secondary-color);
  }
  
  textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    resize: vertical;
    font-family: var(--font-primary);
    transition: var(--transition);
  }
  
  textarea:focus {
    outline: none;
    border-color: var(--primary-color);
  }
  
  /* Shipping Tab */
  #shipping ul {
    margin-bottom: 2rem;
  }
  
  #shipping li {
    margin-bottom: 0.8rem;
  }
  
  /* Related Products */
  .related-products {
    margin-bottom: 4rem;
  }
  
  .related-products h2 {
    font-family: var(--font-display);
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: var(--primary-dark);
    position: relative;
  }
  
  .related-products h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .product-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
  }
  
  .product-item {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
    position: relative;
  }
  
  .product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
  }
  
  .product-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
  }
  
  .product-item:hover img {
    transform: scale(1.05);
  }
  
  .product-item h3 {
    margin: 1.2rem 0 0.5rem;
    font-size: 1.2rem;
  }
  
  .product-item p {
    margin-bottom: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
  }
  
  .product-item .btn {
    margin-bottom: 1.5rem;
    padding: 0.5rem 1.5rem;
    height: auto;
    font-size: 0.9rem;
  }
  
  /* Alert Notification */
  .alert {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    background-color: white;
    border-left: 4px solid var(--success-color);
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    transform: translateX(120%);
    transition: transform 0.3s ease-out;
    z-index: 1000;
  }
  
  .alert.show {
    transform: translateX(0);
  }
  
  .alert-icon {
    font-size: 1.2rem;
    color: var(--success-color);
    margin-right: 1rem;
  }
  
  /* Responsive Design */
  @media (max-width: 992px) {
    .product-detail-container {
      grid-template-columns: 1fr;
      gap: 2rem;
      padding: 1.5rem;
    }
    
    .main-image {
      height: 400px;
    }
    
    .tab-btn {
      padding: 1rem;
    }
    
    .tab-content {
      padding: 1.5rem;
    }
    
    .review-stats {
      flex-direction: column;
      gap: 1.5rem;
    }
  }
  
  @media (max-width: 768px) {
    main {
      padding: 1rem;
    }
    
    .product-actions {
      flex-direction: column;
      align-items: flex-start;
    }
    
    .quantity-selector {
      width: 100%;
    }
    
    .btn, .wishlist-btn {
      width: 100%;
    }
    
    .tab-buttons {
      flex-direction: column;
    }
    
    .tab-btn {
      width: 100%;
      text-align: left;
      padding: 1rem 1.5rem;
    }
    
    .tab-btn.active::after {
      height: 100%;
      width: 3px;
      top: 0;
    }
    
    .tab-content {
      padding: 1.5rem 1rem;
    }
  }
  
  @media (max-width: 576px) {
    .product-info h1 {
      font-size: 1.8rem;
    }
    
    .main-image {
      height: 300px;
    }
    
    .thumbnail {
      width: 60px;
      height: 60px;
    }
    
    .product-specs li strong {
      width: 100%;
      margin-bottom: 0.2rem;
    }
    
    .review-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 0.5rem;
    }
    
    .review-date {
      margin-left: 0;
    }
  }
  
  /* Animation Keyframes */
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  @keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
  
  /* Animation Classes */
  .animate-fade {
    animation: fadeIn 0.8s ease forwards;
  }
  
  .animate-slide {
    animation: slideUp 0.8s ease forwards;
  }