:root {
    --yellow: #f5c518;
    --yellow-dark: #dba700;
    --yellow-light: #fff4c8;

    --bg: #ececec;
    --card: #f8f8f8;

    --text: #111;
    --muted: #666;

    --border: #ddd;

    --shadow:
        0 10px 30px rgba(0, 0, 0, .08);

    --radius: 24px;
}

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

body {
    font-family: "Inter", sans-serif;
    background: var(--bg);
    color: var(--text);
}

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

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

/* HEADER */

.header {
    background: white;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav-container {
    height: 80px;

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

.logo {
    font-size: 1.8rem;
    font-weight: 800;
}

.logo span {
    color: var(--yellow-dark);
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav a {
    font-weight: 600;
}

/* BREADCRUMBS */

.breadcrumbs {
    padding: 30px 0;

    display: flex;
    gap: 12px;
    flex-wrap: wrap;

    color: var(--muted);
}

.breadcrumbs a:hover {
    color: var(--yellow-dark);
}

/* PRODUCT */

.product-layout {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 50px;
}

/* GALLERY */

.gallery {
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.main-image {
    border-radius: 20px;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    display: block;
    height: 550px;
    object-fit: cover;
}

.thumbnail-row {
    margin-top: 18px;

    display: flex;
    gap: 12px;

    overflow: auto;
}

.thumbnail {
    width: 90px;
    height: 90px;

    border-radius: 14px;

    object-fit: cover;

    cursor: pointer;

    border: 3px solid transparent;

    transition: .25s;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--yellow);
}

/* INFO */

.product-info {
    background: white;
    padding: 35px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);

    height: max-content;
}

.product-category {
    display: inline-block;

    background: var(--yellow-light);

    padding: 8px 14px;

    border-radius: 999px;

    font-weight: 700;

    margin-bottom: 18px;
}

.product-info h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 15px;

    margin-bottom: 20px;
}

.product-price {
    font-size: 2rem;
    font-weight: 800;

    color: var(--yellow-dark);
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.sale-price {
    color: #c3272b;
}

.original-price {
    color: var(--muted);
    font-size: 1.05rem;
    text-decoration: line-through;
}

.campaign-badge {
    display: grid;
    gap: 4px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--yellow-light);
    color: #3b2b00;
}

.campaign-badge span {
    color: #6b5a22;
}

.new-product-price-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    width: fit-content;
    margin-bottom: 18px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #f3f4f6;
    color: #333;
    font-weight: 800;
}

.new-product-price-badge span {
    color: var(--muted);
    font-weight: 650;
}

.new-product-price-badge del {
    color: #777;
}

.new-product-price-badge strong {
    color: #c3272b;
}

.campaign-banner-stack {
    display: grid;
    overflow: hidden;
    border-radius: 14px;
    margin-bottom: 18px;
}

.campaign-banner-stack.hidden {
    display: none;
}

.campaign-banner {
    grid-area: 1 / 1;
    min-width: 0;
    height: clamp(96px, 10vw, 128px);
    display: grid;
    align-content: center;
    gap: 4px;
    padding: 18px 22px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--campaign-banner-background, #111);
    color: var(--campaign-banner-text, white);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-102%);
    transition: transform .6s ease, opacity .35s ease, visibility .6s;
}

.campaign-banner span {
    color: inherit;
    opacity: .82;
}

