:root {
    --bg-cream: #f9f6ef;
    --bg-light-blue: #f2f8f9;
    --primary-color: #0b806d; /* Teal from the mockup button */
    --primary-hover: #096859;
    --text-main: #111111;
    --text-muted: #555555;
    --border-color: #d1d9d9;
    --card-bg: #e8f0ef; /* Addon card background */
    --white: #ffffff;
    --star-color: #0b806d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-cream);
}

.page-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    background-color: var(--bg-cream);
}

/* Top Section (Cream) */
.top-section {
    padding: 30px 6%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.nav-links a {
    margin: 0 15px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 15px;
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-icon {
    position: relative;
    cursor: pointer;
}

.cart-count {
    display: none;
}

/* Product Hero */
.product-hero {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.product-gallery {
    flex: 1;
}

.main-image {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 15px;
    object-fit: cover;
    height: 450px;
}

.image-thumbnails {
    display: flex;
    gap: 12px;
}

.image-thumbnails img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
}

.image-thumbnails img.active {
    border: 2px solid var(--primary-color);
}

.product-info {
    flex: 1;
    padding-top: 10px;
}

.product-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.product-subtitle {
    font-size: 18px;
    color: var(--text-main);
    margin-bottom: 15px;
}

.reviews {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
}

.stars {
    color: var(--star-color);
    font-size: 18px;
    letter-spacing: 2px;
}

.product-price {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 20px;
}

.product-description {
    font-size: 15px;
    color: var(--text-main);
}

.product-description ul {
    margin-top: 15px;
    padding-left: 20px;
}

.product-description li {
    margin-bottom: 6px;
}

/* Bottom Section (Light Blue) */
.bottom-section {
    background-color: var(--bg-light-blue);
    padding: 60px 6%;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

.config-container {
    max-width: 100%;
}

.config-row {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.config-group {
    flex: 1;
}

.group-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 15px;
}

.premium-select {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: transparent;
    font-size: 15px;
    outline: none;
    cursor: pointer;
}

.customization-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 32px;
    cursor: pointer;
    font-size: 15px;
    user-select: none;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 50%; /* Circle checkbox */
}

.custom-checkbox input:checked ~ .checkmark {
    border-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 3px;
    width: 4px;
    height: 8px;
    border: solid var(--primary-color);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

/* Addons Grid */
.addons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.addon-card {
    display: block;
    cursor: pointer;
}

.addon-card input[type="checkbox"] {
    display: none;
}

.addon-content {
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.addon-card input[type="checkbox"]:checked + .addon-content {
    background-color: var(--card-bg);
    border-color: var(--primary-color);
}

.addon-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.addon-icon {
    font-size: 28px;
}

.checkbox-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: all 0.2s ease;
}

.checkbox-circle svg {
    width: 14px;
    height: 14px;
}

.addon-card input[type="checkbox"]:checked + .addon-content .checkbox-circle {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.addon-info {
    flex-grow: 1;
}

.addon-name {
    display: block;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
}

.addon-desc {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.addon-price {
    font-weight: 600;
    font-size: 16px;
    display: block;
}

/* Footer Summary */
.divider {
    height: 1px;
    background-color: var(--border-color);
    margin-bottom: 30px;
}

.checkout-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-label {
    font-size: 16px;
    color: var(--text-main);
    display: block;
    margin-bottom: 4px;
}

.price-value {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

.price-includes {
    font-size: 14px;
    color: var(--text-muted);
}

.add-to-cart-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50px; /* Pill shape */
    padding: 16px 45px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.add-to-cart-btn:hover {
    background-color: var(--primary-hover);
}

@media (max-width: 900px) {
    .product-hero, .config-row {
        flex-direction: column;
    }
    .addons-grid {
        grid-template-columns: 1fr;
    }
    .checkout-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .add-to-cart-btn {
        width: 100%;
    }
}
