:root {
    --primary-bg: #fafafa;
    --primary-text: #1a1a1a;
    --secondary-bg: #f0f0ff;
    --secondary-text: #4b5563;
    --accent-bg: #7c3aed;
    --accent-text: #ffffff;
    --footer-bg: #0d0d1a;
    --footer-text: #f9fafb;
    --card-bg: #ffffff;
    --border-color: #ddd6fe;
    --font-family: 'DM Sans', 'Syne', sans-serif;
    --base-font-size: 16px;
    --heading-font-weight: 700;
    --border-radius: 0.5rem;
    --button-padding: 0.75rem 1.5rem;
    --container-max-width: 1280px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--base-font-size);
    color: var(--primary-text);
    background-color: var(--primary-bg);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: var(--heading-font-weight);
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 1rem;
}

a,
a:hover,
a:focus {
    text-decoration: none;
    transition: color 0.3s ease, background-color 0.3s ease;
}

button {
    cursor: pointer;
    border: none;
    padding: var(--button-padding);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    font-weight: 600;
}

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

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

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }

    h2 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    h3 {
        font-size: clamp(1.25rem, 5vw, 1.75rem);
    }

    body {
        font-size: 15px;
    }

    .mobile-text-break {
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-all;
    }
}

@media (max-width: 640px) {
    :root {
        --base-font-size: 14px;
    }
}

/* ===== header ===== */
#main_header {
    overflow: hidden;
}

.nav-link {
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-bg) !important;
}

.mobile-menu-overlay {
    hyphens: auto;
}

.mobile-menu-overlay .nav-link {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-overlay .nav-link:last-of-type {
    border-bottom: none;
}

/* ===== hero_section ===== */
#hero {
    hyphens: auto;
}

#hero .js-hero-title {
    line-height: 1.1;
}

#hero .btn:hover {
    transform: translateY(-3px);
    background-color: #be123c !important;
}

@media (max-width: 767.98px) {
    #hero .js-hero-title {
        font-size: 1.125rem !important;
        line-height: 1.2;
    }

    #hero p {
        font-size: 0.875rem !important;
        line-height: 1.3;
    }

    #hero {
        min-height: 80vh;
    }
}

@media (min-width: 768px) {
    #hero .js-hero-title {
        font-size: 3.5rem;
    }

    #hero p {
        font-size: 1.25rem;
    }
}

/* ===== product_categories ===== */
#categories h2 {
    font-size: 1.75rem;
    hyphens: auto;
    line-height: 1.2;
}

#categories p {
    font-size: 1rem;
}

.js-category-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.js-category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.category-img-container {
    overflow: hidden;
    position: relative;
}

@media (max-width: 767px) {
    #categories h2 {
        font-size: 1rem;
    }

    #categories h3 {
        font-size: 0.875rem;
    }

    #categories p {
        font-size: 0.875rem;
    }
}

/* ===== featured_tshirts ===== */
#featured_products h2 {
    font-size: 1.5rem;
    line-height: 1.2;
    hyphens: auto;
}

#featured_products h3 {
    font-size: 1rem;
    line-height: 1.3;
    hyphens: auto;
}

#featured_products .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color) !important;
}

#featured_products .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08) !important;
}

#featured_products .badge {
    color: var(--secondary-text) !important;
}

@media (max-width: 767px) {
    #featured_products h2 {
        font-size: 1rem;
    }

    #featured_products h3 {
        font-size: 0.875rem;
    }

    #featured_products {
        padding: 2.5rem 0;
    }
}

/* ===== kingkong_section ===== */
#kingkong_launch h2 {
    font-size: 2.5rem;
}

@media (max-width: 767px) {
    #kingkong_launch h2 {
        font-size: 1rem !important;
    }

    #kingkong_launch p.lead {
        font-size: 0.9rem;
    }

    #kingkong_launch h3 {
        font-size: 0.875rem !important;
    }

    #kingkong_launch .card-img-top {
        height: 300px !important;
    }
}

.js-share-btn {
    transition: transform 0.2s ease, background-color 0.2s ease;
    cursor: pointer;
}

