/* =========================================================
   CROWN PALLET LIQUIDATORS
   Main Website Styles
   ========================================================= */


/* ---------- RESET ---------- */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #171717;
    background: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

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

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* ---------- BRAND VARIABLES ---------- */

:root {
    --gold: #d6a928;
    --gold-dark: #ae8416;
    --gold-light: #f2d477;
    --black: #101010;
    --dark: #171717;
    --dark-2: #222222;
    --gray: #666666;
    --light-gray: #f5f5f3;
    --border: #e5e5e5;
    --white: #ffffff;
    --shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}


/* ---------- TOP BAR ---------- */

.topbar {
    background: var(--black);
    color: #ffffff;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 9px 20px;
}

.topbar span {
    color: var(--gold);
    padding: 0 8px;
}


/* ---------- HEADER ---------- */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.brand {
    flex-shrink: 0;
}

.brand img {
    width: 175px;
    height: auto;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 27px;
}

.nav a {
    position: relative;
    font-size: 14px;
    font-weight: 700;
    color: #292929;
    padding: 30px 0;
    transition: color 0.2s ease;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 22px;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.25s ease;
}

.nav a:hover {
    color: var(--gold-dark);
}

.nav a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.icon-btn,
.cart-btn {
    border: 0;
    background: transparent;
}

.icon-btn {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.icon-btn:hover {
    background: var(--light-gray);
}

.icon-btn img {
    width: 21px;
    height: 21px;
}

.cart-btn {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.cart-btn img {
    width: 20px;
}

.cart-btn strong {
    min-width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    background: var(--gold);
    color: #111;
    border-radius: 50%;
    font-size: 11px;
}

.mobile-menu-btn {
    display: none;
}


/* ---------- SEARCH ---------- */

.search-panel {
    position: fixed;
    top: 82px;
    left: 0;
    right: 0;
    z-index: 990;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-130%);
    transition: transform 0.3s ease;
}

.search-panel.active {
    transform: translateY(0);
}

.search-inner {
    min-height: 90px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-inner input {
    flex: 1;
    height: 52px;
    border: 1px solid #d7d7d7;
    border-radius: 7px;
    padding: 0 18px;
    outline: none;
    font-size: 15px;
}

.search-inner input:focus {
    border-color: var(--gold);
}

.search-inner button {
    width: 46px;
    height: 46px;
    border: 0;
    background: transparent;
}

.search-inner button img {
    width: 20px;
    margin: auto;
}


/* ---------- HERO ---------- */

.hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #111111;
}

.hero picture,
.hero picture img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-bg {
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.87) 0%,
            rgba(0, 0, 0, 0.66) 43%,
            rgba(0, 0, 0, 0.22) 100%
        );
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    padding-top: 20px;
    padding-bottom: 20px;
}

.eyebrow,
.section-label {
    display: inline-block;
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.hero h1 {
    max-width: 720px;
    margin-top: 13px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 0.99;
    letter-spacing: -2px;
    font-weight: 900;
}

.hero h1 span {
    color: var(--gold);
}

.hero p {
    max-width: 590px;
    margin-top: 23px;
    color: #ededed;
    font-size: 17px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 30px;
}


/* ---------- BUTTONS ---------- */

.btn {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 22px;
    border-radius: 6px;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 800;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.btn img {
    width: 16px;
    filter: brightness(0);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--gold);
    color: #111111;
}

.btn-primary:hover {
    background: var(--gold-light);
    box-shadow: 0 8px 22px rgba(214, 169, 40, 0.25);
}

.btn-outline {
    border-color: rgba(255, 255, 255, 0.55);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
}


/* ---------- TRUST STRIP ---------- */

.trust-strip {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
}

.trust-grid {
    min-height: 105px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 20px 22px;
    border-right: 1px solid var(--border);
}

.trust-item:first-child {
    padding-left: 0;
}

.trust-item:last-child {
    border-right: 0;
}

.trust-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f7f1dc;
}

