﻿:root {
    --first-color: #c7b100;
    --second-color: #212121;
    --third-color: #605616;
    --header-bg: #424141;
    --footer-bg: #2a2a2a;
    --teal-overlay: rgba(0, 160, 175, 0.82);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #fff;
    background-color: var(--second-color);
    margin: 0;
}

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

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ── Header ── */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
}

.hdr-container {
    background-color: var(--header-bg);
    height: 80px;
}

.hdr-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.hdr-logo img {
    display: block;
}

.hdr-nav .nav {
    display: flex;
    gap: 8px;
}

.hdr-nav .nav-link {
    color: #fff;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    transition: color 0.2s;
}

.hdr-nav .nav-link:hover,
.hdr-nav .nav-link.active {
    color: var(--first-color);
}

/* ── Hero Carousel ── */

.sec1-container {
    height: calc(80vh - 80px);
    min-height: 400px;
    width: 100%;
    overflow: hidden;
}

.sec1-container .owl-carousel,
.sec1-container .owl-stage-outer,
.sec1-container .owl-stage,
.sec1-container .owl-item,
.sec1-container .owl-item .item {
    height: 100%;
}

.hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: blur(4px);
    transform: scale(1.08);
}

.hero-caption {
    position: absolute;
    bottom: 48px;
    left: 48px;
    z-index: 2;
    display: flex;
    align-items: stretch;
    gap: 16px;
}

.hero-caption-bar {
    display: block;
    width: 8px;
    min-height: 48px;
    background-color: var(--first-color);
    flex-shrink: 0;
}

.hero-caption p {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    align-self: center;
}

/* ── Product Carousel ── */

.sec2-container {
    padding: 60px 0 70px;
    background-color: var(--second-color);
}

.sec2-container .owl-stage {
    display: flex;
}

.sec2-container .owl-item {
    display: flex;
    height: auto;
}

.sec2-container .owl-item > .item {
    display: flex;
    width: 100%;
}

.product-card-link {
    display: flex;
    width: 100%;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.product-card-link:hover {
    transform: translateY(-4px);
}

.product-card-link:hover .product-card {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.product-card {
    border-radius: 16px;
    overflow: hidden;
    background-color: var(--third-color);
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
    transition: box-shadow 0.2s ease;
    cursor: pointer;
}

.product-card-img {
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-card-body {
    padding: 20px 22px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 0;
}

.product-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: #fff;
}

.product-card-desc {
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    flex: 1;
    min-height: 0;
}

.product-card-desc-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: #fff;
    text-decoration: underline;
    font-weight: 600;
}

.product-card-link:hover .read-more {
    color: var(--first-color);
}

.product-card-price {
    display: block;
    text-align: right;
    font-size: 1.35rem;
    font-weight: 700;
    margin-top: 16px;
    color: #fff;
}

/* ── Security Section ── */

.sec3-container {
    position: relative;
    width: 100%;
    min-height: 420px;
    overflow: hidden;
}

.sec3-bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/mtasa_pictures/5.png');
    background-size: cover;
    background-position: center 30%;
    z-index: 1;
}

.sec3-overlay {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 2;
    width: min(42%, 520px);
    min-height: 380px;
    background-color: var(--teal-overlay);
    border-radius: 20px 0 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
    text-align: center;
}

.sec3-icon {
    width: 140px;
    height: auto;
    margin-bottom: 24px;
}

.sec3-title {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 700;
    margin: 0 0 10px;
    color: #fff;
}

.sec3-subtitle {
    font-size: 1rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
}

/* ── Footer ── */

.site-footer {
    background-color: var(--footer-bg);
    padding: 48px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 32px;
    align-items: start;
    padding-bottom: 40px;
}

.footer-logo img {
    display: block;
}

.footer-heading {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 16px;
    color: #fff;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--first-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 18px 0;
    display: flex;
    justify-content: flex-end;
}

.footer-copy {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ── Owl Carousel Nav ── */

.owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    padding: 0 12px;
    margin: 0;
}

.owl-nav button {
    pointer-events: all;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.owl-nav button:hover {
    opacity: 1;
}

.owl-nav button img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.sec1-container .owl-carousel {
    position: relative;
}

.sec2-container .owl-carousel {
    position: relative;
    padding: 0 40px;
}

.sec2-container .owl-nav {
    padding: 0;
    left: 0;
    right: 0;
}

/* ── Product Detail Page ── */

.product-detail {
    padding: 48px 0 80px;
    background-color: var(--second-color);
    min-height: calc(100vh - 80px - 220px);
}

.product-detail-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    margin: 0 0 36px;
    color: #fff;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr minmax(220px, 300px);
    gap: 48px;
    align-items: start;
}

