/* =====================================================
   BETTAHUB HOME PAGE
   FRONTEND PROTOTYPE
===================================================== */


/* =====================================================
   RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    font-family: "Inter", Arial, sans-serif;
    background: #f8fafc;
    color: #17202a;
    line-height: 1.6;
}


a {
    text-decoration: none;
    color: inherit;
}


button {
    font-family: inherit;
    cursor: pointer;
}


.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}


/* =====================================================
   HEADER
===================================================== */

header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(255, 255, 255, 0.95);

    backdrop-filter: blur(15px);

    border-bottom: 1px solid #e5e7eb;
}


.navbar {
    height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


/* LOGO */

.logo {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 20px;
    font-weight: 800;

    color: #0f766e;
}


.logo-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #ccfbf1;

    font-size: 21px;
}


/* NAVIGATION */

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}


.nav-links a {
    color: #64748b;

    font-size: 13px;
    font-weight: 600;

    transition: 0.2s;
}


.nav-links a:hover,
.nav-links a.active {
    color: #0f766e;
}


/* NAV ACTIONS */

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}


.icon-button {
    width: 40px;
    height: 40px;

    border: none;
    border-radius: 10px;

    background: #f1f5f9;

    position: relative;

    font-size: 16px;
}


.icon-button:hover {
    background: #ccfbf1;
}


.cart-count {
    position: absolute;

    top: -5px;
    right: -5px;

    width: 17px;
    height: 17px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #0f766e;
    color: white;

    font-size: 9px;
    font-weight: 700;
}


.login-button {
    padding: 11px 20px;

    border-radius: 10px;

    background: #0f766e;
    color: white;

    font-size: 13px;
    font-weight: 700;

    transition: 0.2s;
}


.login-button:hover {
    background: #115e59;
    transform: translateY(-1px);
}


/* =====================================================
   HERO
===================================================== */

.hero {
    min-height: 600px;

    background:
        radial-gradient(
            circle at 80% 30%,
            rgba(45, 212, 191, 0.18),
            transparent 30%
        ),

        linear-gradient(
            135deg,
            #ecfdf5,
            #f8fafc
        );

    overflow: hidden;
}


.hero-content {
    min-height: 600px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    align-items: center;

    gap: 60px;
}


/* HERO TEXT */

.hero-text {
    max-width: 590px;
}


.hero-label {
    display: inline-block;

    padding: 7px 12px;

    border-radius: 50px;

    background: #ccfbf1;

    color: #0f766e;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.08em;

    margin-bottom: 20px;
}


.hero h1 {
    font-size: clamp(45px, 5vw, 72px);

    line-height: 1.02;

    letter-spacing: -0.05em;

    color: #17202a;
}


.hero h1 span {
    color: #0f766e;
}


.hero p {
    max-width: 520px;

    margin-top: 22px;

    color: #64748b;

    font-size: 15px;

    line-height: 1.8;
}


/* HERO BUTTONS */

.hero-buttons {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-top: 30px;
}


.primary-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 14px 22px;

    border-radius: 11px;

    background: #0f766e;

    color: white;

    font-size: 13px;
    font-weight: 800;

    transition: 0.2s;
}


.primary-button:hover {
    background: #115e59;

    transform: translateY(-2px);
}


.secondary-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 13px 21px;

    border: 1px solid #cbd5e1;

    border-radius: 11px;

    background: white;

    color: #334155;

    font-size: 13px;
    font-weight: 700;

    transition: 0.2s;
}


.secondary-button:hover {
    border-color: #0f766e;

    color: #0f766e;
}


/* =====================================================
   HERO VISUAL
===================================================== */

.hero-visual {
    min-height: 500px;

    display: flex;

    align-items: center;
    justify-content: center;

    position: relative;
}


.fish-container {
    width: 390px;
    height: 390px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        radial-gradient(
            circle,
            #99f6e4,
            #5eead4,
            #0f766e
        );

    box-shadow:
        0 30px 80px
        rgba(15, 118, 110, 0.25);
}


.fish {
    font-size: 170px;

    transform: scaleX(-1);

    filter:
        drop-shadow(
            0 20px 20px
            rgba(0, 0, 0, 0.25)
        );
}


/* FLOATING CARDS */

.floating-card {
    position: absolute;

    padding: 13px 17px;

    border-radius: 13px;

    background: rgba(255,255,255,0.94);

    box-shadow:
        0 15px 35px
        rgba(15,23,42,0.12);

    color: #17202a;

    font-size: 12px;
    font-weight: 800;

    backdrop-filter: blur(10px);
}


