/* VIBRATO PDP STYLES - FINE TUNED v2 */

.vibrato-pdp-wrapper {
    background-color: var(--background-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    padding-bottom: 80px;
    position: relative;
    overflow-x: visible;
}

.pdp-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 1024px) {
    .pdp-container {
        padding: 0 48px;
    }
}

@media (max-width: 600px) {
    .pdp-container {
        padding: 0 20px;
    }
}

/* Breadcrumbs */
.pdp-breadcrumb {
    padding: 24px 0;
    font-size: 12px;
    color: var(--text-muted);
}

.pdp-breadcrumb ul {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pdp-breadcrumb li {
    display: flex;
    align-items: center;
}

.pdp-breadcrumb li::after {
    content: 'chevron_right';
    font-family: 'Material Symbols Outlined';
    font-size: 14px;
    margin: 0 4px;
    opacity: 0.7;
}

.pdp-breadcrumb li:last-child::after {
    display: none;
}

.pdp-breadcrumb a:hover {
    color: var(--text-main);
}

.pdp-breadcrumb span {
    color: var(--text-main);
    font-weight: 500;
}

/* Main Grid */
.pdp-main-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.pdp-main-section>* {
    min-width: 0;
}

.pdp-main-section.reveal,
.pdp-main-section.reveal.active {
    transform: none;
}

@media (min-width: 1024px) {
    .pdp-main-section {
        grid-template-columns: 1.1fr 1fr;
        gap: 48px;
    }
}

/* Gallery */
.pdp-gallery-col {
    align-self: start;
}

.pdp-gallery-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.pdp-main-image {
    position: relative;
    aspect-ratio: 1/1;
    background: var(--surface-dark);
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    cursor: zoom-in;
    display: block;
    width: 100%;
    padding: 0;
    appearance: none;
    text-align: left;
}

.pdp-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    position: relative;
    z-index: 1;
    max-width: 100%;
}

.pdp-main-image:hover img {
    transform: scale(1.02);
}

.pdp-main-image:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.pdp-badges {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 20;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge-discount {
    background: var(--primary);
    color: var(--text-inverse);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 8px;
    letter-spacing: 0.05em;
}

.badge-tag {
    background: var(--surface-dark);
    color: var(--text-main);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 8px;
    letter-spacing: 0.05em;
}

.p-badge.tag {
    background: var(--surface-dark);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.wishlist-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    color: var(--text-inverse);
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    padding: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.wishlist-icon:hover {
    background: rgba(0, 0, 0, 0.4);
    color: var(--primary);
}

.pdp-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
}

.thumb-btn {
    aspect-ratio: 1/1;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: none;
    opacity: 0.6;
    transition: 0.3s;
}

.thumb-btn:hover,
.thumb-btn.active {
    border-color: var(--primary);
    opacity: 1;
}

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

@media (min-width: 1024px) {
    .pdp-gallery-col {
        position: sticky;
        top: 140px;
    }

    .pdp-gallery-wrapper.has-thumbs {
        display: grid;
        grid-template-columns: 96px 1fr;
        gap: 20px;
        align-items: start;
        position: relative;
    }

    .pdp-thumbs {
        display: flex;
        flex-direction: column;
        width: 96px;
        gap: 12px;
        max-height: 640px;
        overflow: auto;
        position: relative;
        padding-bottom: 16px;
    }

    .pdp-thumbs::-webkit-scrollbar {
        display: none;
    }

    .pdp-thumbs {
        scrollbar-width: none;
    }

    .pdp-gallery-wrapper.has-scroll::after {
        content: 'expand_more';
        font-family: 'Material Symbols Outlined';
        position: absolute;
        left: 0;
        width: 96px;
        bottom: 6px;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 22px;
        color: var(--primary);
        background: none;
        border: none;
        border-radius: 999px;
        margin: 0 auto;
        width: 22px;
        height: 22px;
        box-shadow: none;
        font-size: 26px;
        transform: translateX(-50%);
        text-shadow: 0 0 8px rgba(0, 0, 0, 0.9), 0 0 2px rgba(0, 0, 0, 0.9);
        z-index: 5;
        pointer-events: none;
    }

    .pdp-thumbs .thumb-btn {
        width: 100%;
        aspect-ratio: 1/1;
        flex: 0 0 auto;
    }

    .pdp-main-image {
        order: 2;
    }

    .pdp-thumbs {
        order: 1;
    }
}

/* Product Info */
.pdp-info-wrapper {
    display: flex;
    flex-direction: column;
}

.pdp-info-wrapper {
    min-width: 0;
}

.collection-name {
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 8px;
}

.pdp-brand-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--text-muted);
}

