
/* ===== FOOTER (design match) ===== */
.site-footer { margin-top: 0; }

.footer-cta {
    background: var(--green-dark);
    padding: 28px 0;
}

.footer-cta-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-cta p {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-cta p i { color: var(--gold); }

.footer-cta-text { display: inline; }

.footer-cta-line1,
.footer-cta-line2 { display: inline; }

@media (min-width: 1025px) {
    .footer-cta-line1::after {
        content: ' Јавете се на ';
    }

    .footer-cta-line2 .cta-call-label { display: none; }
}

.footer-cta .phone-highlight {
    color: var(--gold);
    font-weight: 800;
    text-decoration: none;
}

.footer-features {
    background: #15251c;
    padding: 28px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-features-desktop {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.footer-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    color: #fff;
}

.footer-feature i {
    color: var(--gold);
    font-size: 28px;
    margin-top: 2px;
}

.footer-feature strong {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 4px;
}

.footer-feature span {
    font-size: 12px;
    opacity: 0.8;
}

.footer-bottom {
    background: #0f1a14;
    padding: 14px 0;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 12px;
}

/* ===== CATEGORY ICONS ===== */
.cat-icon-img,
.card-cat-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 8px;
    display: inline-block;
}

.cat-icon-fa,
.card-cat-icon-fa {
    color: var(--gold);
    width: 18px;
    margin-right: 8px;
    text-align: center;
}

.cat-icon-sm, .cat-icon-sm-fa { width: 16px; height: 16px; font-size: 14px; margin-right: 6px; }

.category-list a span {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ===== PROIZVODI SIDEBAR MOBILE ===== */
.sidebar-toggle {
    display: none;
    width: 100%;
    background: var(--green-dark);
    color: #fff;
    border: none;
    padding: 14px 18px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: var(--radius);
    justify-content: space-between;
    align-items: center;
}

.sidebar-toggle .toggle-arrow { transition: transform 0.3s; }
.sidebar-toggle.open .toggle-arrow { transform: rotate(180deg); }

.sidebar-panel { display: block; }

@media (max-width: 1024px) {
    .sidebar-toggle {
        display: flex;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        position: relative;
        z-index: 10;
    }
    .sidebar-categories { position: relative; z-index: 5; }
    .sidebar-panel {
        display: none;
        margin-top: 10px;
        border: 1px solid var(--gray-200);
        border-radius: var(--radius);
        overflow: hidden;
        position: relative;
        z-index: 9;
    }
    .sidebar-panel.open { display: block !important; }
    .sidebar-header { display: none; }
    .category-list { display: block !important; }
    .delivery-box { display: block; }
}

/* ===== PRODUCT DETAIL ===== */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.product-detail-image {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--gray-100);
}

.product-detail-image img { width: 100%; height: auto; }

.product-detail-gallery { display: flex; flex-direction: column; gap: 12px; }

.product-detail-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-thumb {
    width: 72px;
    height: 72px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: var(--gray-100);
    transition: border-color 0.2s;
}

.product-thumb.active,
.product-thumb:hover { border-color: var(--green); }

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gray-100);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.product-detail-info h2 {
    font-size: 28px;
    color: var(--green-dark);
    margin-bottom: 10px;
}

.product-tagline {
    font-size: 15px;
    color: var(--gold-dark);
    font-weight: 600;
    margin-bottom: 15px;
}

.product-detail-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--green-dark);
    margin-bottom: 20px;
}

.product-detail-price span { font-size: 14px; font-weight: 600; color: var(--gray-600); }

.product-available-colors {
    margin: 0 0 18px;
}

.product-available-colors strong {
    display: block;
    font-size: 13px;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.product-available-colors-compact {
    margin: 0 0 14px;
}

.product-color-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-color-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border: 1px solid #d7dfd8;
    background: #f6f8f6;
    color: var(--green-dark);
    font-size: 13px;
    font-weight: 600;
}

.product-description {
    font-size: 14px;
    line-height: 1.8;
    color: var(--gray-600);
    margin-bottom: 25px;
}

.product-detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Product picker — click-to-open dropdown on all screen sizes */
.product-picker {
    position: relative;
}