.floating-card small {
    display: block;

    margin-top: 3px;

    color: #64748b;

    font-size: 10px;
    font-weight: 500;
}


.card-one {
    top: 90px;
    left: 0;
}


.card-two {
    bottom: 105px;
    right: 0;
}


.card-three {
    bottom: 30px;
    left: 50px;

    color: #0f766e;
}


/* =====================================================
   GENERAL SECTIONS
===================================================== */

.section {
    padding: 95px 0;
}


.section-header {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 30px;

    margin-bottom: 40px;
}


.section-label {
    display: block;

    margin-bottom: 9px;

    color: #0f766e;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 0.1em;
}


.section-header h2 {
    font-size: 34px;

    line-height: 1.15;

    letter-spacing: -0.04em;
}


.section-header p {
    margin-top: 8px;

    color: #64748b;

    font-size: 13px;
}


.view-all {
    color: #0f766e;

    font-size: 12px;

    font-weight: 800;

    white-space: nowrap;
}


.view-all:hover {
    text-decoration: underline;
}


/* =====================================================
   CATEGORIES
===================================================== */

.category-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;
}


.category-card {
    min-height: 150px;

    padding: 25px;

    display: flex;

    align-items: center;

    gap: 17px;

    border: 1px solid #e5e7eb;

    border-radius: 17px;

    background: white;

    transition: 0.25s;
}


.category-card:hover {
    transform: translateY(-5px);

    border-color: #99f6e4;

    box-shadow:
        0 15px 35px
        rgba(15,23,42,0.08);
}


.category-icon {
    width: 60px;
    height: 60px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 15px;

    background: #ecfdf5;

    font-size: 28px;
}


.category-card h3 {
    font-size: 16px;
}


.category-card p {
    margin-top: 4px;

    color: #64748b;

    font-size: 11px;
}


.category-card > span:last-child {
    margin-left: auto;

    color: #0f766e;

    font-size: 20px;
}


/* =====================================================
   PRODUCTS
===================================================== */

.products-section {
    background: #f1f5f9;
}


.product-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;
}


.product-card {
    overflow: hidden;

    border-radius: 17px;

    background: white;

    border: 1px solid #e5e7eb;

    transition: 0.25s;
}


.product-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 18px 40px
        rgba(15,23,42,0.09);
}


.product-image {
    height: 140px;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #ccfbf1,
            #e0f2fe
        );
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.product-badge {
    position: absolute;

    top: 14px;
    left: 14px;

    padding: 5px 8px;

    border-radius: 6px;

    background: white;

    color: #0f766e;

    font-size: 8px;

    font-weight: 800;
}


.product-icon {
    font-size: 100px;

    filter:
        drop-shadow(
            0 15px 10px
            rgba(0,0,0,0.18)
        );
}

.product-info {
    padding: 14px;
}

.product-category {
    color: #0f766e;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 0.08em;
}


.product-info h3 {
    margin-top: 5px;

    font-size: 16px;
}


.product-info p {
    margin-top: 5px;

    color: #64748b;

    font-size: 11px;
}


.product-footer {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-top: 18px;
}


.product-footer strong {
    display: block;

    font-size: 17px;
}


.stock {
    display: block;

    margin-top: 2px;

    color: #16a34a;

    font-size: 9px;

    font-weight: 700;
}


.add-button {
    width: 38px;
    height: 38px;

    border: none;

    border-radius: 10px;

    background: #0f766e;

    color: white;

    font-size: 20px;

    transition: 0.2s;
}


.add-button:hover {
    background: #115e59;

    transform: scale(1.05);
}


/* =====================================================
   FEATURES
===================================================== */

.features-section {
    padding: 90px 0;

    background:
        linear-gradient(
            135deg,
            #064e4b,
            #0f766e
        );

    color: white;
}


.features-section .section-header {
    margin-bottom: 40px;
}


.section-label.light {
    color: #99f6e4;
}


.features-section h2 {
    color: white;
}


.features-section .section-header p {
    color: #ccfbf1;
}


.features-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;
}


.feature-card {
    padding: 25px;

    border:
        1px solid
        rgba(255,255,255,0.12);

    border-radius: 16px;

    background:
        rgba(255,255,255,0.07);

    backdrop-filter: blur(10px);

    transition: 0.2s;
}


.feature-card:hover {
    transform: translateY(-5px);

    background:
        rgba(255,255,255,0.11);
}


