/*
  FORTETSIA - Premium Design System
  Theme: Light Marble & Gold
*/

:root {
    --bg-color: #ffffff;
    --marble-accent: #f5f5f5;
    --gold: #D4AF37;
    --gold-dark: #B8860B;
    --text-primary: #1A1A1A;
    --text-secondary: #555555;
    --white: #ffffff;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Marble Background Pattern */
.marble-bg {
    background:
        radial-gradient(circle at 0% 0%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
        linear-gradient(45deg, #ffffff 0%, #f9f9f9 100%);
    position: relative;
}

.marble-bg::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/marble-white.png');
    /* Light subtle texture */
    opacity: 0.15;
    pointer-events: none;
}

/* Luxury Sections */
section {
    padding: 100px 10%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Buttons */
.btn-gold {
    display: inline-block;
    padding: 15px 35px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    border-radius: 2px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(184, 134, 11, 0.2);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(184, 134, 11, 0.3);
}

/* Header */
header {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('hero.jpg') no-repeat center center/cover;
}

header .hero-content h1,
header .hero-content p {
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.nav-bar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 30px 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
}

/* Base Link Styles (Legacy/Default) */
.nav-links a {
    margin-left: 30px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

/* Transparent mode for Hero pages */
.nav-bar.nav-transparent .logo img {
    filter: brightness(0) invert(1);
}

.nav-bar.nav-transparent .nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Scrolled state (Transformation) */
.nav-bar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    padding: 15px 4%;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.nav-bar.scrolled .logo img {
    filter: brightness(1) invert(0) !important;
}

@media (min-width: 921px) {
    .nav-bar.scrolled .nav-links a {
        color: var(--text-primary) !important;
        text-shadow: none !important;
    }
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
    transition: var(--transition);
}

.nav-links a.active-link {
    color: var(--gold);
    border-bottom: 2px solid var(--gold);
}

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

/* CTA Button in Nav */
.btn-cta {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 4px;
    margin-left: 20px;
    font-size: 0.8rem !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    filter: brightness(1.1);
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 5000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--white);
    margin: 10% auto;
    padding: 40px;
    border: 1px solid var(--gold);
    width: 90%;
    max-width: 500px;
    border-radius: 4px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 15px;
    color: var(--text-secondary);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--gold);
}

.modal-content h2 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.modal-content p {
    margin-bottom: 25px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-form input {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 2px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.modal-form input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}


/* Subpage Header */
.subpage-header {
    padding-top: 150px;
    padding-bottom: 50px;
    text-align: center;
    background: var(--marble-accent);
}

/* Hero Content */
.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Grid Skeleton */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.product-card {
    background: white;
    border: 1px solid #eee;
    padding: 20px;
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
}

.product-card:not(.custom-order-card)>p {
    display: none;
}

.product-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 12px;
    height: 320px;
    background: #fff;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    margin-bottom: 0;
    border-radius: 2px;
    display: block;
    transition: opacity 0.25s ease;
}

/* Hover hint overlay */
.door-hover-swap::after {
    content: '🔄 Внутрішня';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: 20px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
    backdrop-filter: blur(4px);
}

.door-hover-swap:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.product-image-placeholder {
    width: 100%;
    height: 400px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #ccc;
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer {
    background: #111;
    color: #ccc;
    padding: 60px 10% 20px;
    text-align: center;
}

.footer-logo {
    font-size: 1.8rem;
    margin-bottom: 20px;
    display: block;
    color: var(--gold);
}

.footer-contacts {
    color: #ccc !important;
}

.footer-contacts strong {
    color: #fff;
}

.footer-contacts a:hover {
    color: var(--gold) !important;
}

footer .logo img {
    filter: invert(1) hue-rotate(180deg);
}

/* Cart Button in Navbar */
.cart-btn {
    position: relative;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 8px 14px;
    border-radius: 4px;
    margin-left: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
}

.cart-btn:hover {
    background: var(--gold);
    color: white;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.cart-btn svg {
    stroke: currentColor;
}

.cart-badge {
    background: var(--gold-dark);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    transition: transform 0.2s ease;
}

.cart-badge.bump {
    transform: scale(1.3);
}

/* Nav Transparent Cart Button Adjustment */
.nav-bar.nav-transparent:not(.scrolled) .cart-btn {
    border-color: rgba(255, 255, 255, 0.8);
    color: white;
}

.nav-bar.nav-transparent:not(.scrolled) .cart-btn:hover {
    background: var(--gold);
    border-color: var(--gold);
}

/* Product Card Enhancements */
.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.product-price {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold-dark);
}

.btn-add-cart {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 2px;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.35);
}

.btn-add-cart:active {
    transform: translateY(0);
}

/* Cart Modal Layout */
.cart-modal-content {
    max-width: 600px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.cart-items-container {
    max-height: 380px;
    overflow-y: auto;
    margin: 20px 0;
    padding-right: 5px;
}

.cart-items-container::-webkit-scrollbar {
    width: 5px;
}

.cart-items-container::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 3px;
}

.cart-empty-msg {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px 20px;
    font-size: 1.05rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart-item-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 0.9rem;
    color: var(--gold-dark);
    font-weight: 600;
}

.cart-qty-ctrl {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f8f8;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #eee;
}

.btn-qty {
    background: none;
    border: none;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    transition: background 0.2s;
}

.btn-qty:hover {
    background: #e5e5e5;
    color: var(--gold-dark);
}

.cart-qty-val {
    font-weight: 600;
    font-size: 0.95rem;
    min-width: 18px;
    text-align: center;
}

.cart-remove-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}

.cart-remove-btn:hover {
    color: #e74c3c;
}

/* Cart Summary Footer */
.cart-summary {
    border-top: 2px solid var(--marble-accent);
    padding-top: 20px;
    margin-top: auto;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.total-price {
    font-family: 'Playfair Display', serif;
    color: var(--gold-dark);
    font-size: 1.4rem;
}

.cart-actions {
    display: flex;
    gap: 15px;
}

.btn-secondary {
    background: #f0f0f0;
    color: var(--text-secondary);
    border: none;
    padding: 12px 20px;
    border-radius: 2px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: #e0e0e0;
    color: var(--text-primary);
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #1a1a1a;
    color: white;
    padding: 14px 24px;
    border-radius: 4px;
    border-left: 4px solid var(--gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* Navbar Dropdown for Catalog Subcategories */
.nav-item-dropdown {
    position: relative;
    display: inline-block;
}

.nav-item-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #ffffff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 4px;
    padding: 10px 0;
    z-index: 1100;
    animation: fadeInDown 0.3s ease-out forwards;
}

.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown:focus-within .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block !important;
    margin-left: 0 !important;
    padding: 10px 20px !important;
    font-size: 0.82rem !important;
    color: var(--text-primary) !important;
    text-transform: none !important;
    text-shadow: none !important;
    transition: background 0.2s, color 0.2s !important;
    border-bottom: 1px solid #f8f8f8;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background: rgba(212, 175, 55, 0.08);
    color: var(--gold-dark) !important;
    padding-left: 25px !important;
}

.dropdown-menu a.sale-link {
    color: #e74c3c !important;
    font-weight: 600 !important;
}

.dropdown-menu a.sale-link:hover {
    background: rgba(231, 76, 60, 0.08);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Catalog Filter Tabs Bar */
.catalog-filters-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 30px auto 40px;
    max-width: 900px;
    padding: 0 15px;
}

.filter-tab {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    color: var(--text-secondary);
    padding: 12px 22px;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.filter-tab:hover {
    border-color: var(--gold);
    color: var(--gold-dark);
    transform: translateY(-2px);
}

.filter-tab.active {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}

.filter-tab.sale-tab {
    border-color: #e74c3c;
    color: #e74c3c;
}

.filter-tab.sale-tab.active {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.35);
}

/* Product Tag & Sale Formatting */
.product-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    color: white;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.product-tag.tag-sale {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.product-tag.tag-stock {
    background: linear-gradient(135deg, #27ae60, #2ea043);
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.95rem;
    margin-right: 8px;
    font-weight: 400;
}

/* =============================================================
   PRODUCT CARD HOVER & POINTER
   ============================================================= */
.product-card {
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.12);
}

/* =============================================================
   FULL PAGE PRODUCT VIEW OVERLAY (E-Commerce Style)
   ============================================================= */
.product-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    height: 100vh;
    background: #ffffff;
    z-index: 4000;
    display: none;
    overflow-x: hidden;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.25s ease;
    box-sizing: border-box;
}

.product-detail-modal.active {
    display: block;
    opacity: 1;
}

/* Full Page Header Bar */
.pfull-topbar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #eaeaea;
    padding: 12px 5%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    z-index: 100;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

.pfull-topbar .pfull-back-btn {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border: 1px solid var(--gold);
    color: #ffffff;
    padding: 9px 18px;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(184, 134, 11, 0.28);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.pfull-topbar .pfull-back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(184, 134, 11, 0.45);
    background: linear-gradient(135deg, #e5be42, var(--gold));
    color: #ffffff;
}

.pfull-topbar .pfull-back-btn:active {
    transform: translateY(0);
}

.pfull-topbar .logo {
    justify-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pfull-topbar .logo img {
    height: 38px;
    width: auto;
    display: block;
}

.pfull-topbar .cart-btn {
    justify-self: end;
}

.pfull-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 30px 20px 80px;
    box-sizing: border-box;
    width: 100%;
}

/* Breadcrumbs */
.pfull-breadcrumbs {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pfull-breadcrumbs a {
    color: #555;
    text-decoration: none;
}

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

/* Title & Sub-header */
.pfull-header-section {
    margin-bottom: 30px;
}

.pfull-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.25;
}

.pfull-meta-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.88rem;
    color: #666;
    flex-wrap: wrap;
}

.pfull-status-stock {
    color: #27ae60;
    font-weight: 600;
}

.pfull-sku {
    color: #888;
}

/* Main Grid Layout */
.pfull-main-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 48px;
    align-items: start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Left Gallery Column */
.pfull-gallery-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

.pfull-main-img-box {
    width: 100%;
    max-width: 360px;
    height: 580px;
    background: #fbfbfb;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.pfull-main-img-box img {
    max-width: 96%;
    max-height: 96%;
    object-fit: contain;
    transition: opacity 0.25s ease, transform 0.3s ease;
}

.pfull-main-img-box img:hover {
    transform: scale(1.03);
}

.pfull-gallery-thumbs {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.pfull-thumb-btn {
    width: 75px;
    height: 90px;
    border: 2px solid #e5e5e5;
    border-radius: 6px;
    padding: 4px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
}

.pfull-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
}

.pfull-thumb-btn.active,
.pfull-thumb-btn:hover {
    border-color: var(--gold-dark);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
}

/* Video Box in Main Display Area */
.pfull-video-box {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    background: #000;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
    z-index: 5;
}

.pfull-video-box.active {
    display: flex;
}

/* Vertical video iframe wrapper: fills the 9:16 vertical box with NO sidebars */
.pfull-video-box .pfull-v-wrap {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Horizontal (YouTube normal) iframe wrapper */
.pfull-video-box .pfull-h-wrap {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: 100%;
    position: relative;
}

.pfull-video-box .pfull-v-wrap iframe,
.pfull-video-box .pfull-v-wrap video,
.pfull-video-box .pfull-h-wrap iframe,
.pfull-video-box .pfull-h-wrap video {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: #000;
}

/* Direct link button (top-right corner of video) */
.pfull-video-direct-link {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 20;
    background: rgba(0,0,0,0.72);
    color: #fff;
    border: 1px solid rgba(212,175,55,0.5);
    border-radius: 18px;
    padding: 4px 11px;
    font-size: 0.7rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 3px;
    backdrop-filter: blur(6px);
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.pfull-video-direct-link:hover {
    background: var(--gold);
    color: #111;
    border-color: var(--gold);
}

/* Video Thumbnail Button */
.pfull-thumb-btn.pfull-thumb-video {
    background: linear-gradient(145deg, #1f1f1f, #141414);
    border: 2px solid #3a3a3a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #ffffff;
    position: relative;
}

.pfull-thumb-btn.pfull-thumb-video:hover,
.pfull-thumb-btn.pfull-thumb-video.active {
    border-color: var(--gold);
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4);
}

.pfull-thumb-video-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease;
}

.pfull-thumb-btn.pfull-thumb-video:hover .pfull-thumb-video-icon {
    transform: scale(1.1);
}

.pfull-thumb-video-icon svg {
    width: 15px;
    height: 15px;
    margin-left: 2px;
    fill: currentColor;
}

.pfull-thumb-video-text {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--gold);
    text-transform: uppercase;
}

/* Lower Left Tabs Section (Description, Delivery, Payment, Guarantee) */
.pfull-tabs-section {
    margin-top: 35px;
    border-top: 1px solid #eee;
    padding-top: 25px;
}

.pfull-tab-nav {
    display: flex;
    gap: 20px;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 20px;
    overflow-x: auto;
}

.pfull-tab-link {
    padding: 10px 4px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #666;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.pfull-tab-link:hover,
.pfull-tab-link.active {
    color: var(--text-primary);
    border-bottom-color: var(--gold-dark);
}

.pfull-tab-content {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.pfull-tab-pane {
    display: none;
}

.pfull-tab-pane.active {
    display: block;
}

/* Right Details Column */
.pfull-details-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.pfull-price-block {
    font-size: 2.3rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 25px;
    display: flex;
    align-items: baseline;
    gap: 15px;
}

.pfull-old-price {
    font-size: 1.2rem;
    color: #999;
    text-decoration: line-through;
    font-weight: 400;
}

/* Side / Option Selector */
.pfull-option-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 10px;
}

.pfull-sides-picker {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.pfull-side-btn {
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pfull-side-btn.active,
.pfull-side-btn:hover {
    border-color: var(--gold-dark);
    background: rgba(212, 175, 55, 0.08);
    color: var(--gold-dark);
}

/* Quantity & Buy Action Row */
.pfull-buy-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.pfull-qty-picker {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
    height: 48px;
}

.pfull-qty-btn {
    width: 38px;
    height: 100%;
    background: #f7f7f7;
    border: none;
    font-size: 1.2rem;
    color: #333;
    cursor: pointer;
    transition: background 0.2s;
}

.pfull-qty-btn:hover {
    background: #e8e8e8;
}

.pfull-qty-input {
    width: 45px;
    height: 100%;
    border: none;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    outline: none;
}

.pfull-btn-buy {
    height: 48px;
    padding: 0 32px;
    background: #d92525;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(217, 37, 37, 0.3);
}

.pfull-btn-buy:hover {
    background: #b81b1b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 37, 37, 0.4);
}

.pfull-btn-quick {
    height: 48px;
    padding: 0 24px;
    background: #fff;
    color: #333;
    border: 1px solid #333;
    border-radius: 4px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pfull-btn-quick:hover {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold-dark);
}

/* Specifications Table (Exact replica of Straj screenshot format) */
.pfull-specs-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: #111;
    border-bottom: 2px solid #111;
    padding-bottom: 8px;
}

.pfull-specs-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.pfull-specs-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.pfull-specs-table td {
    padding: 10px 0;
    font-size: 0.88rem;
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: break-word;
}

.pfull-specs-table td:first-child {
    color: #777;
    width: 45%;
    padding-right: 15px;
    vertical-align: top;
}

.pfull-specs-table td:last-child {
    color: #111;
    font-weight: 500;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Mobile Backdrop Overlay — clean dimming without heavy blur */
.mobile-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    transition: opacity 0.3s ease;
}

.mobile-backdrop.active {
    display: block;
}

/* Mobile Actions Group (Cart + Toggle) */
.nav-mobile-group {
    display: none;
}

/* Mobile Toggle Hamburger Button */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1005;
    flex-direction: column;
    justify-content: space-around;
    width: 38px;
    height: 32px;
}

.mobile-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.nav-bar.scrolled .mobile-toggle span {
    background-color: var(--text-primary);
    box-shadow: none;
}

.mobile-toggle.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--gold) !important;
}

.mobile-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--gold) !important;
}

