/* ================= GLOBAL RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
}

/* ================= FIRST SECTION / HERO ================= */
.first {
    min-height: 100vh;
    background-image: url("../images/first.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: right bottom;
    position: relative;
    overflow: hidden;
}

/* Header styles */
.header {
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 10;
}

.header-container {
    max-width: 1200px;
    margin: auto;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 32px;
}

.nav {
    display: flex;
    gap: 28px;
}

.nav a {
    text-decoration: none;
    color: #2f3e3b;
    font-size: 15px;
    white-space: nowrap;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-icon {
    background: none;
    border: none;
    cursor: pointer;
}

.search-icon img {
    width: 18px;
}

.nav-shopnow {
    height: 36px;
}

/* Hamburger menu styles */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: #0b3d2e;
}

/* Hero content styles */
.first-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 12%;
    padding-bottom: 14%;
    pointer-events: none;
}

.first-live {
    width: clamp(260px, 40vw, 520px);
}

.first-shop {
    margin-top: 32px;
    pointer-events: auto;
}

.live-shopnow {
    height: clamp(36px, 6vw, 64px);
    transition: transform 0.25s ease;
}

.first-shop:hover .live-shopnow {
    transform: scale(1.05);
}

/* ================= SECOND SECTION / PRODUCTS ================= */
.second {
    padding: 80px 24px;
}

.second-container {
    max-width: 1100px;
    margin: auto;
    display: flex;
    gap: 64px;
    align-items: flex-start;
}

.second-left {
    flex: 1.1;
}

.second-right {
    flex: 0.9;
}

.product-gallery {
    width: 100%;
}