.pdp-brand-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.pdp-brand-link {
    color: var(--text-main);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(16, 41, 31, 0.38);
    transition: border-color 0.2s ease, color 0.2s ease;
}

.pdp-brand-link:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.pdp-brand-link.is-static {
    border-bottom: none;
}

.pdp-title {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 500;
    color: var(--text-main);
    line-height: 1.1;
    margin-bottom: 16px;
}

@media (min-width: 1024px) {
    .pdp-title {
        font-size: 56px;
    }
}

.pdp-identifiers {
    display: flex;
    align-items: center;
    gap: 8px 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    color: var(--text-muted);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pdp-identifier {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

.pdp-identifier-label {
    font-weight: 600;
    opacity: 0.8;
}

.pdp-identifier-value {
    color: var(--text-main);
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: none;
}

.pdp-rating-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.pdp-rating-row .stars {
    min-width: 0;
}

.pdp-rating-row .stock-badge {
    margin-left: auto;
}

.pdp-divider {
    width: 1px;
    height: 16px;
    background: var(--border-color);
    margin: 0 16px;
}

.stars {
    color: #f59e0b;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.review-count {
    color: var(--text-muted);
    font-size: 12px;
    margin-left: 8px;
}

.stock-badge {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stock-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(47, 117, 89, 0.55);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(47, 117, 89, 0.55);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(47, 117, 89, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(47, 117, 89, 0);
    }
}

/* Short Features List instead of Description */
.pdp-features-list {
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-main);
}

.feat-icon {
    color: var(--primary);
    background: rgba(16, 41, 31, 0.10);
    padding: 6px;
    border-radius: 50%;
    font-size: 16px !important;
}

.separator-line {
    height: 1px;
    background: var(--border-color);
    margin: 32px 0;
    opacity: 0.5;
}

/* Price & Buy */
.price-row {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 24px;
    margin-top: auto;
    flex-wrap: wrap;
}

.price-row .current-price {
    flex: 1 1 auto;
    min-width: 0;
}

.price-row .save-badge {
    margin-left: 0;
}

@media (max-width: 600px) {
    .pdp-rating-row {
        gap: 10px;
    }

    .pdp-rating-row .stock-badge {
        width: 100%;
        margin-left: 0;
    }

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

    .price-row .save-badge {
        order: -1;
    }

    .current-price {
        width: 100%;
        justify-content: flex-start;
    }

    .vibrato-pdp-wrapper .woocommerce-variation-price {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .vibrato-pdp-wrapper .woocommerce-variation-price .save-badge {
        order: -1;
        margin-top: 0;
    }

    .vibrato-pdp-wrapper .woocommerce-variation-price .price {
        flex-direction: row;
        justify-content: flex-start;
    }
}

/* Avoid iOS select picker offset caused by transformed ancestors */
@media (max-width: 1024px) {

    .vibrato-pdp-wrapper .reveal,
    .vibrato-pdp-wrapper .reveal.active {
        transform: none !important;
    }
}

@media (min-width: 768px) {
    .vibrato-pdp-wrapper .woocommerce-variation-price .save-badge {
        margin-left: auto;
        margin-top: 0;
    }
}

@media (max-width: 900px) {
    .vibrato-pdp-wrapper .variations select {
        font-size: 16px;
    }

    .vibrato-pdp-wrapper .woocommerce-variation-price {
        align-items: flex-start;
    }

    .vibrato-pdp-wrapper .woocommerce-variation-price .price {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        width: 100%;
    }

    .vibrato-pdp-wrapper .woocommerce-variation-price .save-badge {
        margin-left: 0;
        align-self: flex-start;
    }
}

.current-price {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: baseline;
    gap: 8px;
    font-size: 42px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1;
}

.current-price ins {
    text-decoration: none;
    color: var(--text-main);
}

.current-price del {
    text-decoration: line-through;
    color: var(--text-soft);
    font-size: 20px;
    position: relative;
    padding-right: 18px;
    cursor: help;
}

.current-price del::after {
    content: "i";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 10px;
    line-height: 14px;
    text-align: center;
    background: var(--surface-elevated);
}

.current-price del::before {
    content: "Doporučená MOC cena";
    position: absolute;
    right: 0;
    top: -34px;
    white-space: nowrap;
    background: var(--surface-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 10px;
    padding: 6px 8px;
    border-radius: 2px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: 0.2s;
}

.current-price del:hover::before,
.current-price del.moc-active::before {
    opacity: 1;
    transform: translateY(0);
}

.old-price {
    font-size: 20px;
    color: var(--text-soft);
    text-decoration: line-through;
    margin-bottom: 6px;
}

.save-badge {
    background: rgba(16, 41, 31, 0.1);
    color: var(--text-main);
    border: 1px solid rgba(16, 41, 31, 0.35);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    margin-left: auto;
}

.buy-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.buy-row-main {
    display: flex;
    gap: 16px;
    height: 56px;
}

@media (max-width: 600px) {
    .buy-row-main {
        flex-direction: row;
        height: 56px;
    }

    .qty-input-group {
        width: 120px;
        flex: 0 0 120px;
    }

    .btn-add-cart {
        flex: 1;
    }
}

.qty-input-group {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    background: var(--surface-elevated);
    border-radius: 2px;
    width: 120px;
    position: relative;
}

.qty-btn-ctrl {
    width: 40px;
    height: 100%;
    background: transparent;
    border: none;
    color: var(--text-soft);
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn-ctrl:hover {
    color: var(--text-main);
    background: var(--surface-strong);
}

.qty-btn-ctrl:first-child {
    border-right: 1px solid rgba(16, 41, 31, 0.20);
}

.qty-btn-ctrl:last-child {
    border-left: 1px solid rgba(16, 41, 31, 0.20);
}

.qty-field {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-main);
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    height: 100%;
    padding: 0;
    outline: none;
}

.btn-add-cart {
    flex: 1;
    background: var(--accent-gradient);
    border: 1px solid rgba(16, 41, 31, 0.3);
    color: var(--text-inverse);
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(16, 41, 31, 0.2);
    text-decoration: none;
    /* For when it's an anchor tag */
}

.btn-add-cart:hover {
    background: var(--accent-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(16, 41, 31, 0.6);
    color: var(--text-inverse);
}

.btn-add-cart.is-disabled,
.btn-add-cart.is-disabled:hover {
    background: var(--surface-strong);
    border-color: var(--border-color);
    color: var(--text-soft);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
    opacity: 0.9;
}

.btn-add-cart.loading {
    opacity: 0.7;
    pointer-events: none;
}

.btn-add-cart.added {
    background: var(--primary-deep) !important;
    border-color: var(--primary-deep) !important;
}

/* Trust & Shipping */
.trust-row {
    border: 1px solid var(--border-color);
    background: var(--surface-elevated);
    padding: 12px 16px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.trust-icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--surface-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-deep);
}

.trust-text {
    flex: 1;
}

.trust-text-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.trust-text-sub {
    font-size: 10px;
    color: var(--text-muted);
}

.shipping-info {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.check-green {
    color: var(--primary);
    font-size: 16px !important;
}

/* Accessories Box */
.pdp-accessories-box {
    position: relative;
    background: var(--surface-dark);
    border: 1px solid var(--border-color);
    padding: 32px;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 80px;
}

.acc-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 8px;
    border: 1px solid rgba(16, 41, 31, 0.28);
    border-radius: 2px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-main);
    background: rgba(16, 41, 31, 0.09);
}

.acc-card.is-out .btn-acc-add {
    pointer-events: none;
    opacity: 0.5;
}

.bg-blur-circle {
    position: absolute;
    top: 0;
    right: 0;
    width: 384px;
    height: 384px;
    background: rgba(16, 41, 31, 0.05);
    border-radius: 50%;
    filter: blur(64px);
    transform: translate(50%, -50%);
    pointer-events: none;
}

.acc-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-style: normal;
    color: var(--text-main);
    margin-bottom: 24px;
    position: relative;
    z-index: 10;
}

.acc-subtitle {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-muted);
    font-style: normal;
    margin-left: 8px;
}