.js-share-btn:hover {
    transform: translateY(-2px);
    filter: brightness(110%);
}

.js-share-btn:active {
    transform: translateY(0);
}

/* ===== promo_banner ===== */
#promo {
    min-height: 350px;
    display: flex;
    align-items: center;
    background-color: var(--accent-bg);
    position: relative;
    overflow: hidden;
}

.promo-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("assets/uploads/promo-banner-background.webp");
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.promo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 2;
}

.promo-title {
    color: var(--accent-text);
    font-size: 2.5rem;
    hyphens: auto;
    line-height: 1.2;
}

.promo-text {
    color: var(--accent-text);
    font-size: 1.25rem;
    line-height: 1.5;
}

.promo-badge {
    background-color: var(--primary-bg);
    color: var(--primary-text);
    font-size: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.promo-badge svg {
    color: var(--accent-bg);
}

@media (max-width: 767px) {
    #promo {
        min-height: 280px;
    }

    .promo-title {
        font-size: 1rem !important;
        line-height: 1.2;
        margin-bottom: 0.5rem !important;
    }

    .promo-text {
        font-size: 0.875rem !important;
        line-height: 1.3;
        margin-bottom: 1rem !important;
    }

    .promo-badge {
        font-size: 0.75rem !important;
        padding: 0.5rem 1rem !important;
    }
}

/* ===== custom_process ===== */
#printing_steps {
    hyphens: auto;
}

#printing_steps h2 {
    font-size: 1.125rem;
    line-height: 1.2;
}

#printing_steps h3 {
    font-size: 0.875rem;
    line-height: 1.3;
}

@media (min-width: 768px) {
    #printing_steps h2 {
        font-size: 2.25rem;
    }

    #printing_steps h3 {
        font-size: 1.25rem;
    }
}

#printing_steps .card {
    transition: transform 0.3s ease;
}

#printing_steps .card:hover {
    transform: translateY(-5px);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    max-width: 980px;
    margin: 0 auto;
}

.advantage-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    min-height: 112px;
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(17, 24, 39, 0.04);
}

.advantage-item-wide {
    grid-column: 1 / -1;
}

.advantage-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-bg);
    background: rgba(225, 29, 72, 0.08);
    border-radius: 50%;
}

.advantage-label {
    display: block;
    color: var(--primary-text);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.35rem;
}

.advantage-item p {
    color: var(--secondary-text);
    font-size: 0.9rem;
    line-height: 1.45;
    margin: 0;
}

/* ===== custom_order_form ===== */
#order_form .form-control:focus,
#order_form .form-select:focus {
    border-color: var(--accent-bg);
    box-shadow: 0 0 0 0.2rem rgba(225, 29, 72, 0.1);
}

#order_form .btn:hover {
    filter: brightness(90%);
    transition: all 0.3s ease;
}

#order_form .js-tokped-submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    filter: grayscale(0.2);
}

@media (max-width: 767px) {
    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .advantage-item {
        min-height: auto;
    }

    #order_form h2 {
        font-size: 1rem !important;
    }

    #order_form .p-4 {
        padding: 1.5rem !important;
    }
}

/* ===== faq_section ===== */
.js-faq-item.active {
    border-color: var(--accent-bg) !important;
}

.js-faq-trigger:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

@media (max-width: 767px) {
    h2 {
        font-size: 1rem !important;
    }

    .js-faq-trigger span {
        font-size: 0.875rem !important;
    }

    .js-faq-content div {
        font-size: 0.875rem !important;
    }
}

/* ===== footer ===== */
#footer a {
    transition: all 0.3s ease;
}

#footer a:hover {
    color: var(--accent-bg) !important;
}

#footer .footer-logo {
    filter: brightness(0) invert(1);
}

@media (max-width: 767px) {
    #footer h2 {
        font-size: 1rem !important;
        line-height: 1.2 !important;
    }

    #footer h3 {
        font-size: 0.875rem !important;
        line-height: 1.2 !important;
    }

    #footer p,
    #footer a,
    #footer span {
        font-size: 0.8rem !important;
    }
}
