/* Base Styles for the product detail page */
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            background-color: #FFFFFF;
            color: #333; /* Ensure a default dark text color for body */
        }
        .container-detail {
            width: 40%; /* Default for larger screens */
            max-width: 800px; /* Max width for larger screens */
            margin: 20px auto;
            background-color: #fff;
            border-radius: 10px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            padding: 20px;
            box-sizing: border-box; /* Include padding in width */
            margin-top: 100px;
        }
        .header-detail {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-bottom: 15px;
            border-bottom: 1px solid #eee;
            margin-bottom: 20px;
        }
        .header-detail .home-icon,
        .header-detail .cart-icon {
            font-size: 24px;
            text-decoration: none;
            color: #333;
        }
        .header-detail .cart-icon {
            position: relative;
        }
        .header-detail .cart-count {
            position: absolute;
            top: -10px;
            right: -10px;
            background-color: red;
            color: white;
            border-radius: 50%;
            padding: 2px 6px;
            font-size: 12px;
            min-width: 12px; /* Ensure circular shape for single digits */
            text-align: center;
        }
        .product-image-display {
            text-align: center;
            margin-bottom: 30px;
        }
        .product-image-display img {
            max-width: 30%; /* Default for larger screens */
            height: auto;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }
        h2 {
            text-align: center;
            margin-bottom: 20px;
            font-size: 1.8em; /* Responsive font size */
            color: #333; /* Ensure product title is dark */
        }

        /* Accordion Styles */
        .accordion-item {
            margin-bottom: 10px; /* Space between accordion items */
        }
        .accordion-header {
            font-weight: bold;
            font-size: 1.1em;
            color: #333 !important; /* Force dark color for headers */
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px;
            background-color: #FFFFFF;
            border-radius: 8px;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }
        .accordion-header:hover {
            background-color: #e6e6e6;
        }
        .accordion-header .arrow {
            transition: transform 0.3s ease;
            transform: rotate(180deg); /* Default for open state: points UP */
            color: #333 !important;
        }
        /* When header is active (collapsed state), rotate arrow to point DOWN */
        .accordion-header.active .arrow {
            transform: rotate(0deg);
        }
        .accordion-content {
            background-color: #FFFFFF;
            padding: 15px; /* Default padding for open state */
            border-bottom-left-radius: 8px;
            border-bottom-right-radius: 8px;
            box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
            max-height: 500px; /* Default max-height for open state (adjust as needed) */
            overflow: hidden; /* Still needed for smooth collapse transition */
            transition: max-height 0.3s ease-out, padding 0.3s ease-out; /* Smooth transition */
            color: #555; /* Ensure content text is dark */
        }
        
        /* When content is collapsed */
        .accordion-content.collapsed {
            max-height: 0;
            padding: 0 15px; /* Padding for collapsed state */
        }

        /* Specific Content Styles */
        .nutrition-facts ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        .nutrition-facts li {
            padding: 5px 0;
            border-bottom: 1px dotted #eee;
        }
        .nutrition-facts li:last-child {
            border-bottom: none;
        }
        .reviews-section .accordion-content {
             padding-bottom: 0;
        }
        .overall-rating {
            font-size: 2em;
            font-weight: bold;
            color: #ffcb05;
        }
        .stars {
            color: #ffcb05;
            font-size: 1.2em;
            margin-right: 5px;
        }
        .review-bars {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-top: 15px;
        }
        .review-bar-row {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .review-bar-row .star-count {
            width: 20px;
            text-align: right;
            font-weight: bold;
            color: #333; /* Ensure star count numbers are dark */
        }
        .review-bar-row .bar-container {
            flex-grow: 1;
            background-color: #eee;
            border-radius: 5px;
            height: 10px;
            overflow: hidden;
        }
        .review-bar-row .bar-fill {
            height: 100%;
            background-color: #ffcb05;
            border-radius: 5px;
        }
        .review-bar-row .review-count {
            width: 20px;
            text-align: left;
            color: #333; /* Ensure review count numbers are dark */
        }
    
        .customer-review {
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid #eee;
        }
        .customer-review .stars {
            color: #ffcb05;
        }
        .customer-review .reviewer-name {
            font-weight: bold;
            margin-top: 5px;
            color: #333; /* Ensure reviewer name is dark */
        }
        .customer-review .review-text {
            margin-top: 5px;
            color: #555; /* Ensure review text is dark */
        }
        

        /* --- Media Queries for Responsive Design --- */

        /* Extra Small devices (phones, portrait and landscape) */
        @media (max-width: 480px) {
            .container-detail {
                width: 100%; /* Full width on smallest phones */
                margin: 10px 0;
                border-radius: 0;
                box-shadow: none; /* Remove shadow for cleaner look */
                padding: 10px;
            }
            .product-image-display img {
                max-width: 40%; /* Make image larger on small phones */
            }
            h2 {
                font-size: 1.3em;
            }
            .accordion-header {
                font-size: 0.9em;
                padding: 10px;
                border-radius: 0;
            }
            .accordion-content {
                padding: 10px;
                border-bottom-left-radius: 0;
                border-bottom-right-radius: 0;
            }
            .accordion-content.collapsed {
                padding: 0 10px;
            }
        }

        /* Small Tablets (e.g., Nest Hub, larger phones in landscape, very small tablets) */
        @media (min-width: 481px) and (max-width: 768px) {
            .container-detail {
                width: 90%; /* Wider on tablets */
                padding: 15px;
                margin-top: 40px;
            }
            .product-image-display img {
                max-width: 40%; /* Slightly larger image */
            }
            h2 {
                font-size: 1.6em;
            }
            .accordion-header {
                font-size: 1.05em;
                padding: 12px;
            }
            .accordion-content {
                padding: 12px;
            }
        }
@media only screen and (min-width: 800px) and (max-width: 880px) and (min-height: 1200px) and (max-height: 1300px) and (orientation: portrait) {
  .header-red .circle {
    width: 300px;
    height: 300px;
    top: 95%;
  }

  .header-red .circle img {
    width: 130px;
    margin-top: 60px;
  }

  .container-detail {
    width: 95%;
    max-width: 820px;
    margin: 30px auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
  }

  .product-image-display img {
    max-width: 30%;
    display: block;
    margin: 0 auto;
  }

  h2 {
    font-size: 1.6em;
    text-align: center;
  }

  .accordion-header {
    font-size: 1em;
    padding: 10px;
  }

  .accordion-content {
    padding: 12px;
  }
}

@media only screen and (max-width: 1024px) and (max-height: 600px) {
  .header-red .circle {
    width: 220px;
    height: 220px;
    top: 90%;
  }

  .header-red .circle img {
    width: 120px;
    margin-top: 60px;
  }

  .container-detail {
    width: 100%;
    padding: 10px;
    margin-top: 20px;
  }

  .product-image-display img {
    max-width: 30%;
    margin: 0 auto;
    display: block;
  }

  h2 {
    font-size: 1.6em;
    text-align: center;
  }

  .accordion-header {
    font-size: 0.95em;
    padding: 8px;
  }

  .accordion-content {
    padding: 10px;
  }

  /* Optional: Adjust red button layout if needed */
  .category-button {
    font-size: 0.85em;
    padding: 8px 12px;
    margin: 5px;
  }
}
 /* iPad Air (portrait & landscape) */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
  /* Styles here */

    .header-red .circle {
    width: 240px;
    height: 240px;
    top: 90%;
  }

  .header-red .circle img {
    width: 150px;
    margin-top: 60px;
  }

  .container-detail {
    width: 90%;
    padding: 10px;
    margin-top: 20px;
  }

  .product-image-display img {
    max-width: 30%;
    margin: 0 auto;
    display: block;
  }

  h2 {
    font-size: 1.6em;
    text-align: center;
  }

  .accordion-header {
    font-size: 0.95em;
    padding: 8px;
  }

  .accordion-content {
    padding: 10px;
  }

  /* Optional: Adjust red button layout if needed */
  .category-button {
    font-size: 0.85em;
    padding: 8px 12px;
    margin: 5px;
  }

}

/* iPad Air (portrait & landscape) */
@media only screen and (min-width: 800px) and (max-width: 1280px) {
  /* Styles here */

  /* Styles here */

    .header-red .circle {
    width: 240px;
    height: 240px;
    top: 90%;
  }

  .header-red .circle img {
    width: 100px;
    margin-top: 80px;
  }

  .container-detail {
    width: 90%;
    padding: 10px;
    margin-top: 50px;
  }

  .product-image-display img {
    max-width: 30%;
    margin: 0 auto;
    display: block;
  }

  h2 {
    font-size: 1.6em;
    text-align: center;
  }

  .accordion-header {
    font-size: 0.95em;
    padding: 8px;
  }

  .accordion-content {
    padding: 10px;
  }

  /* Optional: Adjust red button layout if needed */
  .category-button {
    font-size: 0.85em;
    padding: 8px 12px;
    margin: 5px;
  }
}