.product-picker-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    background: var(--white);
}

.product-picker-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-picker-chevron {
    font-size: 11px;
    color: var(--gray-400);
    flex-shrink: 0;
}

.product-picker-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 50;
    max-height: 260px;
    overflow-y: auto;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 6px;
}

.product-picker-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

.product-picker-option:hover { background: var(--gray-50); }

.product-picker-option input {
    margin-top: 3px;
    flex-shrink: 0;
}

.product-picker-option-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.product-picker-option-name {
    font-weight: 600;
    color: var(--green-dark);
    line-height: 1.3;
}

.product-picker-option-price {
    font-size: 11px;
    color: var(--gold-dark);
    font-weight: 600;
}

.product-price-hints {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
    padding: 8px 10px;
    background: rgba(182, 148, 96, 0.1);
    border-radius: 6px;
    border-left: 3px solid var(--gold);
}

.product-price-hint-item {
    font-size: 12px;
    color: var(--gray-600);
    line-height: 1.4;
}

.product-price-hint-item strong {
    color: var(--green-dark);
    font-weight: 600;
}

.product-picker-custom {
    margin-top: 12px;
}

.product-picker-custom-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 6px;
}

/* Features marquee track — desktop uses grid via display:contents */
.features-marquee-track { display: contents; }

/* Product upsells */
.product-upsells {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-200);
}

.product-upsells-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--green-dark);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 20px;
}

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

.product-upsell-card {
    display: block;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow var(--transition);
}

.product-upsell-card:hover {
    box-shadow: var(--shadow-lg);
}

.product-upsell-image {
    height: 120px;
    overflow: hidden;
    background: var(--gray-100);
}

.product-upsell-image img,
.product-upsell-image .placeholder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-upsell-image .placeholder-img {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.product-upsell-body {
    padding: 12px;
}

.product-upsell-body h4 {
    font-size: 12px;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 4px;
    line-height: 1.3;
}

.product-upsell-price {
    font-size: 12px;
    font-weight: 800;
    color: var(--gold-dark);
}

.product-detail-placeholder {
    min-height: 400px;
}

.breadcrumb {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 8px;
}

.breadcrumb a { color: #fff; text-decoration: underline; }

.page-hero-sm { height: 180px; }

/* ===== 404 PAGE ===== */
.error-404-section {
    padding-top: 48px;
    padding-bottom: 72px;
}

.error-404 {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}

.error-404-code {
    font-size: 88px;
    font-weight: 800;
    line-height: 1;
    color: var(--green-primary);
    opacity: 0.15;
    margin-bottom: -24px;
    user-select: none;
}

.error-404 h2 {
    font-size: 28px;
    color: var(--green-dark);
    margin-bottom: 12px;
}

.error-404-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--gray-600);
    margin-bottom: 28px;
}

.error-404-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.form-hint { font-size: 12px; color: var(--gray-600); margin: -8px 0 14px; }

.about-box h3 i { color: var(--gold); margin-right: 8px; }

/* ===== ZA NAS HIGHLIGHTS ===== */
.highlights-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.highlight-card {
    background: linear-gradient(145deg, var(--green-dark), var(--green-primary));
    color: #fff;
    padding: 28px 20px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.highlight-card i {
    font-size: 28px;
    color: var(--gold);
    margin-bottom: 12px;
}

.highlight-card .number {
    font-size: 32px;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
}

.highlight-card .label {
    font-size: 11px;
    text-transform: uppercase;
    opacity: 0.85;
    margin-top: 8px;
    letter-spacing: 0.3px;
}

/* ===== INSTAGRAM GALLERY ===== */
.gallery-page { padding-bottom: 40px; }

.gallery-profile-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 30px 0 0;
    margin-bottom: 2px;
}

.gallery-profile-top {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.gallery-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: contain;
    background: var(--gray-50);
    padding: 8px;
    border: 2px solid var(--gray-200);
}

.gallery-profile-info h1 {
    font-size: 22px;
    color: var(--green-dark);
    margin-bottom: 4px;
}

.gallery-profile-info p {
    color: var(--gray-600);
    font-size: 13px;
    margin-bottom: 10px;
}