.trust-icon img {
    width: 21px;
    height: 21px;
}

.trust-item strong,
.trust-item span {
    display: block;
}

.trust-item strong {
    font-size: 13px;
    line-height: 1.3;
}

.trust-item span {
    margin-top: 3px;
    color: #777777;
    font-size: 11px;
}


/* ---------- GENERAL SECTIONS ---------- */

.section {
    padding: 90px 0;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 45px;
}

.section-heading > p {
    max-width: 410px;
    color: var(--gray);
    font-size: 14px;
}

.section-heading.centered {
    display: block;
    text-align: center;
}

.section-heading.centered > p {
    max-width: 570px;
    margin: 13px auto 0;
}

.section-heading h2 {
    margin-top: 8px;
    font-size: clamp(32px, 4vw, 47px);
    line-height: 1.1;
    letter-spacing: -1px;
}

.section-heading h2 span,
.business-content h2 span,
.contact-section h2 span {
    color: var(--gold-dark);
}


/* ---------- CATEGORIES ---------- */

.categories-section {
    background: #ffffff;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 17px;
}

.category-card {
    position: relative;
    min-height: 215px;
    padding: 27px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #ffffff;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: #d9c27c;
    box-shadow: var(--shadow);
}

.category-icon {
    width: 49px;
    height: 49px;
    display: grid;
    place-items: center;
    margin-bottom: 19px;
    background: #f8f2df;
    border-radius: 7px;
}

.category-icon img {
    width: 24px;
    height: 24px;
}

.category-card h3 {
    font-size: 18px;
}

.category-card p {
    max-width: 270px;
    margin-top: 7px;
    color: var(--gray);
    font-size: 13px;
}

.category-link {
    position: absolute;
    left: 27px;
    bottom: 22px;
    color: var(--gold-dark);
    font-size: 12px;
    font-weight: 800;
}


/* ---------- DEALS ---------- */

.deals-section {
    background: #f7f7f5;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.product-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.product-image {
    position: relative;
    height: 235px;
    display: grid;
    place-items: center;
    background: #e9e7e0;
}

.product-placeholder {
    width: 78%;
    height: 70%;
    display: grid;
    place-items: center;
    border: 2px dashed #b4aa89;
    color: #817751;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 1px;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 9px;
    border-radius: 4px;
    background: var(--gold);
    color: #111111;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.product-info {
    padding: 20px;
}

.product-category {
    color: var(--gold-dark);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-info h3 {
    margin-top: 6px;
    font-size: 17px;
}

.product-info p {
    min-height: 44px;
    margin-top: 7px;
    color: var(--gray);
    font-size: 12px;
}

.product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 15px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.product-price {
    font-size: 12px;
}

.add-cart {
    border: 0;
    padding: 8px 10px;
    border-radius: 4px;
    background: var(--black);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
}

.add-cart:hover {
    background: var(--gold);
    color: #111111;
}

.center-button {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}


/* ---------- BUSINESS SECTION ---------- */

.business-section {
    padding: 100px 0;
    background: var(--black);
    color: #ffffff;
}

.business-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 80px;
}

.business-content h2 {
    max-width: 650px;
    margin-top: 9px;
    font-size: clamp(34px, 4vw, 50px);
    line-height: 1.1;
    letter-spacing: -1px;
}

.business-content > p {
    max-width: 620px;
    margin-top: 20px;
    color: #bcbcbc;
    font-size: 15px;
}

.benefit-list {
    display: grid;
    gap: 13px;
    margin: 28px 0;
    list-style: none;
}

.benefit-list li {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #eeeeee;
    font-size: 13px;
}

.benefit-list img {
    width: 20px;
    height: 20px;
    filter: invert(74%) sepia(40%) saturate(650%);
}

.business-card {
    min-height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    border: 1px solid #343434;
    border-radius: 9px;
    background: #191919;
}