.feature-icon {
    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background:
        rgba(255,255,255,0.12);

    font-size: 20px;

    margin-bottom: 18px;
}


.feature-card h3 {
    font-size: 15px;
}


.feature-card p {
    margin-top: 8px;

    color: #ccfbf1;

    font-size: 11px;

    line-height: 1.7;
}


/* =====================================================
   ABOUT
===================================================== */

.about-box {
    padding: 55px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 40px;

    border-radius: 22px;

    background: #ecfdf5;

    border: 1px solid #ccfbf1;
}


.about-box h2 {
    max-width: 600px;

    font-size: 35px;

    line-height: 1.15;

    letter-spacing: -0.04em;
}


.about-box p {
    max-width: 600px;

    margin-top: 15px;

    color: #64748b;

    font-size: 13px;
}


/* =====================================================
   FOOTER
===================================================== */

footer {
    background: #0f172a;

    color: white;

    padding: 30px 0;
}


.footer-content {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}


.footer-brand {
    display: flex;

    align-items: center;

    gap: 10px;
}


.footer-brand .logo-icon {
    background: rgba(255,255,255,0.1);
}


.footer-content p {
    color: #94a3b8;

    font-size: 10px;
}


.footer-content > a {
    color: #5eead4;

    font-size: 11px;

    font-weight: 700;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1000px) {

    .nav-links {
        display: none;
    }


    .hero-content {
        grid-template-columns: 1fr;

        padding-top: 60px;
        padding-bottom: 60px;
    }


    .hero-text {
        text-align: center;

        margin: auto;
    }


    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }


    .hero-buttons {
        justify-content: center;
    }


    .hero-visual {
        min-height: 430px;
    }


    .product-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .features-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


@media (max-width: 700px) {

    .navbar {
        height: 68px;
    }


    .logo {
        font-size: 17px;
    }


    .nav-actions .icon-button {
        display: none;
    }


    .login-button {
        padding: 9px 14px;
    }


    .hero h1 {
        font-size: 44px;
    }


    .hero-buttons {
        flex-direction: column;
    }


    .primary-button,
    .secondary-button {
        width: 100%;
    }


    .fish-container {
        width: 280px;
        height: 280px;
    }


    .fish {
        font-size: 120px;
    }


    .floating-card {
        display: none;
    }


    .section {
        padding: 65px 0;
    }


    .section-header {
        align-items: flex-start;

        flex-direction: column;
    }


    .category-grid {
        grid-template-columns: 1fr;
    }


    .product-grid {
        grid-template-columns: 1fr;
    }


    .features-grid {
        grid-template-columns: 1fr;
    }


    .about-box {
        padding: 30px;

        flex-direction: column;

        align-items: flex-start;
    }


    .about-box h2 {
        font-size: 29px;
    }


    .footer-content {
        flex-direction: column;

        text-align: center;
    }

}
/* =========================================================
   PRODUCT DETAILS POPUP
========================================================= */

.product-modal {
    position: fixed;
    inset: 0;

    z-index: 9999;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 20px;
}

.product-modal.show {
    display: flex;
}


/* =========================================================
   DARK BACKGROUND
========================================================= */

.product-modal-overlay {
    position: absolute;
    inset: 0;

    background: rgba(15, 23, 42, 0.55);
}


/* =========================================================
   POPUP BOX
========================================================= */

.product-modal-content {
    position: relative;

    z-index: 1;

    width: 100%;
    max-width: 700px;

    max-height: 90vh;

    overflow: hidden;

    background: white;

    border-radius: 16px;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.20);

    transform:
        translateY(15px)
        scale(0.98);

    transition: 0.2s ease;
}

.product-modal.show .product-modal-content {
    transform:
        translateY(0)
        scale(1);
}


/* =========================================================
   CLOSE BUTTON
========================================================= */

.product-modal-close {
    position: absolute;

    top: 12px;
    right: 12px;

    width: 34px;
    height: 34px;

    border: none;
    border-radius: 50%;

    background: white;
    color: #475569;

    font-size: 24px;
    line-height: 1;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 10;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.12);
}

.product-modal-close:hover {
    background: #f1f5f9;
    color: #0f172a;
}


/* =========================================================
   PRODUCT MODAL BODY
========================================================= */

#productModalBody {
    display: grid;

    grid-template-columns: 280px 1fr;

    max-height: 90vh;

    overflow-y: auto;
}