.acc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    position: relative;
    z-index: 10;
}

@media (min-width: 768px) {
    .acc-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.acc-grid {
    width: 100%;
}

.acc-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--surface-elevated);
    padding: 16px;
    border-radius: 2px;
    border: 1px solid var(--border-color);
    transition: 0.3s;
}

.acc-card:hover {
    border-color: rgba(16, 41, 31, 0.30);
}

.acc-img-link {
    display: block;
    flex-shrink: 0;
}

.acc-img {
    width: 96px;
    height: 96px;
    background: var(--surface-strong);
    border-radius: 2px;
    overflow: hidden;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.acc-img-link:hover .acc-img {
    transform: scale(1.05);
}

.acc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.acc-info h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.acc-info p {
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.acc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.acc-price {
    flex: 1;
    min-width: 0;
}

@media (max-width: 600px) {
    .acc-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .btn-acc-add {
        width: 100%;
        height: 36px;
    }
}

.acc-price {
    color: var(--text-main);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: baseline;
    gap: 8px;
}

.acc-price ins {
    text-decoration: none;
    color: var(--text-main);
}

.acc-price del {
    font-size: 12px;
    color: var(--text-soft);
    margin-left: 6px;
    position: relative;
    padding-right: 18px;
    cursor: help;
}

.acc-price del::after {
    content: "i";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 10px;
    line-height: 14px;
    text-align: center;
    background: var(--surface-elevated);
}

.acc-price del::before {
    content: "Doporučená MOC cena";
    position: absolute;
    right: 0;
    top: -34px;
    white-space: nowrap;
    background: var(--surface-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 10px;
    padding: 6px 8px;
    border-radius: 2px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: 0.2s;
}

.acc-price del:hover::before,
.acc-price del.moc-active::before {
    opacity: 1;
    transform: translateY(0);
}

.btn-acc-add {
    width: 32px;
    height: 32px;
    background: var(--surface-strong);
    color: var(--text-main);
    border: none;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    overflow: hidden;
    white-space: nowrap;
    flex: 0 0 32px;
}

.btn-acc-add.added {
    background: var(--primary-deep);
    color: var(--text-inverse);
    font-size: 0;
}

.btn-acc-add.added span {
    display: none;
}

.btn-acc-add.added,
.btn-acc-add.added:visited,
.btn-acc-add.added:active,
.btn-acc-add.added:hover,
.btn-acc-add.added:focus {
    color: transparent !important;
}

.btn-acc-add.added::before,
.btn-acc-add.added::after {
    content: "" !important;
}

.btn-acc-add.added::before {
    content: "check" !important;
    font-family: 'Material Symbols Outlined';
    font-size: 16px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-acc-add.added::after {
    content: "check";
    font-family: 'Material Symbols Outlined';
    font-size: 16px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-acc-add:hover {
    background: var(--surface-dark);
    color: var(--text-main);
}

.acc-promo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px dashed var(--border-color);
    background: rgba(16, 41, 31, 0.06);
    padding: 16px;
    border-radius: 2px;
}

@media (max-width: 600px) {
    .pdp-accessories-box {
        padding: 20px;
    }

    .acc-card {
        padding: 14px;
    }
}

.acc-promo .icon {
    font-size: 24px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.acc-promo strong {
    color: var(--text-main);
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.acc-promo p {
    font-size: 10px;
    color: var(--text-muted);
}

/* Tabs Bar */
/* Tabs */
.pdp-tabs-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 40px 0 18px;
    padding: 0 0 12px;
    justify-content: center;
    background: transparent;
    border: none;
}

.pdp-tabs-underline {
    height: 1px;
    background: rgba(16, 41, 31, 0.11);
    margin: 0 auto 24px;
    max-width: 1440px;
}

.tab-btn {
    background: var(--surface-elevated);
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    border-radius: 2px;
    transition: 0.3s;
}

.tab-btn:hover {
    color: var(--text-main);
    border-color: var(--primary);
}

.tab-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.tab-btn.active {
    color: var(--text-inverse);
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow-sm);
}

/* Description + Params */
.pdp-desc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 24px 0 0;
}

@media (min-width: 1024px) {
    .pdp-desc-grid {
        grid-template-columns: 1.2fr 1fr;
        gap: 64px;
    }
}

.pdp-section-title {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--text-main);
    font-style: normal;
    margin-bottom: 20px;
}

.pdp-params-col {
    align-self: start;
}

.pdp-desc-grid:not(:has(.pdp-params-col)) {
    grid-template-columns: 1fr;
}

/* Reviews */
.pdp-reviews {
    padding-bottom: 80px;
}

.pdp-reviews .woocommerce-Reviews-title {
    display: none;
}

.pdp-reviews .woocommerce-noreviews {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.pdp-reviews .woocommerce-Reviews {
    max-width: 900px;
}

.pdp-reviews .comment-respond {
    max-width: 720px;
}

.pdp-reviews .comment-form {
    margin-top: 16px;
}

.pdp-reviews .comment-form-comment {
    margin-top: 12px;
}

.pdp-reviews .commentlist {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
}

.pdp-reviews .commentlist li {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
}

.pdp-reviews .comment_container {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 16px;
}

.pdp-reviews .avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
}

.pdp-reviews .comment-text {
    color: var(--text-muted);
}

.pdp-reviews .comment-text .star-rating {
    margin-bottom: 8px;
}

.pdp-reviews .comment-text .meta {
    color: var(--text-main);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.pdp-reviews .comment-text .description {
    color: var(--text-muted);
    line-height: 1.6;
}

.pdp-reviews .comment-text .description p {
    margin-bottom: 10px;
}

.pdp-reviews .comment-reply-title {
    color: var(--text-main);
    margin-top: 24px;
}

.pdp-reviews #reply-title {
    display: none;
}

.pdp-reviews .comment-form input,
.pdp-reviews .comment-form textarea {
    background: var(--surface-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 2px;
    padding: 10px 12px;
}

.pdp-reviews .comment-form label {
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.pdp-reviews .comment-form .comment-form-rating label {
    margin-bottom: 8px;
    display: block;
}

.pdp-reviews .comment-form-comment label {
    display: block;
    margin-bottom: 6px;
}

.pdp-reviews .comment-form textarea {
    display: block;
    width: 100%;
    margin-top: 8px;
}

.pdp-reviews .comment-form textarea {
    min-height: 180px;
}

.pdp-reviews .comment-form .stars {
    display: none !important;
}

.pdp-reviews .custom-stars {
    display: flex;
    gap: 8px;
    margin: 8px 0 16px;
}

.pdp-reviews .custom-stars button {
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.pdp-reviews .custom-stars button::before {
    content: '☆';
    font-size: 22px;
    color: #f59e0b;
    line-height: 1;
}

.pdp-reviews .custom-stars button.is-filled::before {
    content: '★';
}

.pdp-reviews .custom-stars button:hover::before {
    color: #fbbf24;
}

.pdp-reviews .comment-form .submit {
    background: var(--primary);
    color: var(--text-inverse);
    border: none;
    border-radius: 2px;
    padding: 10px 16px;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    cursor: pointer;
}

.pdp-reviews .comment-form .submit:hover {
    background: var(--primary-deep);
    box-shadow: var(--shadow-glow-sm);
}

/* MOC mobile toast */
.moc-toast {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    background: var(--surface-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 10px 14px;
    border-radius: 2px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: none;
    z-index: 100002;
}

.moc-toast.is-visible {
    display: block;
}

/* Back to top CTA */
.pdp-backtop {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--surface-elevated);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.3s;
    z-index: 100001;
}

.pdp-backtop.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.pdp-backtop:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Review toast */
.pdp-review-toast {
    display: none;
    background: var(--surface-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 10px 12px;
    border-radius: 2px;
    margin-bottom: 16px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.pdp-review-toast.is-visible {
    display: block;
}

.check-icon {
    color: var(--primary-deep);
    font-size: 18px !important;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 640px) {
    .specs-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.spec-box {
    background: var(--background-dark);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 2px;
    display: block;
    transition: 0.3s;
}

.spec-box:hover {
    border-color: rgba(16, 41, 31, 0.38);
}

.spec-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-main);
    margin-bottom: 4px;
}

.spec-value {
    font-size: 12px;
    color: var(--text-soft);
}

.spec-empty {
    color: var(--text-soft);
}

.tab-content.is-hidden {
    display: none;
}

.tab-content.is-active {
    display: block;
}

#tab-content-params.is-active {
    display: grid;
}

.related-section {
    border-top: 1px solid var(--border-color);
    padding-top: 48px;
    margin-bottom: 96px;
}

.related-title {
    font-family: var(--font-display);
    font-size: 32px;
    color: var(--text-main);
    margin-bottom: 32px;
}

.related-title-accent {
    font-style: normal;
    color: var(--primary);
}

.related-section .product-grid {
    margin-bottom: 0;
}

.related-section .p-price {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.related-section .btn-buy-card {
    font-size: 12px;
    padding: 0 16px;
    height: 44px;
    background: var(--accent-gradient);
}

.related-section .btn-buy-card:hover {
    background: var(--accent-gradient-hover);
    box-shadow: var(--shadow-emerald-sm);
}

@media (max-width: 900px) {
    .related-section .product-grid.related-carousel {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }

    .related-section .product-grid.related-carousel::-webkit-scrollbar {
        display: none;
    }

    .related-section .product-grid.related-carousel {
        scrollbar-width: none;
    }

    .related-section .product-grid.related-carousel .p-card {
        flex: 0 0 82%;
        scroll-snap-align: start;
    }
}

.pdp-description {
    max-width: 100%;
    font-size: 16px;
}

.pdp-description {
    max-width: 720px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-main);
}

.pdp-description p {
    margin-bottom: 16px;
    color: var(--text-main);
}

.pdp-description strong {
    display: block;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    margin: 20px 0 12px;
}

.pdp-description strong+ul {
    margin-top: 8px;
}

.pdp-description ul {
    margin: 12px 0 20px 28px;
    padding-left: 12px;
}

.pdp-description ul li {
    margin-bottom: 10px;
}

.pdp-description h1,
.pdp-description h2,
.pdp-description h3,
.pdp-description h4 {
    font-family: var(--font-display);
    color: var(--text-main);
    font-weight: 500;
    margin: 24px 0 12px;
}

.pdp-description h2 {
    font-size: 22px;
}

.pdp-description h3 {
    font-size: 18px;
}

.pdp-description a {
    color: var(--text-main);
    text-decoration: underline;
    text-decoration-color: rgba(16, 41, 31, 0.45);
}

.pdp-description a:hover {
    color: var(--primary);
    text-decoration-color: var(--primary);
}

.pdp-description ul,
.pdp-description ol {
    margin: 12px 0 16px 18px;
}

.pdp-description li {
    margin-bottom: 8px;
    color: var(--text-main);
}

.pdp-description blockquote {
    border-left: 2px solid var(--primary);
    padding-left: 16px;
    color: var(--text-muted);
    margin: 16px 0;
}

.pdp-description img {
    max-width: 100%;
    height: auto;
    border-radius: 2px;
}

.pdp-description table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px;
}

.pdp-description th,
.pdp-description td {
    border: 1px solid var(--border-color);
    padding: 10px 12px;
    text-align: left;
}

.pdp-description th {
    color: var(--text-main);
    background: var(--surface-elevated);
    font-weight: 700;
}

/* --- VARIABLE PRODUCT (Woo form) --- */
.vibrato-pdp-wrapper .variable-product-wrap form.cart {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vibrato-pdp-wrapper .variable-product-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Variant switchers: override legacy dark inline palette from plugin */
.vibrato-pdp-wrapper .vibrato-variants-wrapper .vibrato-var-label {
    color: var(--text-main) !important;
    opacity: 1 !important;
}

.vibrato-pdp-wrapper .vibrato-variants-wrapper .vibrato-swatch {
    background: var(--surface-dark) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: inset 0 0 0 1px rgba(248, 252, 249, 0.45);
}

.vibrato-pdp-wrapper .vibrato-variants-wrapper .vibrato-swatch img {
    opacity: 0.96 !important;
}

.vibrato-pdp-wrapper .vibrato-variants-wrapper .vibrato-swatch:hover {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 2px rgba(47, 117, 89, 0.18) !important;
}

.vibrato-pdp-wrapper .vibrato-variants-wrapper .vibrato-swatch.active {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 2px rgba(47, 117, 89, 0.3), var(--shadow-glow-sm) !important;
}

.vibrato-pdp-wrapper .vibrato-variants-wrapper .vibrato-size-btn {
    background: var(--surface-alt) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-main) !important;
}

.vibrato-pdp-wrapper .vibrato-variants-wrapper .vibrato-size-btn:hover {
    background: var(--surface-elevated) !important;
    border-color: var(--primary) !important;
    color: var(--primary-deep) !important;
}

.vibrato-pdp-wrapper .vibrato-variants-wrapper .vibrato-size-btn.active {
    background: rgba(47, 117, 89, 0.16) !important;
    color: var(--primary-deep) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 1px rgba(47, 117, 89, 0.24) !important;
}

.vibrato-pdp-wrapper .variations {
    width: 100%;
    border: 1px solid var(--border-color);
    background: var(--surface-elevated);
    border-radius: 2px;
    padding: 16px;
}

.vibrato-pdp-wrapper .variations tr {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 16px;
    align-items: center;
    margin-bottom: 12px;
}

.vibrato-pdp-wrapper .variations tr:last-child {
    margin-bottom: 0;
}

.vibrato-pdp-wrapper .variations label {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-main);
}

.vibrato-pdp-wrapper .variations select {
    background: var(--surface-alt);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 2px;
    padding: 10px 12px;
    font-size: 13px;
    width: 100%;
}

.vibrato-pdp-wrapper .variations select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(47, 117, 89, 0.18);
}

.vibrato-pdp-wrapper .variations .reset_variations {
    margin-left: 12px;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-soft);
}

.vibrato-pdp-wrapper .variations .reset_variations:hover {
    color: var(--primary);
}

.vibrato-pdp-wrapper .woocommerce-variation {
    padding: 0;
    margin: 0;
    border: none;
}

.vibrato-pdp-wrapper .woocommerce-variation-description {
    display: none !important;
}

.vibrato-pdp-wrapper .woocommerce-variation .price {
    margin: 8px 0 0;
}

.vibrato-pdp-wrapper .woocommerce-variation-price {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    margin-top: auto;
}

.vibrato-pdp-wrapper .woocommerce-variation-price .save-badge {
    margin-top: 0;
    margin-left: auto;
    display: inline-flex;
}

.vibrato-pdp-wrapper .woocommerce-variation-price .price {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 42px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1;
    display: flex;
    flex-direction: row-reverse;
    align-items: baseline;
    gap: 8px;
}

.vibrato-pdp-wrapper .woocommerce-variation-price del {
    font-size: 20px;
    color: var(--text-soft);
    margin-left: 0;
    text-decoration: line-through;
    position: relative;
    padding-right: 18px;
    cursor: help;
}

.vibrato-pdp-wrapper .woocommerce-variation-price del::after {
    content: "i";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 10px;
    line-height: 14px;
    text-align: center;
    background: var(--surface-elevated);
}

.vibrato-pdp-wrapper .woocommerce-variation-price del::before {
    content: "Doporučená MOC cena";
    position: absolute;
    right: 0;
    top: -34px;
    white-space: nowrap;
    background: var(--surface-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 10px;
    padding: 6px 8px;
    border-radius: 2px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: 0.2s;
}

.vibrato-pdp-wrapper .woocommerce-variation-price del:hover::before,
.vibrato-pdp-wrapper .woocommerce-variation-price del.moc-active::before {
    opacity: 1;
    transform: translateY(0);
}

.vibrato-pdp-wrapper .woocommerce-variation-availability {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 8px;
}

.vibrato-pdp-wrapper .woocommerce-variation-availability {
    display: none;
}

.vibrato-pdp-wrapper .woocommerce-variation-price ins {
    text-decoration: none;
    color: var(--text-main);
    font-size: 42px;
    font-weight: 700;
}

.vibrato-pdp-wrapper .woocommerce-variation-price del {
    font-weight: 500;
}

.vibrato-pdp-wrapper .woocommerce-variation-price del .woocommerce-Price-amount,
.vibrato-pdp-wrapper .woocommerce-variation-price del bdi,
.vibrato-pdp-wrapper .woocommerce-variation-price del .woocommerce-Price-currencySymbol {
    font-size: inherit;
}

.vibrato-pdp-wrapper .woocommerce-variation-price ins .woocommerce-Price-amount,
.vibrato-pdp-wrapper .woocommerce-variation-price ins bdi,
.vibrato-pdp-wrapper .woocommerce-variation-price ins .woocommerce-Price-currencySymbol {
    font-size: inherit;
}

.vibrato-pdp-wrapper .woocommerce-variation-price .current-price del {
    order: 1 !important;
}

.vibrato-pdp-wrapper .woocommerce-variation-price .current-price ins {
    order: 2 !important;
}

@media (max-width: 600px) {
    .vibrato-pdp-wrapper .woocommerce-variation-price .price {
        font-size: 36px;
    }

    .vibrato-pdp-wrapper .woocommerce-variation-price del {
        font-size: 16px;
    }

    .vibrato-pdp-wrapper .woocommerce-variation-price ins {
        font-size: 36px;
    }
}

.vibrato-pdp-wrapper .variations_button {
    display: flex;
    align-items: center;
    gap: 16px;
}

.vibrato-pdp-wrapper .variations_button .quantity {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    background: var(--surface-elevated);
    border-radius: 2px;
    height: 56px;
}

.vibrato-pdp-wrapper .variations_button .quantity[style*="display: none"] {
    display: flex !important;
}

.vibrato-pdp-wrapper .variations_button .quantity .qty {
    width: 60px;
}

.vibrato-pdp-wrapper .variations_button .qty-btn-ctrl {
    width: 40px;
    height: 100%;
    background: transparent;
    border: none;
    color: var(--text-soft);
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vibrato-pdp-wrapper .variations_button .qty-btn-ctrl:hover {
    color: var(--text-main);
    background: var(--surface-strong);
}

.vibrato-pdp-wrapper .variations_button .qty-btn-ctrl:first-child {
    border-right: 1px solid rgba(16, 41, 31, 0.20);
}

.vibrato-pdp-wrapper .variations_button .qty-btn-ctrl:last-child {
    border-left: 1px solid rgba(16, 41, 31, 0.20);
}

.vibrato-pdp-wrapper .variations_button .qty {
    width: 60px;
    height: 100%;
    background: transparent;
    border: none;
    color: var(--text-main);
    text-align: center;
    font-size: 18px;
    font-weight: 700;
}

.vibrato-pdp-wrapper .variations_button .qty::-webkit-outer-spin-button,
.vibrato-pdp-wrapper .variations_button .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.vibrato-pdp-wrapper .single_add_to_cart_button {
    flex: 1;
    background: var(--accent-gradient);
    border: 1px solid rgba(16, 41, 31, 0.3);
    color: var(--text-inverse);
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: 2px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(16, 41, 31, 0.2);
}

.vibrato-pdp-wrapper .single_add_to_cart_button.is-disabled,
.vibrato-pdp-wrapper .single_add_to_cart_button.is-disabled:hover {
    background: var(--surface-strong);
    border-color: var(--border-color);
    color: var(--text-soft);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
    opacity: 0.9;
}

.vibrato-pdp-wrapper .single_add_to_cart_button.added {
    background: var(--primary-deep);
    box-shadow: var(--shadow-emerald-sm);
}

.vibrato-pdp-wrapper .single_add_to_cart_button::after {
    content: 'shopping_bag';
    font-family: 'Material Symbols Outlined';
    font-size: 18px;
}

.vibrato-pdp-wrapper .single_add_to_cart_button {
    gap: 12px;
}

.vibrato-pdp-wrapper .single_add_to_cart_button:hover {
    background: var(--accent-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(16, 41, 31, 0.6);
}

/* --- LIGHTBOX (Fixes) --- */
.pdp-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.98);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.pdp-lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.pdp-lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.pdp-lightbox-overlay.active .pdp-lightbox-img {
    transform: scale(1);
}

.pdp-lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: var(--text-inverse);
    font-size: 40px;
    cursor: pointer;
    z-index: 100001;
    line-height: 1;
    opacity: 0.7;
    transition: 0.3s;
}

.pdp-lightbox-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.pdp-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7) !important;
    border: 1px solid rgba(248, 252, 249, 0.55) !important;
    color: var(--text-inverse) !important;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    z-index: 100001;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.pdp-lightbox-nav:hover {
    background: var(--surface-dark) !important;
    color: var(--text-main) !important;
}

.pdp-lightbox-nav:hover span {
    color: var(--text-main) !important;
    text-shadow: none;
}

.pdp-lightbox-prev {
    left: 30px;
}

.pdp-lightbox-next {
    right: 30px;
}

.pdp-lightbox-nav span {
    font-size: 32px !important;
    color: var(--text-inverse) !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

@media (max-width: 600px) {
    .pdp-lightbox-nav {
        width: 48px;
        height: 48px;
    }

    .pdp-lightbox-prev {
        left: 12px;
    }

    .pdp-lightbox-next {
        right: 12px;
    }
}
