
/* =========================================================
   POCKET RETRO
   Main Stylesheet
   ========================================================= */


/* =========================================================
   1. GLOBAL STYLES
   ========================================================= */

:root {
    color-scheme: dark;
    font-family: Inter, ui-sans-serif, system-ui, Arial;
    background: #080d18;
    color: #f3f8ff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background:
        radial-gradient(
            ellipse at 75% 0%,
            #142e54 0%,
            transparent 40%
        ),
        #080d18;
}

a {
    color: #b4d7ff;
}

h2 {
    font-size: 29px;
}

h3 {
    font-size: 18px;
}

section {
    margin-bottom: 85px;
}

section[id] {
    scroll-margin-top: 90px;
}


/* =========================================================
   2. HEADER & NAVIGATION
   ========================================================= */

header {
    max-width: 1200px;
    margin: auto;
    padding: 24px 22px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.brand {
    font-size: 21px;
    font-weight: 900;
    letter-spacing: 1px;
    text-decoration: none;
    color: white;
}

.brand em {
    color: #73bcff;
    font-style: normal;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    text-decoration: none;
    font-size: 14px;
}


/* =========================================================
   3. MAIN LAYOUT
   ========================================================= */

main {
    max-width: 1200px;
    margin: auto;
    padding: 0 22px;
}


/* =========================================================
   4. HERO SECTION
   ========================================================= */

.hero {
    padding: 100px 0 115px;
    max-width: 750px;
}

.eyebrow {
    color: #78baff;
    font-size: 12px;
    letter-spacing: 4px;
    font-weight: 800;
}

.hero h1 {
    font-size: clamp(52px, 8vw, 100px);
    line-height: 1.02;
    letter-spacing: -5px;
    margin: 24px 0;
}

.hero h1 span {
    color: #73bcff;
    font-style: normal;
}

.hero p {
    font-size: 19px;
    color: #aab8cc;
    line-height: 1.6;
    max-width: 560px;
}


/* =========================================================
   5. BUTTONS
   ========================================================= */

.primary {
    display: inline-block;

    background: #54a9ff;
    color: #061224;
    border: 0;
    border-radius: 12px;

    padding: 14px 23px;

    font-weight: 800;
    font-size: 15px;
    text-decoration: none;

    cursor: pointer;
}

.primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}


/* =========================================================
   6. PRODUCT CATALOG
   ========================================================= */

.sectionhead {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
}

.sectionhead p,
.muted {
    color: #a5b4c9;
    font-size: 13px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.product {
    background: #101a2a;
    border: 1px solid #283a53;
    border-radius: 20px;
    padding: 22px;
}

.product img {
    width: 100%;
    height: 240px;
    object-fit: contain;
}

.product h3 {
    margin: 12px 0 6px;
}

.product p {
    font-size: 13px;
    color: #9baec6;
    min-height: 34px;
}

.price {
    font-size: 22px;
    font-weight: 800;
}

.stock {
    color: #75cfb3;
    font-size: 12px;
}

.sold {
    color: #ff9d9d;
}

.product button {
    width: 100%;
    margin-top: 15px;
}


/* =========================================================
   7. CHECKOUT & CART
   ========================================================= */

.checkout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 22px;
}

.checkout > div,
.checkout form,
.panel {
    background: #101a2a;
    border: 1px solid #283a53;
    border-radius: 20px;
    padding: 22px;
}

label {
    display: block;
    color: #c8d6e8;
    font-size: 13px;
    margin: 12px 0;
}

input,
select {
    width: 100%;

    background: #0b1321;
    border: 1px solid #344760;
    border-radius: 9px;

    padding: 12px;
    margin-top: 7px;

    color: white;
    font-size: 15px;
}

.pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.cartrow {
    display: flex;
    justify-content: space-between;
    gap: 10px;

    border-bottom: 1px solid #273850;
    padding: 14px 0;
}

.cartrow button {
    border: 1px solid #4d6c91;
    background: transparent;
    color: white;
    border-radius: 7px;
    cursor: pointer;
}

.checkout button {
    margin-top: 12px;
}

#feedback {
    white-space: pre-wrap;
    line-height: 1.6;
    margin-top: 16px;
    color: #c5e3ff;
}

#paypal-button-container {
    margin-top: 20px;
}


/* =========================================================
   8. CUSTOMER REVIEWS
   ========================================================= */