.gallery-profile-stats {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--gray-600);
    flex-wrap: wrap;
}

.gallery-profile-stats strong { color: var(--green-dark); }

.gallery-tabs {
    display: flex;
    border-top: 1px solid var(--gray-200);
}

.gallery-tabs a {
    flex: 1;
    text-align: center;
    padding: 14px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gray-600);
    border-bottom: 2px solid transparent;
    letter-spacing: 0.3px;
}

.gallery-tabs a i { margin-right: 6px; }
.gallery-tabs a.active {
    color: var(--green-dark);
    border-bottom-color: var(--green-dark);
}

.ig-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    margin-top: 3px;
}

.ig-gallery-item {
    position: relative;
    aspect-ratio: 1;
    border: none;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    background: var(--gray-100);
}

.ig-gallery-item img,
.ig-gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.ig-gallery-item:hover img,
.ig-gallery-item:hover video { transform: scale(1.05); }

.video-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

/* ===== LIGHTBOX ===== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox[hidden] { display: none !important; }

.lightbox-content {
    max-width: 90vw;
    max-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img,
.lightbox-content video {
    max-width: 90vw;
    max-height: 75vh;
    object-fit: contain;
}

.lightbox-content img.zoomed {
    transform: scale(1.5);
    cursor: zoom-out;
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    z-index: 2;
}

.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

.lightbox-toolbar {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 20px;
    color: #fff;
    font-size: 13px;
}

.lightbox-download {
    color: var(--gold);
    font-weight: 600;
}

@media (max-width: 480px) {
    .highlights-row { grid-template-columns: 1fr 1fr; }
    .ig-gallery { grid-template-columns: repeat(2, 1fr); }
    .hero-title, .hero h2 { font-size: 24px; }
}

/* ===== MOBILE / TABLET FIXES ===== */
#pobaraj-ponuda,
.section-info {
    scroll-margin-top: 100px;
}

@media (max-width: 1024px) {
    /* Hero: stop features bar overlapping text/buttons */
    .hero-wrapper {
        margin-bottom: 0;
        display: flex;
        flex-direction: column;
    }

    .hero {
        min-height: 360px;
        order: 1;
    }

    .hero-content {
        padding: 30px 0 24px;
        max-width: 100%;
    }

    .features-bar {
        position: static;
        bottom: auto;
        left: auto;
        right: auto;
        order: 2;
        margin-top: 0;
        z-index: 1;
    }

    .features-bar-inner {
        margin-top: -20px;
        position: relative;
        z-index: 2;
    }

    .section-products {
        padding-top: 30px;
    }

    /* Footer CTA centered — two lines on mobile/tablet */
    .footer-cta-inner {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .footer-cta p {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        font-size: 14px;
    }

    .footer-cta-text {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }

    .footer-cta-line1,
    .footer-cta-line2 {
        display: block;
    }

    .footer-cta-line1::after { content: none; }

    .footer-cta .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    /* Footer quick links on mobile/tablet — desktop shows features + separator + quicknav */
    .footer-features-desktop {
        display: none !important;
    }

    .footer-features-separator {
        display: none !important;
    }

    .footer-quicknav {
        display: flex;
    }

    /* Hero subtitle readability */
    .hero::before {
        background: linear-gradient(105deg, rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.92) 45%, rgba(255,255,255,0.55) 75%, rgba(255,255,255,0.2) 100%);
    }

    .hero-sub {
        background: rgba(255, 255, 255, 0.9);
        padding: 12px 14px;
        border-radius: var(--radius);
        border-left: 3px solid var(--gold);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    }

    .hero-sub strong {
        font-weight: 700;
        color: var(--green-dark);
        line-height: 1.5;
    }

    /* Features bar infinite marquee */
    .features-bar .container {
        padding-left: 0;
        padding-right: 0;
        max-width: 100%;
    }

    .features-bar-inner {
        margin-top: 0;
        padding: 12px 0;
        overflow: hidden;
        display: block;
        border-radius: 0;
    }

    .features-bar-inner.marquee-active .features-marquee-track {
        display: flex;
        width: max-content;
        gap: 20px;
        padding: 0 16px;
        animation: features-marquee 32s linear infinite;
        will-change: transform;
    }

    .features-bar-inner.marquee-active .feature-item {
        flex: 0 0 auto;
        width: 260px;
        padding: 10px 12px;
        background: var(--gray-50);
        border-radius: var(--radius);
        border: 1px solid var(--gray-200);
    }

    .features-bar-inner.marquee-active .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .features-bar-inner.marquee-active .feature-item h4 {
        font-size: 11px;
        margin-bottom: 2px;
    }

    .features-bar-inner.marquee-active .feature-item span {
        font-size: 10px;
        line-height: 1.4;
    }

    /* Product detail mobile */
    .product-detail-section .section { padding-top: 24px; }

    .product-detail {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-detail-image {
        max-width: 100%;
    }

    .product-detail-image img {
        max-height: 280px;
        width: 100%;
        object-fit: cover;
    }

    .product-detail-placeholder {
        min-height: 220px;
        height: 220px;
    }

    .product-detail-info h2 {
        font-size: 22px;
    }

    .product-detail-price {
        font-size: 20px;
    }

    .product-detail-actions {
        flex-direction: column;
    }

    .product-detail-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .page-hero-sm {
        height: auto;
        min-height: 140px;
        padding: 24px 0;
    }

    .page-hero-sm h1 {
        font-size: 22px;
    }

    .product-upsells {
        margin-top: 32px;
        padding-top: 24px;
    }

    .product-upsells-title {
        font-size: 14px;
        margin-bottom: 14px;
    }

    .product-upsells-track {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 6px;
    }

    .product-upsell-card {
        flex: 0 0 140px;
        scroll-snap-align: start;
    }

    .product-upsell-image {
        height: 90px;
    }

    .product-upsell-body h4 {
        font-size: 11px;
    }

    .product-upsell-price {
        font-size: 11px;
    }

    /* Kontakt: form first on mobile/tablet */
    .contact-layout {
        display: flex;
        flex-direction: column;
    }

    .contact-form-box { order: 1; }
    .contact-info-card { order: 2; }
}

@keyframes features-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .features-bar-inner.marquee-active .features-marquee-track {
        animation: none;
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
    }
}

