* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #333;
    color: white;
}

/* Header Section */
.product-header {
    min-height: 50vh;
    width: 100%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../../Images/Coffee_Collections.jpeg");
    background-position: center;
    background-size: cover;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.product-header h1 {
    font-family: 'Alfa Slab One', serif;
    font-size: 70px;
    font-weight: bold;
    color: white;
    text-align: center;
}

nav {
    display: flex;
    padding: 2% 6%;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: absolute;
    top: 0;
}

.logo-container {
    position: absolute;
    top: 0px;
    left: 45px;
    background-color: white;
    border-radius: 2px;
    padding: 10px;
    width: 250px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    width: 400px;
    height: auto;
}

.nav-links {
    flex: 1;
    text-align: right;
}

.nav-links ul li {
    list-style: none;
    display: inline-block;
    padding: 100px 15px;
    position: relative;
    margin-top: -55px;
    left: 95px;
    bottom: 28px;
}

.nav-links ul li a {
    color: white;
    text-decoration: none;
    font-size: 20px;
}

.nav-links ul li::after {
    content: "";
    width: 0%;
    height: 4px;
    transition: 0.5s;
    border-radius: 2px;
    display: block;
    background: white;
    margin: auto;
}

.nav-links ul li:hover::after {
    width: 100%;
}

/* Product Details Section */
.product-details {
    background-color: #222;
    padding: 60px 8%;
}

.product-container {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.product-image {
    flex: 0 0 45%;
    background-color: #3a3a3a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.product-image img {
    width: 100%;
    height: auto;
    display: block;
}

.product-info {
    flex: 0 0 50%;
}

.product-info h2 {
    font-family: 'Alfa Slab One', serif;
    font-size: 38px;
    margin-bottom: 10px;
    color: #f8f8f8;
}

.product-origin {
    font-size: 18px;
    color: #bb9b6d;
    margin-bottom: 20px;
    font-weight: 500;
}

.product-description {
    font-size: 16px;
    line-height: 1.6;
    color: #d8d8d8;
    margin-bottom: 20px;
    text-align: justify;
    hyphens: auto;
}

.product-info-detail {
    font-size: 16px;
    color: #999;
    margin-bottom: 5px;
}

.product-price {
    font-size: 28px;
    font-weight: 700;
    color: #e7c78e;
    margin: 20px 0;
}

.product-options {
    margin-top: 30px;
}

.product-options h3 {
    font-size: 18px;
    color: #f5f5f5;
    margin-bottom: 12px;
    font-weight: 500;
}

/* Size Options */
.size-options {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.size-options label {
    display: inline-block;
    cursor: pointer;
}

.size-options input[type="radio"] {
    display: none;
}

.size-option {
    display: inline-block;
    padding: 8px 20px;
    background-color: #3a3a3a;
    border-radius: 25px;
    color: #d8d8d8;
    transition: all 0.3s ease;
}

.size-options input[type="radio"]:checked + .size-option {
    background-color: #bb9b6d;
    color: #1a1a1a;
}

/* Custom Options */
.custom-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.custom-options label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.custom-options input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #bb9b6d;
}

/* Quantity Selector */
.quantity-selector {
    margin-bottom: 30px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    width: 120px;
}

.quantity-btn {
    width: 35px;
    height: 35px;
    background-color: #3a3a3a;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.quantity-btn:hover {
    background-color: #555;
}

.quantity-input {
    width: 50px;
    height: 35px;
    text-align: center;
    border: 1px solid #3a3a3a;
    background-color: #222;
    color: white;
    font-size: 16px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.add-to-cart, .buy-now {
    padding: 12px 25px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart {
    background-color: #3a3a3a;
    color: white;
}

.add-to-cart:hover {
    background-color: #555;
}

.buy-now {
    background-color: #bb9b6d;
    color: #1a1a1a;
}

.buy-now:hover {
    background-color: #d8b78d;
}

/* Product Tabs Section */
.product-tabs {
    background-color: #1a1a1a;
    padding: 50px 8%;
}

.tabs-container {
    max-width: 1000px;
    margin: 0 auto;
}

.tabs {
    display: flex;
    border-bottom: 1px solid #333;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 12px 25px;
    background: none;
    border: none;
    color: #999;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #bb9b6d;
    border-bottom: 3px solid #bb9b6d;
}

.tab-content {
    display: none;
    padding: 10px 0;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    font-size: 22px;
    color: #f5f5f5;
    margin-bottom: 20px;
}

.tab-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #d8d8d8;
    margin-bottom: 15px;
}

.tab-content ul, .tab-content ol {
    margin-left: 25px;
    margin-bottom: 20px;
    color: #d8d8d8;
}

.tab-content li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.nutrition-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.nutrition-table th, .nutrition-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #333;
}

.nutrition-table th {
    color: #bb9b6d;
    width: 150px;
}

.nutrition-note {
    font-size: 14px;
    font-style: italic;
    color: #999;
}

/* Related Products Section */
.related-products {
    background-color: #222;
    padding: 60px 8%;
}

.related-products h2 {
    font-family: 'Alfa Slab One', serif;
    font-size: 32px;
    text-align: center;
    margin-bottom: 40px;
    color: #f5f5f5;
}

.related-items {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.related-item {
    background-color: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    flex: 0 0 calc(33.333% - 20px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.related-item:hover {
    transform: translateY(-5px);
}

.related-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-item h3 {
    font-size: 20px;
    color: #f5f5f5;
    margin: 15px 15px 5px;
}

.related-item p {
    font-size: 18px;
    color: #e7c78e;
    margin: 0 15px 15px;
    font-weight: 700;
}

.view-button {
    display: block;
    background-color: #3a3a3a;
    color: white;
    text-align: center;
    padding: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.view-button:hover {
    background-color: #bb9b6d;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: white;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 3;
}

/* Mobile Responsiveness */
@media only screen and (max-width: 992px) {
    .product-container {
        flex-direction: column;
    }
    
    .product-image, .product-info {
        flex: 0 0 100%;
    }
    
    .related-items {
        flex-wrap: wrap;
    }
    
    .related-item {
        flex: 0 0 calc(50% - 15px);
    }
}

@media only screen and (max-width: 768px) {
    .product-header h1 {
        font-size: 40px;
        margin-top: 80px;
    }
    
    .size-options {
        flex-direction: column;
        gap: 10px;
    }
    
    .tabs {
        flex-direction: column;
        border-bottom: none;
    }
    
    .tab-btn {
        border-bottom: 1px solid #333;
        text-align: left;
    }
    
    .tab-btn.active {
        border-bottom: 1px solid #bb9b6d;
    }
    
    .related-item {
        flex: 0 0 100%;
    }
    
    /* Mobile Menu */
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        background-color: rgba(0, 0, 0, 0.9);
        height: 100vh;
        width: 80%;
        top: 0;
        right: -80%;
        text-align: left;
        z-index: 2;
        transition: 0.3s ease-in-out;
        padding: 60px 20px 20px;
        overflow-y: auto;
    }
    
    .nav-links.active {
        right: 0;
        box-shadow: -5px 0px 15px rgba(0, 0, 0, 0.3);
    }
    
    .nav-links ul li {
        display: block;
        padding: 8px 12px;
        position: static;
        margin: 10px 0;
        left: 0;
        bottom: 0;
    }
    
    .logo-container {
        width: 80px;
        height: 80px;
        left: 20px;
        top: 10px;
    }
    
    .logo {
        width: 100%;
        height: auto;
    }
}