/*
Theme Name: Favourite Premium
Theme URI: https://example.com/
Author: OpenAI
Description: Dark, responsive Favourite Premium WooCommerce storefront with manual fulfilment.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: favourite-premium
*/

:root {
    --bg: #080b19;
    --panel: #171c35;
    --panel2: #11172d;
    --purple: #8b35f5;
    --blue: #2878ff;
    --text: #fff;
    --muted: #a6aec4;
    --line: #303653;
    --radius: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* HEADER */

.site-header {
    border-bottom: 1px solid rgba(166,174,196,.18);
    background: #090d20;
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-inner {
    max-width: 1240px;
    margin: auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 24px;
    letter-spacing: -.6px;
}

.brand-mark {
    color: #b66aff;
    font-size: 30px;
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0;
}

.main-nav ul {
    display: flex;
    gap: 26px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    font-size: 14px;
    color: #e8e9f2;
}

.main-nav a:hover,
.text-link {
    color: #c477ff;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
}

.header-actions a {
    color: #fff;
}

.menu-toggle {
    display: none;
    background: none;
    color: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px;
}

/* MAIN WRAPPER */

.wrap {
    max-width: 1240px;
    margin: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* HERO SECTION */

.hero {
    padding: 66px 0 34px;
    background:
        radial-gradient(ellipse at 70% 45%,rgba(90,28,190,.25),transparent 42%),
        radial-gradient(ellipse at 10% 90%,rgba(38,89,220,.14),transparent 35%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 35px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #5532a0;
    background: #21134a;
    border-radius: 30px;
    padding: 7px 15px;
    font-size: 13px;
    color: #eee;
}

.hero h1 {
    font-size: clamp(36px,5vw,58px);
    line-height: 1.08;
    letter-spacing: -1.8px;
    margin: 18px 0;
}

.gradient {
    background: linear-gradient(90deg,#a56bff,#e05bdb);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    color: #c4c9d9;
    font-size: 17px;
    max-width: 620px;
}

.actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 26px;
}

/* BUTTONS */

.btn,
button.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: linear-gradient(100deg,#923cff,#6c22d9);
    color: #fff !important;
    border: 0;
    border-radius: 9px;
    padding: 13px 21px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(119,44,229,.22);
}

.btn-outline {
    border: 1px solid #a66aff;
    border-radius: 9px;
    padding: 12px 19px;
    color: #fff;
}

/* HERO ART */

.hero-art {
    min-height: 280px;
    border: 1px solid rgba(169,112,255,.45);
    border-radius: 24px;
    background:
        radial-gradient(circle at 50% 45%,rgba(40,120,255,.35),transparent 45%),
        linear-gradient(135deg,#141b3b,#090d20);
    display: grid;
    place-items: center;
    box-shadow: 0 20px 70px rgba(89,31,186,.2);
    position: relative;
    overflow: hidden;
}

.hero-art:before,
.hero-art:after {
    content: "";
    position: absolute;
    width: 440px;
    height: 120px;
    border: 2px solid rgba(150,70,255,.55);
    border-radius: 50%;
    transform: rotate(-18deg);
    filter: blur(1px);
}

.hero-art:after {
    width: 340px;
    height: 90px;
    border-color: rgba(34,128,255,.65);
    transform: rotate(12deg);
}

.download-icon {
    font-size: 86px;
    z-index: 1;
    text-shadow: 0 0 30px #398cff;
}

.hero-art strong {
    display: block;
    z-index: 1;
    font-size: 22px;
}

.hero-art span {
    z-index: 1;
    color: #c4c9d9;
}

/* SEARCH BAR */

.searchbar {
    max-width: 900px;
    margin: 10px auto 24px;
    display: flex;
    background: #1b213b;
    border: 1px solid #596080;
    border-radius: 12px;
    padding: 6px;
}

.searchbar input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: 0;
    color: #fff;
    padding: 10px 14px;
    font-size: 15px;
    outline: none;
}

.searchbar button {
    border: 0;
    border-radius: 8px;
    background: var(--purple);
    color: #fff;
    padding: 0 24px;
    font-weight: 700;
    cursor: pointer;
}

/* CATEGORIES */

.categories {
    display: grid;
    grid-template-columns: repeat(7,1fr);
    gap: 12px;
    margin: 20px auto 46px;
}

.category {
    background: linear-gradient(145deg,#1b213b,#11162b);
    border: 1px solid #353d60;
    border-radius: 12px;
    padding: 14px 8px;
    text-align: center;
    color: #fff;
    font-size: 13px;
}

.category b {
    display: block;
    font-size: 22px;
    color: #b66aff;
}

/* SECTION HEADING */

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin: 35px 0 20px;
}

.section-head h2 {
    color: #ffffff !important;
    font-size: 25px;
    font-weight: 800;
    margin: 0;
    letter-spacing: -.5px;
}

.section-head > a {
    color: #d600ff !important;
    font-weight: 700;
    text-decoration: none;
}

.section-head > a:hover {
    color: #ff35e5 !important;
}

/* PRODUCTS GRID */

.products {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 22px;
    margin: 25px 0 45px;
}

/* PRODUCT CARDS */

.product-card {
    position: relative;
    background: linear-gradient(145deg,#17132f,#0b0a20) !important;
    border: 1px solid rgba(177,65,255,.28) !important;
    border-radius: 18px !important;
    padding: 22px !important;
    color: #ffffff !important;
    box-shadow: 0 8px 25px rgba(0,0,0,.25);
    transition: all .3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: #c000ff !important;
    box-shadow:
        0 12px 35px rgba(174,0,255,.20),
        0 0 15px rgba(174,0,255,.12);
}

/* PRODUCT IMAGE AND TITLE */

.product-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.product-image {
    width: 65px;
    height: 65px;
    min-width: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #21143d;
    border: 1px solid rgba(190,70,255,.35);
    border-radius: 14px;
    overflow: hidden;
}

.product-thumb {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.product-image-placeholder {
    color: #d000ff;
    font-size: 28px;
}

.product-card h3 {
    color: #ffffff !important;
    font-size: 17px !important;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 5px !important;
}

.product-card .sub {
    color: #b8a9d6 !important;
    font-size: 13px;
}

/* PRODUCT PRICE */

.product-card .price {
    color: #ffffff !important;
    font-size: 21px;
    font-weight: 800;
    border-top: 1px solid rgba(180,100,255,.2);
    padding-top: 16px;
    margin-bottom: 18px;
}

.product-card .price small {
    color: #b8a9d6;
    font-size: 13px;
    font-weight: 400;
}

/* PRODUCT FEATURES */

.product-card ul {
    padding-left: 18px !important;
    margin: 15px 0 20px !important;
}

.product-card ul li {
    color: #d4cce7 !important;
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 5px;
}

/* PRODUCT BUTTON */

.product-card > .btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 13px 15px;
    background: linear-gradient(100deg,#a900ff,#e000df) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 0 15px rgba(180,0,255,.25);
    transition: .3s ease;
}

.product-card > .btn:hover {
    background: linear-gradient(100deg,#d000ff,#ff00d9) !important;
    box-shadow: 0 0 22px rgba(200,0,255,.55);
}

/* AVAILABLE PRODUCT PLANS */

.product-card .product-plans {
    display: block;
    width: 100%;
    margin: 16px 0 18px;
    padding: 14px;
    box-sizing: border-box;
    background: #11172d;
    border: 1px solid #303653;
    border-radius: 12px;
}

.product-card .product-plans > strong {
    display: block;
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.product-card .product-plans .plan-row {
    display: flex !important;
    flex-direction: row;
    justify-content: space-between !important;
    align-items: center;
    width: 100%;
    min-height: 38px;
    gap: 12px;
    margin: 0;
    padding: 8px 0;
    box-sizing: border-box;
    border-bottom: 1px solid #303653;
    color: #a6aec4;
    font-size: 14px;
    line-height: 1.4;
}

.product-card .product-plans .plan-row:last-child {
    border-bottom: 0;
    padding-bottom: 2px;
}

.product-card .product-plans .plan-row span {
    display: block;
    flex: 1 1 auto;
    color: #c5cbe0;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
}

.product-card .product-plans .plan-row strong {
    display: block;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

/* BENEFITS */

.benefits {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 18px;
    margin: 36px 0 30px;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    border-right: 1px solid var(--line);
    padding: 8px 14px;
}

.benefit:last-child {
    border: 0;
}

.benefit i {
    font-style: normal;
    font-size: 28px;
    color: #c477ff;
}

.benefit strong {
    display: block;
    font-size: 14px;
}

.benefit small {
    color: var(--muted);
    font-size: 12px;
}

/* FINAL CTA */

.cta {
    margin: 34px 0 55px;
    padding: 25px 32px;
    border: 1px solid #a15bfa;
    border-radius: 17px;
    background:
        radial-gradient(ellipse at 70% 30%,rgba(158,65,255,.45),transparent 55%),
        linear-gradient(100deg,#32116c,#15112e);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cta h2 {
    margin: 0 0 4px;
    font-size: 24px;
}

.cta p {
    margin: 0;
    color: #e0d8f0;
}

/* FOOTER */

.site-footer {
    border-top: 1px solid var(--line);
    background: #090d1c;
    padding: 34px 0;
    color: var(--muted);
    font-size: 13px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.site-footer a {
    margin-right: 16px;
    color: #d6d9e8;
}

/* NOTICES */

.notice {
    border: 1px solid #57438c;
    background: #17122b;
    color: #d8c8ff;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 13px;
    margin: 18px 0;
}

/* WOOCOMMERCE */

.woocommerce,
.woocommerce-page {
    color: #fff;
}

.woocommerce div.product,
.woocommerce .woocommerce-order,
.woocommerce .woocommerce-cart-form,
.woocommerce .cart-collaterals,
.woocommerce form.checkout {
    color: #fff;
}

.woocommerce input.input-text,
.woocommerce textarea,
.woocommerce select {
    background: #151b32 !important;
    color: #fff !important;
    border: 1px solid #414968 !important;
    border-radius: 8px !important;
    padding: 11px !important;
}

.woocommerce table.shop_table {
    border-color: #39415e !important;
    color: #fff;
}

.woocommerce table.shop_table td,
.woocommerce table.shop_table th {
    border-color: #39415e !important;
}

.woocommerce .quantity .qty {
    background: #151b32;
    color: #fff;
    border: 1px solid #414968;
    border-radius: 7px;
    padding: 8px;
}

/* CONTENT AREA */

.content-area {
    max-width: 1100px;
    margin: 45px auto;
    padding: 0 24px;
}

.content-area h1,
.content-area h2 {
    color: #fff;
}

.content-area p {
    color: #c4c9d9;
}

/* TABLET RESPONSIVE */

@media (max-width: 1000px) {
    .products {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 16px;
    }
}

/* NAVIGATION AND TABLET */

@media (max-width: 900px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 65px;
        left: 0;
        right: 0;
        background: #090d20;
        padding: 18px 24px;
        border-bottom: 1px solid var(--line);
    }

    .main-nav.open {
        display: block;
    }

    .main-nav ul {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .menu-toggle {
        display: block;
    }

    .header-actions .account-label {
        display: none;
    }

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

    .hero-art {
        min-height: 220px;
    }

    .categories {
        grid-template-columns: repeat(4,1fr);
    }

    .benefits {
        grid-template-columns: repeat(2,1fr);
    }
}

/* MOBILE RESPONSIVE */

@media (max-width: 600px) {
    .header-inner {
        padding: 12px 16px;
    }

    .wrap {
        padding-left: 16px;
        padding-right: 16px;
    }

    .brand {
        font-size: 20px;
    }

    .hero {
        padding-top: 40px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 15px;
    }

    .categories {
        grid-template-columns: repeat(2,1fr);
    }

    .products {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 12px;
    }

    .product-card {
        padding: 13px !important;
        border-radius: 13px !important;
    }

    .product-top {
        gap: 9px;
        align-items: flex-start;
    }

    .product-image {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }

    .product-card h3 {
        font-size: 14px !important;
    }

    .product-card ul li {
        font-size: 11px;
    }

    .product-card .price {
        font-size: 17px;
    }

    .product-card > .btn {
        font-size: 12px;
        padding: 11px 7px;
    }

    .product-card .product-plans {
        margin: 13px 0 15px;
        padding: 11px;
    }

    .product-card .product-plans .plan-row {
        min-height: 35px;
        gap: 8px;
        padding: 7px 0;
        font-size: 12px;
    }

    .product-card .product-plans .plan-row span,
    .product-card .product-plans .plan-row strong {
        font-size: 12px;
    }

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

    .benefit {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .cta {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px;
    }

    .section-head h2 {
        font-size: 20px;
    }

    .searchbar button {
        padding: 0 14px;
    }
}

/* SMALL MOBILE ADJUSTMENTS */

@media (max-width: 560px) {
    .section-head h2 {
        font-size: 20px;
    }
}

/* =====================================
   FIX PRODUCT PLAN ALIGNMENT
===================================== */

.product-card .product-plans {
    display: block !important;
    width: 100% !important;
    padding: 14px !important;
    margin: 16px 0 !important;
    background: #11172d !important;
    border: 1px solid #303653 !important;
    border-radius: 12px !important;
}

.product-card .product-plans > strong {
    display: block !important;
    margin-bottom: 12px !important;
    color: #ffffff !important;
    font-size: 15px !important;
}

.product-card .product-plans .plan-row {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    padding: 10px 0 !important;
    margin: 0 !important;
    border-bottom: 1px solid #303653 !important;
    box-sizing: border-box !important;
}

.product-card .product-plans .plan-row:last-child {
    border-bottom: none !important;
}

.product-card .product-plans .plan-row span {
    display: block !important;
    color: #c5cbe0 !important;
    font-size: 14px !important;
    text-align: left !important;
}

.product-card .product-plans .plan-row strong {
    display: block !important;
    color: #ffffff !important;
    font-size: 14px !important;
    text-align: right !important;
    white-space: nowrap !important;
    margin: 0 !important;
}

/* Mobile adjustment */

@media (max-width: 600px) {
    .product-card .product-plans {
        padding: 10px !important;
    }

    .product-card .product-plans .plan-row {
        padding: 8px 0 !important;
    }

    .product-card .product-plans .plan-row span,
    .product-card .product-plans .plan-row strong {
        font-size: 12px !important;
    }
}

/* =====================================
   FIX PRODUCT PLAN ALIGNMENT
===================================== */

.product-card .product-plans {
    display: block !important;
    width: 100% !important;
    padding: 14px !important;
    margin: 16px 0 !important;
    background: #11172d !important;
    border: 1px solid #303653 !important;
    border-radius: 12px !important;
}

.product-card .product-plans > strong {
    display: block !important;
    margin-bottom: 12px !important;
    color: #ffffff !important;
    font-size: 15px !important;
}

.product-card .product-plans .plan-row {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    padding: 10px 0 !important;
    margin: 0 !important;
    border-bottom: 1px solid #303653 !important;
    box-sizing: border-box !important;
}

.product-card .product-plans .plan-row:last-child {
    border-bottom: none !important;
}

.product-card .product-plans .plan-row span {
    display: block !important;
    color: #c5cbe0 !important;
    font-size: 14px !important;
    text-align: left !important;
}

.product-card .product-plans .plan-row strong {
    display: block !important;
    color: #ffffff !important;
    font-size: 14px !important;
    text-align: right !important;
    white-space: nowrap !important;
    margin: 0 !important;
}

/* Mobile adjustment */

@media (max-width: 600px) {
    .product-card .product-plans {
        padding: 10px !important;
    }

    .product-card .product-plans .plan-row {
        padding: 8px 0 !important;
    }

    .product-card .product-plans .plan-row span,
    .product-card .product-plans .plan-row strong {
        font-size: 12px !important;
    }
}