.business-card > img {
    width: 80px;
    margin-bottom: 20px;
}

.business-card h3 {
    font-size: 22px;
}

.business-card p {
    max-width: 350px;
    margin: 12px auto 20px;
    color: #aaa;
    font-size: 13px;
}

.business-card a {
    color: var(--gold);
    font-size: 13px;
    font-weight: 800;
}


/* ---------- HOW IT WORKS ---------- */

.how-section {
    background: #ffffff;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.step {
    position: relative;
    padding: 25px;
    border-top: 2px solid #dedede;
}

.step-number {
    margin-bottom: 15px;
    color: var(--gold-dark);
    font-size: 13px;
    font-weight: 900;
}

.step h3 {
    font-size: 20px;
}

.step p {
    margin-top: 7px;
    color: var(--gray);
    font-size: 13px;
}


/* ---------- FAQ ---------- */

.faq-section {
    background: #f7f7f5;
}

.faq-list {
    max-width: 820px;
    margin: 0 auto;
}

.faq-list details {
    background: #ffffff;
    border: 1px solid var(--border);
    border-bottom: 0;
}

.faq-list details:first-child {
    border-radius: 7px 7px 0 0;
}

.faq-list details:last-child {
    border-bottom: 1px solid var(--border);
    border-radius: 0 0 7px 7px;
}

.faq-list summary {
    min-height: 65px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 21px;
    cursor: pointer;
    list-style: none;
    font-size: 14px;
    font-weight: 800;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary span {
    color: var(--gold-dark);
    font-size: 22px;
    font-weight: 400;
}

.faq-list details[open] summary span {
    transform: rotate(45deg);
}

.faq-list details p {
    padding: 0 21px 21px;
    color: var(--gray);
    font-size: 13px;
}


/* ---------- CONTACT ---------- */

.contact-section {
    padding: 90px 0;
    background: var(--black);
    color: #ffffff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
    gap: 80px;
}

.contact-section h2 {
    max-width: 500px;
    margin-top: 9px;
    font-size: clamp(34px, 4vw, 50px);
    line-height: 1.1;
}

.contact-section > .container > div > p {
    max-width: 500px;
    margin-top: 18px;
    color: #aaa;
    font-size: 14px;
}

.contact-form {
    display: grid;
    gap: 13px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid #3b3b3b;
    border-radius: 5px;
    outline: none;
    background: #191919;
    color: #ffffff;
    padding: 14px 15px;
    font-size: 13px;
}

.contact-form input {
    height: 50px;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #777777;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--gold);
}

.contact-form .btn {
    justify-self: start;
    margin-top: 4px;
}


/* ---------- CART DRAWER ---------- */

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1200;
    width: min(420px, 100%);
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    box-shadow: -15px 0 40px rgba(0, 0, 0, 0.15);
    transform: translateX(105%);
    transition: transform 0.3s ease;
}

.cart-drawer.active {
    transform: translateX(0);
}

.cart-header {
    min-height: 75px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 23px;
    border-bottom: 1px solid var(--border);
}

.cart-header h2 {
    font-size: 20px;
}

.cart-header button {
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
}