/* =========================================================
   PRODUCT IMAGE
========================================================= */

.product-modal-image {
    width: 280px;

    min-height: 360px;

    background: #ecfdf5;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.product-modal-image img {
    width: 100%;
    height: 100%;

    min-height: 360px;

    object-fit: cover;

    display: block;
}

.product-modal-placeholder {
    font-size: 80px;
}


/* =========================================================
   PRODUCT INFORMATION
========================================================= */

.product-modal-info {
    padding: 32px;
}

.product-modal-category {
    color: var(--primary);

    font-size: 11px;
    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.6px;
}

.product-modal-info h2 {
    margin: 8px 0;

    font-size: 25px;
    line-height: 1.25;

    color: var(--dark);
}

.product-modal-price {
    color: var(--primary);

    font-size: 24px;
    font-weight: 800;

    margin-bottom: 10px;
}


/* =========================================================
   STOCK
========================================================= */

.product-modal-stock {
    display: inline-block;

    padding: 5px 9px;

    border-radius: 6px;

    background: #dcfce7;
    color: #15803d;

    font-size: 10px;
    font-weight: 700;

    margin-bottom: 2px;
}


/* =========================================================
   DESCRIPTION / TIPS
========================================================= */

.product-modal-section {
    margin-top: 20px;
}

.product-modal-section h3 {
    margin-bottom: 6px;

    font-size: 13px;
    font-weight: 800;

    color: var(--dark);
}

.product-modal-section p {
    color: var(--muted);

    font-size: 12px;
    line-height: 1.6;
}


/* =========================================================
   QUANTITY
========================================================= */

.product-modal-quantity {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-top: 20px;
}

.product-modal-quantity > span {
    color: var(--dark);

    font-size: 13px;
    font-weight: 700;
}

.modal-quantity-controls {
    display: flex;

    align-items: center;

    gap: 8px;
}

.modal-quantity-controls button {
    width: 34px;
    height: 34px;

    border: 1px solid var(--border);

    border-radius: 8px;

    background: white;
    color: var(--dark);

    font-size: 18px;
    font-weight: 700;
}

.modal-quantity-controls button:hover {
    border-color: var(--primary);

    color: var(--primary);

    background: var(--primary-light);
}

.modal-quantity-controls span {
    min-width: 30px;

    text-align: center;

    color: var(--dark);

    font-size: 14px;
    font-weight: 700;
}


/* =========================================================
   ADD TO CART
========================================================= */

.product-modal-add-cart {
    width: 100%;

    margin-top: 24px;

    height: 42px;

    border: none;
    border-radius: 8px;

    background: var(--primary);
    color: white;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition: 0.2s ease;
}

.product-modal-add-cart:hover {
    background: var(--primary-dark);

    transform: translateY(-1px);
}

.product-modal-add-cart:disabled {
    background: #cbd5e1;

    color: #64748b;

    cursor: not-allowed;

    transform: none;
}


/* =========================================================
   MESSAGE
========================================================= */

.product-modal-message {
    margin-top: 10px;

    font-size: 12px;

    text-align: center;
}

.product-modal-message.success {
    color: var(--success);
}

.product-modal-message.error {
    color: var(--danger);
}


/* =========================================================
   PREVENT BACKGROUND SCROLL
========================================================= */

body.modal-open {
    overflow: hidden;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .product-modal {
        padding: 12px;
    }

    .product-modal-content {
        max-height: 90vh;
    }

    #productModalBody {
        grid-template-columns: 1fr;
    }

    .product-modal-image {
        width: 100%;

        height: 220px;

        min-height: 220px;
    }

    .product-modal-image img {
        min-height: 220px;
    }

    .product-modal-info {
        padding: 24px;
    }

    .product-modal-info h2 {
        font-size: 21px;
    }

    .product-modal-price {
        font-size: 21px;
    }

}

/* ---------- Simple icons (replace emojis) ---------- */
.ico {
  width: 1.1em;
  height: 1.1em;
  display: inline-block;
  vertical-align: -0.18em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico-fill { fill: currentColor; stroke: none; }
.logo-icon .ico { width: 1.4em; height: 1.4em; }
.tile-emoji .ico { width: 30px; height: 30px; }
.spot-photo .fish .ico { width: 72px; height: 72px; }
.product-placeholder .ico,
.product-modal-placeholder .ico { width: 56px; height: 56px; color: #0284c7; opacity: .55; }
.home-product-empty > div .ico { width: 40px; height: 40px; color: #0284c7; }