/* =============================================================
   RESPONSIVE MEDIA QUERIES
   ============================================================= */
@media (max-width: 920px) {

    /* Layout & Sections */
    section {
        padding: 50px 5%;
    }

    /* Navbar Mobile */
    .nav-bar {
        padding: 14px 4%;
        background: #111111;
    }

    .nav-bar.nav-transparent {
        background: #111111;
    }

    .nav-bar.scrolled {
        background: #ffffff;
    }

    .logo img {
        height: 38px;
    }

    .nav-bar:not(.scrolled) .logo img {
        filter: invert(1) hue-rotate(180deg) !important;
    }

    .nav-mobile-group {
        display: flex !important;
        align-items: center;
        gap: 12px;
        z-index: 1005;
    }

    .mobile-cart-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 6px;
        margin: 0 !important;
        padding: 6px 12px !important;
        width: auto !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1.5px solid var(--gold) !important;
        color: var(--gold) !important;
        border-radius: 6px !important;
        cursor: pointer;
        transition: var(--transition);
        text-decoration: none;
    }

    .nav-bar.scrolled .mobile-cart-btn {
        background: #fdfdfd !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }

    .mobile-cart-btn:hover {
        background: var(--gold) !important;
        color: #ffffff !important;
    }

    .mobile-cart-btn .cart-badge {
        background: var(--gold-dark);
        color: #ffffff;
        font-size: 0.72rem;
        font-weight: 700;
        min-width: 18px;
        height: 18px;
        border-radius: 9px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 4px;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 82%;
        max-width: 320px;
        height: 100vh;
        background: #161616;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.7);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 80px 24px 40px;
        transition: right 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 1001;
        overflow-y: auto;
    }

    .nav-links.mobile-open {
        right: 0;
    }

    .nav-links a {
        margin: 0 0 14px 0;
        font-size: 0.95rem;
        color: #ffffff !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 10px;
        display: block;
        text-shadow: none !important;
    }

    .nav-links a.active-link {
        color: var(--gold) !important;
        border-bottom-color: var(--gold);
    }

    .nav-item-dropdown {
        width: 100%;
    }

    .nav-item-dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #222222;
        border: 1px solid rgba(212, 175, 55, 0.2);
        border-radius: 6px;
        padding: 8px 14px;
        margin-bottom: 14px;
        display: block;
    }

    .nav-item-dropdown .dropdown-menu a {
        font-size: 0.85rem;
        padding: 8px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        color: #e0e0e0 !important;
    }

    .btn-cta {
        margin: 10px 0 14px 0 !important;
        text-align: center;
        width: 100%;
        display: block;
    }

    .cart-btn {
        margin: 10px 0 0 0 !important;
        width: 100%;
        justify-content: center;
        border-color: var(--gold) !important;
        color: var(--gold) !important;
    }

    /* Hero Section Mobile */
    header#hero {
        height: auto;
        min-height: 80vh;
        padding: 130px 20px 60px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.25;
        margin-bottom: 16px;
    }

    .hero-content p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 28px;
        padding: 0 10px;
    }

    .btn-gold {
        padding: 14px 28px;
        font-size: 0.85rem;
    }

    /* Subpage Header */
    .subpage-header {
        padding-top: 110px;
        padding-bottom: 35px;
    }

    .subpage-header h1 {
        font-size: 1.8rem;
    }

    /* Catalog Filters Scroll */
    .catalog-filters-container {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 12px 16px;
        gap: 8px;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .catalog-filters-container::-webkit-scrollbar {
        display: none;
    }

    .filter-tab {
        white-space: nowrap;
        font-size: 0.82rem;
        padding: 8px 14px;
        flex-shrink: 0;
    }

    /* Product Grid */
    .product-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 25px;
    }

    .product-image-container {
        height: 260px;
    }

    .door-thumb {
        width: 44px;
        height: 44px;
    }

    /* Modals & Detail Page Overlay */
    .modal-content {
        width: 94%;
        margin: 15% auto;
        padding: 24px 18px;
    }

    /* ── Door page topbar: compact buttons & centered logo ── */
    .pfull-topbar {
        padding: 8px 10px;
        gap: 6px;
        grid-template-columns: 1fr auto 1fr;
    }

    /* Back button: vibrant gold + compact on mobile */
    .pfull-topbar .pfull-back-btn {
        padding: 7px 11px;
        font-size: 0.76rem;
        gap: 4px;
        white-space: nowrap;
        border-radius: 6px;
    }

    /* Cart button in door header: icon + badge only, hide label */
    .pfull-topbar .cart-btn {
        width: auto !important;
        margin: 0 !important;
        padding: 6px 10px;
        border-radius: 6px;
        flex-shrink: 0;
    }

    .pfull-topbar .cart-btn span:not(.cart-badge) {
        display: none;
    }

    /* Logo in topbar stays mathematically centered */
    .pfull-topbar .logo img {
        height: 28px !important;
    }

    /* ── Fix horizontal scroll ── */
    .product-detail-modal {
        overflow-x: hidden;
        max-width: 100vw;
    }

    .pfull-container {
        padding: 15px 16px 40px;
        overflow-x: hidden;
        max-width: 100%;
        box-sizing: border-box;
    }

    .pfull-tab-pane,
    .pfull-tab-content {
        overflow-x: hidden;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .pfull-tab-pane p {
        overflow-wrap: break-word;
        word-break: break-word;
    }

    /* Specs table — prevent overflow */
    .pfull-specs-table {
        table-layout: fixed;
        width: 100%;
    }

    .pfull-specs-table td {
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .pfull-main-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .pfull-gallery-col {
        max-width: 350px;
        margin: 0 auto;
    }

    .pfull-main-img-box {
        width: 100%;
        max-width: 340px;
        height: min(540px, 68vh);
        margin: 0 auto;
    }

    .pfull-details-col {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .pfull-title {
        font-size: 1.6rem;
    }

    .pfull-buy-row {
        flex-direction: column;
        align-items: stretch;
    }

    .pfull-btn-buy,
    .pfull-btn-quick {
        width: 100%;
    }

    /* Specs table full-width on mobile */
    .pfull-specs-table {
        table-layout: fixed;
        width: 100%;
    }

    .pfull-specs-table td {
        word-break: break-word;
        overflow-wrap: break-word;
        font-size: 0.83rem;
    }

    .pfull-specs-table td:first-child {
        width: 42%;
        padding-right: 10px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 0.88rem;
    }

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

    .btn-add-cart {
        padding: 8px 12px;
        font-size: 0.75rem;
    }

    .footer-contacts p {
        font-size: 0.82rem;
    }

    @media (max-width: 920px) {

        .nav-links.mobile-open .nav-item-dropdown .dropdown-menu a,
        .nav-item-dropdown .dropdown-menu a {
            color: #ffffff !important;
            background-color: transparent !important;
        }

        /* Золотой цвет при наведении на ссылку в меню */
        .nav-links.mobile-open .nav-item-dropdown .dropdown-menu a:hover,
        .nav-item-dropdown .dropdown-menu a:hover {
            color: #D4AF37 !important;
        }
    }

    /* === Компактні фільтр-вкладки на мобільному === */
    .catalog-filters-container {
        display: flex;
        flex-wrap: wrap;
        gap: 6px 8px;
        margin: 15px auto 25px;
        padding: 0 10px;
        justify-content: center;
        width: 100%;
        box-sizing: border-box;
    }

    .filter-tab {
        padding: 7px 12px;
        font-size: 0.78rem;
        gap: 4px;
        border-radius: 20px;
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* =============================================================
   FLOATING QUICK CONTACT WIDGET (Phone & Telegram)
   ============================================================= */
.quick-contact-widget {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9990;
    font-family: inherit;
}

/* Main round trigger button with radar pulse */
.qc-trigger-btn {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(184, 134, 11, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #ffffff;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.qc-trigger-btn::before,
.qc-trigger-btn::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    opacity: 0.8;
    animation: qcPulse 2.4s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
    pointer-events: none;
}

.qc-trigger-btn::after {
    animation-delay: 1.2s;
}

@keyframes qcPulse {
    0% {
        transform: scale(0.92);
        opacity: 0.9;
    }

    70% {
        transform: scale(1.48);
        opacity: 0;
    }

    100% {
        transform: scale(1.55);
        opacity: 0;
    }
}

.qc-trigger-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 30px rgba(184, 134, 11, 0.65);
}

/* Icon Wrap (Phone <-> Telegram <-> Close) */
.qc-icon-wrap {
    position: relative;
    width: 28px;
    height: 28px;
}

.qc-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.qc-icon svg {
    width: 26px;
    height: 26px;
}

/* Alternating icons animation */
.qc-icon-phone {
    animation: qcFlipPhone 5s infinite;
}

.qc-icon-tg {
    animation: qcFlipTg 5s infinite;
}

@keyframes qcFlipPhone {

    0%,
    45% {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }

    48%,
    95% {
        opacity: 0;
        transform: rotate(90deg) scale(0.4);
    }

    100% {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

@keyframes qcFlipTg {

    0%,
    45% {
        opacity: 0;
        transform: rotate(-90deg) scale(0.4);
    }

    50%,
    95% {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }

    100% {
        opacity: 0;
        transform: rotate(-90deg) scale(0.4);
    }
}

/* Ringing wiggle on phone */
.qc-icon-phone svg {
    animation: qcWiggle 2.5s infinite ease-in-out;
}

@keyframes qcWiggle {

    0%,
    15%,
    100% {
        transform: rotate(0);
    }

    3% {
        transform: rotate(-14deg);
    }

    6% {
        transform: rotate(14deg);
    }

    9% {
        transform: rotate(-10deg);
    }

    12% {
        transform: rotate(10deg);
    }
}

.qc-icon-close {
    opacity: 0;
    transform: rotate(-90deg) scale(0.4);
}

/* When widget menu is active / open */
.quick-contact-widget.is-open .qc-trigger-btn {
    background: #242424;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    border: 1.5px solid rgba(212, 175, 55, 0.4);
}

.quick-contact-widget.is-open .qc-trigger-btn::before,
.quick-contact-widget.is-open .qc-trigger-btn::after {
    display: none;
}

.quick-contact-widget.is-open .qc-icon-phone,
.quick-contact-widget.is-open .qc-icon-tg {
    animation: none;
    opacity: 0;
    transform: scale(0);
}

.quick-contact-widget.is-open .qc-icon-close {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Popup Action Menu */
.qc-menu {
    position: absolute;
    bottom: 74px;
    right: 0;
    width: 260px;
    background: #1b1b1b;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.94);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.quick-contact-widget.is-open .qc-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.qc-menu-header {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold);
    font-weight: 700;
    padding: 2px 4px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.qc-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.25s ease;
    cursor: pointer;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.04);
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}

.qc-item:hover {
    transform: translateX(-4px);
}

.qc-item-call {
    background: rgba(39, 174, 96, 0.12);
    border-color: rgba(39, 174, 96, 0.28);
}

.qc-item-call:hover {
    background: rgba(39, 174, 96, 0.24);
    border-color: #27ae60;
}

.qc-item-tg {
    background: rgba(0, 136, 204, 0.12);
    border-color: rgba(0, 136, 204, 0.28);
}

.qc-item-tg:hover {
    background: rgba(0, 136, 204, 0.24);
    border-color: #0088cc;
}

.qc-item-callback {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.22);
}

.qc-item-callback:hover {
    background: rgba(212, 175, 55, 0.22);
    border-color: var(--gold);
}

.qc-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.qc-item-call .qc-item-icon {
    background: #27ae60;
    color: #ffffff;
}

.qc-item-tg .qc-item-icon {
    background: #0088cc;
    color: #ffffff;
}

.qc-item-callback .qc-item-icon {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #ffffff;
}

.qc-item-text {
    display: flex;
    flex-direction: column;
}

.qc-item-title {
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.2;
    color: #ffffff;
}

.qc-item-sub {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 3px;
}

@media (max-width: 768px) {
    .quick-contact-widget {
        bottom: 18px;
        right: 18px;
    }

    .qc-trigger-btn {
        width: 54px;
        height: 54px;
    }

    .qc-icon-wrap {
        width: 24px;
        height: 24px;
    }

    .qc-icon svg {
        width: 22px;
        height: 22px;
    }

    .qc-menu {
        bottom: 66px;
        right: 0;
        width: 236px;
    }
}