@media (min-width: 1025px) {
    .product-detail-placeholder {
        min-height: 400px;
        height: auto;
    }
}

@media (max-width: 768px) {
    .hero-wrapper .features-bar {
        margin-top: 0;
    }
}

/* ===== BLOG ===== */
.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.section-title-row h2 {
    margin-bottom: 0;
}

.section-title-row h2::after {
    display: none;
}

.section-trending-blog {
    padding-top: 48px;
    padding-bottom: 48px;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

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

.blog-grid-home .blog-card h3 {
    font-size: 17px;
    margin: 0 0 8px;
}

.blog-grid-home .blog-card h3 a {
    color: var(--green-dark);
    text-decoration: none;
}

.blog-grid-home .blog-card h3 a:hover {
    color: var(--gold-dark);
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.blog-card-image {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--gray-100);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.04);
}

.blog-card-image .placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--gray-300);
}

.blog-card-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--green-dark);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 20px;
}

.blog-card-body {
    padding: 18px 20px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-date {
    font-size: 12px;
    color: var(--gray-400);
    margin-bottom: 8px;
}

.blog-card-date i {
    margin-right: 4px;
}

.blog-card-body h2 {
    font-size: 18px;
    line-height: 1.35;
    margin: 0 0 10px;
}

.blog-card-body h2 a {
    color: var(--green-dark);
    text-decoration: none;
}

.blog-card-body h2 a:hover {
    color: var(--gold-dark);
}

.blog-card-body p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--gray-600);
    margin: 0 0 14px;
    flex: 1;
}

.blog-card-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--gold-dark);
    text-decoration: none;
}

.blog-card-link i {
    font-size: 11px;
    margin-left: 4px;
    transition: transform 0.2s;
}

.blog-card-link:hover i {
    transform: translateX(3px);
}

.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.blog-page-numbers {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.blog-page-num,
.blog-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    color: var(--green-dark);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.blog-page-btn {
    gap: 6px;
}

.blog-page-num:hover,
.blog-page-btn:hover {
    border-color: var(--green-primary);
    background: var(--gray-50);
}

.blog-page-num.active {
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: #fff;
}

.blog-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    opacity: 0.9;
}