.product-detail-main {
    min-width: 0;
}

.product-detail-gallery {
    border-radius: 16px;
    overflow: hidden;
    background-color: var(--third-color);
}

.product-detail-gallery .owl-carousel {
    position: relative;
}

.product-detail-gallery .owl-item img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: contain;
    display: block;
}

.product-media-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background-color: #000;
}

.product-media-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.product-detail-gallery .owl-nav {
    padding: 0 16px;
}

.product-detail-gallery .owl-nav button img {
    width: 32px;
    height: 32px;
}

.product-detail-purchase {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 8px;
}

.product-detail-price-label {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    margin: 0 0 4px;
    color: #fff;
}

.product-detail-price {
    font-size: clamp(2.25rem, 4vw, 3rem);
    font-weight: 700;
    margin: 0 0 28px;
    color: #fff;
    line-height: 1.1;
}

.btn-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 280px;
    padding: 18px 48px;
    background-color: var(--first-color);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.15s;
}

.btn-buy:hover {
    background-color: #d9c400;
    color: #fff;
    transform: translateY(-1px);
}

.product-detail-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
    margin: 24px 0 0;
    max-width: 640px;
}

/* ── Buy Modal ── */

body.modal-open {
    overflow: hidden;
}

.buy-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1050;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background-color: rgba(0, 0, 0, 0.65);
}

.buy-modal.is-open {
    display: flex;
}

.buy-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 440px;
    padding: 36px 32px 32px;
    border-radius: 16px;
    background-color: var(--third-color);
    text-align: center;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.buy-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    padding: 0;
    border: none;
    background: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
}

.buy-modal-close:hover {
    color: #fff;
}

.buy-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 16px;
    color: #fff;
}

.buy-modal-text {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.9);
}

.buy-modal-discord {
    display: inline-block;
    margin-bottom: 24px;
    color: var(--first-color);
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: underline;
    word-break: break-all;
}

.buy-modal-discord:hover {
    color: #d9c400;
}

.buy-modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    padding: 12px 32px;
    border: none;
    border-radius: 10px;
    background-color: var(--first-color);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.15s;
}

.buy-modal-btn:hover {
    background-color: #d9c400;
    transform: translateY(-1px);
}

/* ── About Us Page ── */

.about-page {
    padding: 72px 0 96px;
    background-color: var(--second-color);
    min-height: calc(100vh - 80px - 220px);
}

.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    margin-bottom: 80px;
}

.about-section:last-child {
    margin-bottom: 0;
}

.about-section-img {
    border-radius: 24px;
    overflow: hidden;
}

.about-section-img img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.about-section-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    margin: 0 0 16px;
    color: #fff;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--first-color);
    display: inline-block;
}

.about-section-text {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.92);
    margin: 20px 0 0;
}

/* ── Responsive ── */

@media (max-width: 991px) {
    .sec3-overlay {
        width: 55%;
        min-height: 320px;
    }

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

    .footer-logo {
        grid-column: 1 / -1;
    }
}

@media (max-width: 991px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .product-detail-purchase {
        align-items: stretch;
    }

    .btn-buy {
        max-width: none;
    }
}

@media (max-width: 991px) {
    .about-section,
    .about-section-reverse {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 56px;
    }

    .about-section-reverse .about-section-img {
        order: -1;
    }
}

@media (max-width: 767px) {
    .about-page {
        padding: 40px 0 64px;
    }

    .about-section {
        margin-bottom: 48px;
    }

    .product-detail {
        padding: 32px 0 60px;
    }

    .product-detail-title {
        margin-bottom: 24px;
    }

    .hero-caption {
        left: 24px;
        bottom: 32px;
    }

    .sec3-container {
        min-height: 360px;
    }

    .sec3-overlay {
        width: 75%;
        min-height: 280px;
        padding: 28px 20px;
    }

    .sec3-icon {
        width: 100px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        display: flex;
        justify-content: center;
    }

    .footer-bottom {
        justify-content: center;
    }

    .sec2-container .owl-carousel {
        padding: 0 36px;
    }
}