.gallery-main {
    position: relative;
    background: #f4f4f4;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Gallery arrows */
.gallery-arrow {
    position: absolute;
    bottom: 24px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
}

.gallery-arrow.left {
    left: 24px;
}

.gallery-arrow.right {
    right: 24px;
}

.gallery-arrow:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

/* Gallery dots */
.gallery-dots {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.gallery-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.gallery-dots .dot.active {
    background: #000;
    transform: scale(1.2);
}

/* Gallery grid */
.gallery-grid {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.gallery-grid img {
    width: 100%;
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.gallery-grid img.active {
    outline: 2px solid #000;
    outline-offset: 2px;
}

/* Right column wrapper */
.right-wrapper {
    display: flex;
    flex-direction: column;
}

.title-box img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-bottom: 18px;
}

/* Subscription card */
.subscription-card {
    position: relative;
    background: #fff;
    border: 2px solid #d4d4d4;
    border-radius: 5px;
    padding: 12px;
    box-sizing: border-box;
}

.subscription-card.popular {
    padding-top: 48px;
}

.badge {
    position: absolute;
    top: -5px;
    left: 0;
    width: 100%;
}

.badge img {
    width: 100%;
    height: 38px;
}

.badge span {
    position: absolute;
    left: 36%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

.section-title {
    margin: 18px 0 10px;
    color: gray;
}

.radio-group label,
.radio-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    width: 100%;
    color: grey;
}

.radio-group label span:first-of-type,
.radio-row span:first-of-type {
    margin-left: 8px;
}

/* Fragrance options */
.fragrance-options {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
}

.fragrance-options input {
    display: none;
}

.fragrance-options label {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 12px;
    background-color: #f1f1f1;
    padding: 10px;
    cursor: pointer;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.fragrance-options input:checked ~ img {
    outline: 2px solid #000;
    outline-offset: -2px;
    border-radius: 21px;
}

.fragrance-options img {
    width: 60px;
    margin-top: -2px;
}

/* Included rows */
.included-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.included-small {
    width: 21%;
}

.included-large {
    width: 40%;
}

.included-full {
    width: 67%;
}

/* Add to cart image */
.add-to-cart img {
    width: 100%;
    display: block;
    transition: transform 0.25s ease;
    margin-top: 10px;
}

.add-to-cart:hover img {
    transform: scale(1.02);
}

.green-img,
.footer-img {
    width: 100%;
    display: block;
}

.price {
    white-space: nowrap;
    font-weight: 600;
    margin-left: auto;
}

.hidden {
    display: none;
}

/* ================= THIRD SECTION ================= */
.third {
    width: 100%;
    padding: 5px 24px;
    background-color: #fff;
}

.third-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.third-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* ================= GREEN SECTION WITH COUNTERS ================= */
.four {
    width: 100%;
    padding: 80px 24px;
}

.green-wrapper {
    margin: 0 auto;
    position: relative;
}

.green-img {
    width: 100%;
    display: block;
    border-radius: 16px;
}

/* Overlay stats container */
.green-stats {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    text-align: center;
    padding: 0 6%;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.counter {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.stat-item img {
    width: 90px;
    max-width: 100%;
}

/* ================= SECTION FIVE / CTA ================= */
.five {
    padding: 100px 24px;
    background: #ffffff;
}

.five-container {
    max-width: 1100px;
    margin: auto;
    text-align: center;
}

.five-title {
    font-size: clamp(26px, 4vw, 38px);
    margin-bottom: 48px;
    color: #0f3d2e;
    font-weight: 700;
}

/* Table wrapper */
.table-wrapper {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #ffffff;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
}

/* Comparison table base */
.comparison-table {
    width: 100%;
    min-width: 720px;
    border-collapse: separate;
    border-spacing: 0;
}

/* Table header */
.comparison-table thead th {
    padding: 26px 18px;
    background: #fafafa;
    border-bottom: 2px solid rgba(0, 0, 0, 0.12);
    font-weight: 600;
}

.comparison-table th img {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
    display: block;
    margin: 0 auto 8px;
}

.comparison-table th span {
    font-size: 13px;
    color: #444;
}

/* Table cells */
.comparison-table th,
.comparison-table td {
    padding: 22px 18px;
    font-size: 15px;
    color: #111;
    text-align: center;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
}

.comparison-table th:last-child,
.comparison-table td:last-child {
    border-right: none;
}

/* Table body rows */
.comparison-table tbody tr {
    background: #ffffff;
}

.comparison-table tbody tr:nth-child(even) {
    background: #fcfcfc;
}

/* Feature column styling */
.feature {
    text-align: left !important;
    font-weight: 600;
    color: #444;
    background: #fafafa;
}

/* Highlighted GTG column */
.highlight {
    background: linear-gradient(180deg, #e9f6ee, #dff0e8);
    color: #0b3d2e !important;
    font-weight: 700;
}

/* Icons */
.check {
    color: #0b3d2e;
    font-size: 20px;
    font-weight: bold;
}

.cross {
    color: #999;
    font-size: 20px;
}

/* CTA Button */
.five-btn {
    display: inline-block;
    margin-top: 52px;
    padding: 15px 38px;
    background: #0b3d2e;
    color: #ffffff;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
}

.five-btn:hover {
    background: #094233;
}

/* ================= RESPONSIVE STYLES ================= */
/* Up to 900px width */
@media (max-width: 900px) {
    .nav {
        display: none;
        position: absolute;
        top: 72px;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 20px;
    }
    .nav.active { display: flex; } /* Show nav when active */
    .hamburger { display: flex; } /* Show hamburger menu */
    .second-container { flex-direction: column; } /* Stack product section */
    .gallery-grid { grid-template-columns: repeat(3, 1fr); } /* Adjust gallery columns */
}

/* Up to 768px width */
@media (max-width: 768px) {
    .first { min-height: 65vh; } /* Reduce hero height */
    .nav { display: none; position: absolute; top: 72px; width: 100%; background: #fff; flex-direction: column; padding: 20px; }
    .nav.active { display: flex; } /* Show nav when active */
    .hamburger { display: flex; } /* Show hamburger */
    .first-content { padding-left: 20px; } /* Hero content padding */
    .first-live { width: clamp(240px, 80vw, 360px); } /* Hero text image size */
    .live-shopnow { height: clamp(32px, 10vw, 44px); } /* Hero CTA button height */
    .gallery-grid { grid-template-columns: repeat(2, 1fr); } /* Adjust gallery grid */
    .fragrance-options { flex-direction: row; } /* Fragrance options layout */
    .five { padding: 70px 16px; } /* Reduce section padding */
    .five-title { margin-bottom: 36px; } /* Adjust title spacing */
    .comparison-table th, .comparison-table td { padding: 18px 14px; font-size: 14px; } /* Table cells adjust */
}