.blog-hero-meta span i {
    margin-right: 5px;
}

.blog-article-layout {
    max-width: 820px;
}

.blog-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--green-dark);
    text-decoration: none;
    margin-bottom: 24px;
}

.blog-back-btn:hover {
    color: var(--gold-dark);
}

.blog-article-image {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow: var(--shadow);
}

.blog-article-image img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    display: block;
}

.blog-article-content {
    font-size: 16px;
    line-height: 1.85;
    color: var(--gray-700);
}

.blog-article-content p {
    margin-bottom: 1em;
}

.blog-article-content strong {
    font-weight: 700;
    color: var(--green-dark);
}

.blog-article-content em {
    font-style: italic;
}

.blog-underline {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.blog-strike {
    text-decoration: line-through;
}

.blog-highlight {
    padding: 0 3px;
    border-radius: 3px;
}

.blog-code {
    margin: 1.25em 0;
    padding: 14px 16px;
    background: #f4f6f5;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    overflow-x: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
    white-space: pre-wrap;
    word-break: break-word;
}

.blog-code code {
    font-family: inherit;
    background: none;
    padding: 0;
}

.blog-inline-image {
    margin: 32px auto;
    max-width: 100%;
    text-align: center;
}

.blog-inline-image img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: min(560px, 70vh);
    margin: 0 auto;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: var(--gray-50);
}

.blog-inline-video {
    margin: 32px auto;
    max-width: 100%;
}

.blog-video-frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #000;
}

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

.blog-video-native {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: min(560px, 70vh);
    margin: 0 auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: #000;
}

.blog-share {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--gray-200);
}

.blog-share h3 {
    font-size: 16px;
    color: var(--green-dark);
    margin-bottom: 14px;
}

.blog-share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.blog-share-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    transition: transform 0.2s, opacity 0.2s;
}

.blog-share-btn:hover {
    transform: scale(1.08);
    opacity: 0.92;
}

.blog-share-btn.facebook { background: #1877f2; }
.blog-share-btn.whatsapp { background: #25d366; }
.blog-share-btn.twitter { background: #000; }
.blog-share-btn.copy { background: var(--gray-600); }

.blog-social-follow {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--gray-600);
}

.blog-social-follow a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--green-dark);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.blog-upsells-title {
    font-size: 20px;
    color: var(--green-dark);
    margin-bottom: 20px;
}

.blog-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.blog-related-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}

.blog-related-card:hover {
    transform: translateY(-2px);
}

.blog-related-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--gray-100);
}

.blog-related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-related-body {
    padding: 14px 16px 18px;
}

.blog-related-body time {
    font-size: 11px;
    color: var(--gray-400);
}

.blog-related-body h4 {
    font-size: 14px;
    color: var(--green-dark);
    margin: 6px 0 0;
    line-height: 1.4;
}

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

.blog-related-section,
.blog-products-section {
    padding-top: 0;
    padding-bottom: 48px;
}

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

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

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

@media (max-width: 640px) {
    .blog-grid,
    .blog-related-grid {
        grid-template-columns: 1fr;
    }

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

    .blog-pagination {
        flex-direction: column;
    }

    .blog-page-btn {
        width: 100%;
    }

    .blog-article-content {
        font-size: 15px;
    }
}

/* Shopping cart */
.header-cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-left: 6px;
    border-radius: 50%;
    background: var(--green-dark);
    color: #fff !important;
    text-decoration: none;
    flex-shrink: 0;
    border: 2px solid var(--green-dark);
    box-shadow: 0 2px 8px rgba(27, 46, 32, 0.25);
}

.header-cart-link i {
    color: #fff;
}

.header-cart-link:hover {
    background: var(--green-primary);
    border-color: var(--green-primary);
    color: #fff !important;
}