.pr-reviews {
    padding: 100px 24px;

    background:
        radial-gradient(
            ellipse at 50% 0%,
            rgba(64, 151, 255, 0.10),
            transparent 60%
        ),
        #080c14;

    color: #f5f8ff;
}

.pr-reviews__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.pr-reviews__heading {
    text-align: center;
    margin-bottom: 48px;
}

.pr-reviews__eyebrow {
    display: inline-block;
    margin-bottom: 16px;

    color: #74baff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.5px;
}

.pr-reviews__heading h2 {
    margin: 0 0 14px;

    font-size: clamp(30px, 4vw, 46px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;

    color: #fff;
}

.pr-reviews__heading p {
    margin: 0;

    color: #9ba9bf;
    font-size: 16px;
    line-height: 1.7;
}


/* =========================================================
   9. REVIEW GRID & CARDS
   ========================================================= */

.pr-reviews__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.pr-review-card {
    display: flex;
    flex-direction: column;
    min-width: 0;

    padding: 30px;

    background: linear-gradient(
        145deg,
        #141e30 0%,
        #0d1422 100%
    );

    border: 1px solid rgba(145, 180, 225, 0.13);
    border-radius: 20px;

    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.pr-review-card:hover {
    transform: translateY(-6px);
    border-color: rgba(100, 185, 255, 0.48);
    box-shadow: 0 18px 45px rgba(34, 125, 255, 0.12);
}

.pr-review-card__stars {
    color: #ffc857;
    font-size: 22px;
    letter-spacing: 3px;
    line-height: 1;
    margin-bottom: 22px;
}

.pr-review-card__quote {
    flex: 1;
    margin: 0 0 30px;

    font-size: 15px;
    line-height: 1.85;
    color: #d7e0ef;

    overflow-wrap: anywhere;
}


/* =========================================================
   10. REVIEW CARD FOOTERS
   ========================================================= */

.pr-review-card__footer {
    display: flex;
    align-items: center;
    gap: 12px;

    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pr-review-card__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;

    width: 42px;
    height: 42px;
    border-radius: 50%;

    background: linear-gradient(
        135deg,
        #27558a,
        #57b6ff
    );

    color: #fff;
    font-size: 17px;
    font-weight: 800;
}

.pr-review-card__footer strong {
    display: block;
    margin-bottom: 4px;

    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.pr-review-card__footer span {
    display: block;
    color: #8b9bb2;
    font-size: 12px;
}


/* =========================================================
   11. FOOTER
   ========================================================= */

footer {
    padding: 45px 0;
    color: #8d9bb0;
    font-size: 13px;
}


/* =========================================================
   12. RESPONSIVE DESIGN
   ========================================================= */

/* Tablets */
@media (max-width: 900px) {
    .pr-reviews__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Small tablets and phones */
@media (max-width: 760px) {
    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .checkout {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 65px 0;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

    .sectionhead {
        display: block;
    }

    .product img {
        height: 170px;
    }
}

/* Mobile review layout */
@media (max-width: 600px) {
    .pr-reviews {
        padding: 64px 18px;
    }

    .pr-reviews__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .pr-review-card {
        padding: 24px;
    }

    .pr-reviews__heading {
        margin-bottom: 34px;
    }
}

/* Small phones */
@media (max-width: 430px) {
    .grid {
        grid-template-columns: 1fr;
    }

    nav {
        gap: 10px;
    }

    nav a {
        font-size: 12px;
    }

    .pair {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   13. ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .pr-review-card {
        transition: none;
    }

    .pr-review-card:hover {
        transform: none;
    }
}


/* ========================================
   PRODUCT CARD HOVER ANIMATION
   ======================================== */

#products > * {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  will-change: transform;
}

#products > *:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  border-color: rgba(99, 179, 237, 0.4);
}

/* Keep animations accessible */
@media (prefers-reduced-motion: reduce) {
  #products > * {
    transition: none;
  }

  #products > *:hover {
    transform: none;
  }
}


/* ========================================
   POCKET RETRO HEADER LOGO
   ======================================== */

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
  padding: 0;
}

.header-logo {
    display: block;
    width: auto;
    height: 90px;
    max-width: 210px;
    object-fit: contain;

  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}

.brand-logo:hover .header-logo {
  transform: scale(1.06);
  filter: drop-shadow(0 0 10px rgba(0, 140, 255, 0.45));
}

/* Mobile */
@media (max-width: 600px) {
  .header-logo {
    height: 65px;
    max-width: 145px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-logo {
    transition: none;
  }

  .brand-logo:hover .header-logo {
    transform: none;
  }
}