.campaign-banner.is-active {
    z-index: 2;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.campaign-banner.is-exiting {
    z-index: 1;
    visibility: visible;
    transform: translateX(102%);
}

.campaign-banner-image {
    padding: 0;
    overflow: hidden;
    background: transparent;
}

.campaign-banner-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.status {
    padding: 8px 14px;

    border-radius: 999px;

    font-weight: 700;
}

.available {
    background: #dff7df;
    color: #168116;
}

.sold {
    background: #ffd9d9;
    color: #c90000;
}

.condition-box {
    background: #f5f5f5;

    padding: 18px;

    border-radius: 16px;

    margin-bottom: 20px;
}

.stock-line {
    margin-top: 10px;
}

.meta {
    display: flex;
    gap: 20px;

    color: var(--muted);

    margin-bottom: 30px;
}

.meta>div {
    display: flex;
    align-items: center;
    gap: 6px;
}

.inline-icon,
.contact-btn img,
.disclaimer-item img {
    width: 18px;
    height: 18px;
    display: block;
    flex-shrink: 0;
}

.product-description h3 {
    margin-bottom: 10px;
}

.product-description p {
    line-height: 1.8;
    color: #444;
    overflow-wrap: anywhere;
}

.product-specs {
    margin-top: 24px;
}

.product-specs h3 {
    margin-bottom: 12px;
}

.product-specs dl {
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.product-specs div {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 15px;
    padding: 14px 16px;
    background: #fff;
}

.product-specs div:nth-child(even) {
    background: #f7f7f7;
}

.product-specs dt {
    font-weight: 700;
}

.product-specs dd {
    color: #444;
}

.hidden {
    display: none !important;
}

.action-buttons {
    margin-top: 30px;

    display: flex;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 14px 20px;

    border-radius: 14px;

    font-weight: 700;

    text-align: center;
}

.btn-primary {
    background: var(--yellow);
    color: #111;
}

.btn-secondary {
    background: #f5f5f5;
}

.btn-dark {
    border: 0;
    background: #111;
    color: white;
    cursor: pointer;
}

.btn-dark:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.btn-dark img {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    filter: invert(1);
}

/* FOOTER */

.footer {
    background: #111;
    color: white;

    padding: 60px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) minmax(220px, .9fr) minmax(220px, .9fr);
    gap: 28px;
    align-items: start;
}

.footer-logo {
    font-size: 1.7rem;
    font-weight: 800;
}

.footer-logo span {
    color: var(--yellow);
}

.footer p {
    margin-top: 10px;
    color: #bbb;
    line-height: 1.6;
}

.footer-contact,
.footer-links {
    display: grid;
    gap: 10px;
}

.footer-contact h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.footer-contact a,
.footer-contact span,
.footer-links a {
    color: #ddd;
    line-height: 1.5;
}

/* MOBILE */

@media(max-width:900px) {

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

    .main-image img {
        height: 350px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .btn {
        width: 100%;
    }

    .product-info h1 {
        font-size: 2rem;
    }

    .price-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .meta {
        flex-direction: column;
        gap: 10px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }
}

@media(max-width:700px) {

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

    .nav-container {
        min-height: 76px;
        height: auto;
        padding: 14px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .logo {
        font-size: 1.45rem;
        line-height: 1.15;
    }

    .nav {
        width: 100%;
        gap: 12px;
        justify-content: space-between;
    }

    .breadcrumbs {
        padding: 18px 0;
        font-size: .9rem;
    }

    .product-layout {
        gap: 22px;
    }

    .gallery,
    .product-info {
        padding: 16px;
        border-radius: 18px;
    }

    .main-image {
        border-radius: 14px;
    }

    .main-image img {
        height: min(72vw, 320px);
    }

    .thumbnail-row {
        gap: 8px;
        padding-bottom: 4px;
    }

    .thumbnail {
        width: 72px;
        height: 72px;
        border-radius: 12px;
    }

    .product-info h1 {
        font-size: 1.65rem;
        line-height: 1.2;
    }

    .price-row {
        gap: 10px;
    }

    .product-price {
        font-size: 1.75rem;
    }

    .status,
    .product-category {
        font-size: .9rem;
    }

    .condition-box,
    .contact-box,
    .product-disclaimer {
        padding: 16px;
        border-radius: 14px;
    }

    .contact-btn,
    .btn {
        min-height: 48px;
        text-align: center;
    }

    .product-specs div {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 12px 14px;
    }

}

.contact-box {
    margin-top: 30px;
    padding: 24px;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #dddddd;
}

.contact-box h3 {
    margin-bottom: 10px;
}

.contact-box p {
    color: #666;
    margin-bottom: 16px;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;

    padding: 14px;

    border-radius: 12px;

    font-weight: 700;

    transition: .25s;
}

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

.phone {
    background: #f5c518;
    color: #111;
}

.email {
    background: #ececec;
    color: #111;
}

.product-disclaimer {
    margin-top: 20px;

    background: #fff8df;

    border: 1px solid #f0d46c;

    border-radius: 16px;

    padding: 18px;

    display: flex;
    flex-direction: column;
    gap: 12px;
}

.disclaimer-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    color: #444;

    font-size: 0.95rem;
    line-height: 1.5;
}

.disclaimer-item strong {
    color: #111;
}

@media(max-width:700px) {

    .contact-box,
    .product-disclaimer {
        padding: 16px;
    }

    .contact-btn {
        width: 100%;
        justify-content: center;
        line-height: 1.25;
    }

    .disclaimer-item {
        font-size: .9rem;
    }

}