.header-cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.product-card-wrap {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card-wrap .product-card {
    flex: 1;
}

.product-card-cart {
    padding: 0 16px 16px;
    margin-top: -8px;
}

.btn-add-cart {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
}

.btn-add-cart.added {
    background: #166534;
}

.cart-widget {
    margin-top: 24px;
    padding: 20px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: #f8faf9;
}

.cart-widget-title {
    margin: 0 0 14px;
    font-size: 18px;
    color: var(--green-dark);
}

.cart-widget-rate {
    margin: 0 0 12px;
    padding: 10px 12px;
    background: #fff;
    border-radius: 8px;
    font-size: 14px;
    color: var(--gray-700);
}

.cart-widget-mode {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.cart-radio {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.cart-widget-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.cart-widget-fields:has(> label:only-child) {
    grid-template-columns: 1fr;
}

.cart-widget-fields label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
}

.cart-widget-fields input,
.cart-widget-fields select {
    padding: 10px 12px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
}

.cart-widget-estimate {
    padding: 12px 14px;
    margin-bottom: 14px;
    border-radius: 8px;
    background: #fff;
    border: 1px dashed var(--green);
    color: var(--green-dark);
    font-weight: 700;
}

.cart-widget-actions {
    display: grid;
    gap: 10px;
}

.contact-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.contact-tab {
    flex: 1;
    min-width: 140px;
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    background: #fff;
    color: var(--gray-700);
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.contact-tab.active {
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: #fff;
}

.contact-tab:hover {
    background: #111;
    border-color: #111;
    color: #fff;
}

.cart-checkout-section {
    margin-bottom: 30px;
}

.contact-tab.active:hover {
    background: var(--green-primary);
    border-color: var(--green-primary);
    color: #fff;
}

.cart-checkout-section form {
    margin-top: 24px;
}

.cart-empty {
    text-align: center;
    padding: 30px 16px;
    color: var(--gray-600);
}

.cart-empty i {
    font-size: 36px;
    margin-bottom: 12px;
    color: var(--gray-400);
}

.cart-items {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    background: #fff;
}

.cart-item-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-item-meta,
.cart-item-price-label {
    font-size: 13px;
    color: var(--gray-600);
}

.cart-item-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.cart-item-total {
    font-weight: 700;
    color: var(--green-dark);
    white-space: nowrap;
}

.cart-item-remove {
    border: 0;
    background: transparent;
    color: #b91c1c;
    cursor: pointer;
}

.cart-summary {
    padding: 16px;
    border-radius: 10px;
    background: #f8faf9;
    border: 1px solid var(--gray-200);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.cart-total-row {
    font-size: 18px;
    color: var(--green-dark);
}

.cart-coupon-row {
    display: flex;
    gap: 8px;
    margin: 14px 0;
    flex-wrap: wrap;
}

.cart-coupon-row input {
    flex: 1 1 100%;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
}

.cart-coupon-row .btn {
    flex: 1 1 100%;
}

.cart-widget-contact-text {
    margin: 0 0 12px;
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.6;
}

.cart-widget-contact-fields {
    margin: 0 0 14px 18px;
    color: var(--gray-700);
    font-size: 14px;
}

.cart-input-group[hidden] {
    display: none !important;
}

.cart-estimate-note {
    margin: 10px 0 0;
    font-size: 12px;
    color: var(--gray-600);
}

.cart-thankyou {
    text-align: center;
    padding: 40px 20px;
    border-radius: var(--radius);
    background: #ecfdf5;
    border: 1px solid #86efac;
}

.cart-thankyou i {
    font-size: 48px;
    color: #16a34a;
    margin-bottom: 16px;
}

@media (min-width: 769px) {
    .cart-coupon-row {
        flex-wrap: nowrap;
    }

    .cart-coupon-row input {
        flex: 1 1 auto;
    }

    .cart-coupon-row .btn {
        flex: 0 0 auto;
    }
}

@media (max-width: 768px) {
    .header-cart-link {
        width: 38px;
        height: 38px;
        margin-left: 6px;
    }

    #cart-checkout-form .form-row {
        grid-template-columns: 1fr !important;
    }

    .cart-widget-fields {
        grid-template-columns: 1fr;
    }

    .cart-item {
        flex-direction: column;
    }

    .cart-item-side {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .contact-tabs {
        flex-direction: column;
    }
}