.cart-header button img {
    width: 18px;
    margin: auto;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.empty-cart {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #777777;
    text-align: center;
}

.empty-cart img {
    width: 45px;
    margin-bottom: 13px;
    opacity: 0.4;
}

.empty-cart p {
    font-size: 13px;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.cart-item-name {
    font-size: 13px;
    font-weight: 700;
}

.remove-item {
    border: 0;
    background: transparent;
    color: #a33;
    font-size: 11px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
}

.cart-checkout {
    width: 100%;
}

.overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: 0.25s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}


/* ---------- FOOTER ---------- */

.footer {
    background: #0b0b0b;
    color: #ffffff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.7fr 0.7fr 1fr;
    gap: 50px;
    padding: 65px 0;
}

.footer-brand img {
    width: 185px;
}

.footer-brand p {
    max-width: 330px;
    margin-top: 18px;
    color: #8d8d8d;
    font-size: 12px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
}

.footer-column h3 {
    margin-bottom: 7px;
    color: var(--gold);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-column a,
.footer-column p {
    color: #8d8d8d;
    font-size: 12px;
}

.footer-column a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid #242424;
}

.footer-bottom p {
    padding: 18px 0;
    color: #666666;
    font-size: 11px;
}


/* ---------- RESPONSIVE TABLET ---------- */

@media (max-width: 1050px) {

    .nav {
        gap: 16px;
    }

    .nav a {
        font-size: 12px;
    }

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

    .business-grid {
        gap: 45px;
    }

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

}


/* ---------- RESPONSIVE MOBILE ---------- */

@media (max-width: 800px) {

    .container {
        width: min(100% - 30px, 600px);
    }

    .topbar {
        font-size: 10px;
        padding: 8px 10px;
    }

    .topbar span {
        padding: 0 4px;
    }

    .header-inner {
        min-height: 70px;
    }

    .brand img {
        width: 145px;
    }

    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        z-index: 999;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 20px 20px;
        background: #ffffff;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        transform: translateY(-140%);
        transition: transform 0.3s ease;
    }

    .nav.active {
        transform: translateY(0);
    }

    .nav a {
        padding: 13px 5px;
        border-bottom: 1px solid #eeeeee;
        font-size: 14px;
    }

    .nav a::after {
        display: none;
    }

    .mobile-menu-btn {
        display: grid;
    }

    .cart-btn span {
        display: none;
    }

    .cart-btn {
        padding: 0 8px;
    }

    .search-panel {
        top: 70px;
    }

    .hero {
        min-height: 650px;
    }

    .hero-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(0, 0, 0, 0.42),
                rgba(0, 0, 0, 0.87)
            );
    }

    .hero-content {
        padding-top: 80px;
        padding-bottom: 50px;
    }

    .hero h1 {
        font-size: 46px;
        letter-spacing: -1.5px;
    }

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

    .hero-buttons {
        align-items: stretch;
        flex-direction: column;
        max-width: 250px;
    }

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

    .trust-item {
        border-bottom: 1px solid var(--border);
    }

    .trust-item:nth-child(2) {
        border-right: 0;
    }

    .trust-item:nth-child(3) {
        padding-left: 0;
        border-bottom: 0;
    }

    .trust-item:nth-child(4) {
        border-bottom: 0;
    }

    .section {
        padding: 65px 0;
    }

    .section-heading {
        display: block;
        margin-bottom: 32px;
    }

    .section-heading > p {
        margin-top: 15px;
    }

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

    .category-card {
        min-height: 220px;
    }

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

    .business-section {
        padding: 70px 0;
    }

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

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

    .contact-section {
        padding: 70px 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

}


/* ---------- SMALL PHONES ---------- */

@media (max-width: 520px) {

    .container {
        width: calc(100% - 24px);
    }

    .brand img {
        width: 130px;
    }

    .header-actions {
        gap: 2px;
    }

    .icon-btn {
        width: 36px;
    }

    .cart-btn {
        min-height: 36px;
    }

    .hero {
        min-height: 600px;
    }

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

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

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

    .trust-item,
    .trust-item:first-child,
    .trust-item:nth-child(3) {
        padding: 15px 0;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .trust-item:last-child {
        border-bottom: 0;
    }

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

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

    .product-image {
        height: 250px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .step {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 50px 0;
    }

    .search-inner {
        min-height: 75px;
    }

    .search-inner input {
        height: 46px;
        font-size: 13px;
    }

}


/* ---------- ACCESSIBILITY ---------- */

:focus-visible {
    outline: 3px solid rgba(214, 169, 40, 0.55);
    outline-offset: 3px;
}


/* ---------- REDUCED MOTION ---------- */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }

}