/* ====================================
   Global & Base Styles
==================================== */
html {
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
  }
  
  body {
    font-family: "Times New Roman", Times, serif;
    margin: 0;
    padding: 0;
    background: #f8f8f8;
    color: #333;
    line-height: 1.6;
  }
  
  /* Container for centering content */
  .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  /* ====================================
     Header & Navigation
  ==================================== */
  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #222;
  }
  
  .logo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-right: 1rem;
  }
  
  header h1 {
    margin: 0;
    font-size: 1.8rem;
    color: #fff;
  }
  
  /* Navigation Links */
  nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1rem;
  }
  
  nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
  }
  
  nav ul li a:hover,
  nav ul li a.active {
    text-decoration: underline;
  }
  
  /* ====================================
     Trademark (TM) Styling
  ==================================== */
  .tm {
    display: inline-block;
    border: 1px solid currentColor; /* Matches the text color */
    border-radius: 50%;             /* Circular shape */
    padding: 0.1em 0.3em;           /* Adjust padding for circle size */
    font-size: 0.6em;               /* Smaller than surrounding text */
    vertical-align: super;          /* Superscript alignment */
    line-height: 1;
  }
  
  /* ====================================
     Hero Section (Index Page)
  ==================================== */
  .hero {
    position: relative;
    height: 60vh;
    background: url('../images/premium-guitar.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .hero-overlay {
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    color: #fff;
  }
  
  .hero-overlay h1 {
    font-size: 3.5rem;
    margin: 0;
    color: #d4af37; /* Luxurious gold color */
    font-family: "Times New Roman", Times, serif;
  }
  
  .hero-overlay p {
    font-size: 1.2rem;
    margin-top: 0.5rem;
    font-family: Arial, sans-serif; /* Complimentary sans-serif font */
    color: #fff;
  }
  
  /* Override hero overlay links to use dark black */
  .hero-overlay a {
    color: #000; /* Dark black color */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
  }
  
  .hero-overlay a:hover {
    color: #333;
  }
  
  /* ====================================
     Project Description (Index Page)
  ==================================== */
  .project-description {
    padding: 2rem 0;
    background: #fff;
  }
  
  .project-description p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }
  
  /* ====================================
     Products Section
  ==================================== */
  .products-section {
    padding: 1.5rem 0;  /* Reduced vertical padding */
    background: #fff;
  }
  
  .products-section h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2rem;
    color: #222;
  }
  
  .product-grid {
    display: grid;
    gap: 1rem; /* Reduced gap */
    grid-template-columns: repeat(2, 1fr);  /* Force two columns */
    padding: 0 1rem;
  }
  
  /* Product Item with hover effects */
  .product-item {
    background: #fff;
    border: 1px solid #ddd;
    padding: 0.5rem; /* Reduced padding */
    text-align: center;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .product-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  }
  
  /* Product Image - Fixed size for uniformity */
  .product-image img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
  }
  
  /* Optional overlay for short description on hover */
  .product-item .product-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 0.9rem;
  }
  
  .product-item:hover .product-info {
    opacity: 1;
  }
  
  /* Change product title and price color on hover for readability */
  .product-item:hover h3,
  .product-item:hover .price {
    color: #fff;
  }
  
  /* Product Title, Price & Actions */
  .product-item h3 {
    margin: 0.5rem 0;
    font-size: 1.2rem;
    color: #222;
  }
  
  .product-item .price {
    color: #0056b3;
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  
  .product-actions {
    margin-top: 0.5rem;
  }
  
  .details-btn,
  .cart-btn {
    background: #0056b3;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s ease;
    margin-right: 0.5rem;
  }
  
  .details-btn:hover,
  .cart-btn:hover {
    background: #003f8c;
  }
  
  /* ====================================
     Contact Section
  ==================================== */
  .contact-us {
    padding: 2rem 0;
    background: #f7f7f7;
  }
  
  .contact-header {
    text-align: center;
    margin-bottom: 1rem;
  }
  
  .contact-logo {
    width: 50px;
    height: 50px;
    object-fit: cover;
    display: block;
    margin: 0 auto 0.5rem;
  }
  
  .contact-us h2 {
    font-size: 2rem;
    margin: 0;
    color: #222;
  }
  
  .contact-us form {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
  }
  
  .form-group {
    margin-bottom: 1rem;
  }
  
  .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
  }
  
  .form-group input,
  .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
  }
  
  /* ====================================
     Footer
  ==================================== */
  footer {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 1rem;
  }
  
  /* ====================================
     Responsive Tweaks
  ==================================== */
  @media (max-width: 600px) {
    nav ul {
      flex-direction: column;
    }
    .hero-overlay h1 {
      font-size: 2rem;
    }
    .hero-overlay p {
      font-size: 1rem;
    }
    .product-item h3 {
      font-size: 1.1rem;
    }
    .product-item .price {
      font-size: 1rem;
    }
  }
  
/* ====================================
   Product Detail Page Styles
==================================== */
.product-detail {
    padding: 2rem 0;
    background: #fff;
  }
  
  /* Two-column layout for product detail on wider screens */
  @media (min-width: 768px) {
    .product-detail-container {
      display: flex;
      flex-wrap: nowrap;
      align-items: flex-start;
      gap: 2rem;
    }
    
    /* Left Column: Product Gallery */
    .product-gallery {
      flex: 0 0 40%;
      text-align: center;
      position: relative;
    }
    
    /* Right Column: Product Information */
    .product-info-detail {
      flex: 0 0 60%;
      text-align: left !important;
    }
  }
  
  /* For screens smaller than 768px, stack vertically */
  @media (max-width: 767px) {
    .product-detail-container {
      display: block;
    }
  }
  
  /* Carousel for Product Images with fixed dimensions */
  .carousel {
    position: relative;
    width: 100%;
    max-width: 400px;  /* Fixed width */
    height: 300px;     /* Fixed height */
    margin: 0 auto;
    overflow: hidden;
    background: #000;  /* Fallback background */
  }
  
  /* All carousel images are forced to the same size */
  .carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the container */
    opacity: 0;
    transition: opacity 0.5s ease;
  }
  
  .carousel-image.active {
    opacity: 1;
    position: relative; /* Active image flows normally */
  }
  
  /* Carousel Controls: fixed at the bottom of the carousel */
  .carousel-controls {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
  }
  
  .carousel-controls button {
    background: rgba(0,86,179,0.8);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s ease;
  }
  
  .carousel-controls button:hover {
    background: rgba(0,86,179,1);
  }
  
  /* ====================================
     Fixed Footer & Main Content Padding
  ==================================== */
  footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #222;
    color: #fff;
    text-align: center;
    padding: 1rem;
    z-index: 1000;
  }
  
  main {
    padding-bottom: 80px;
  }  
  /* ====================================
     Fixed Footer & Main Content Padding
  ==================================== */
  footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #222;
    color: #fff;
    text-align: center;
    padding: 1rem;
    z-index: 1000;
  }
  
  main {
    padding-bottom: 80px;
  }