/* =============================================
   SHOP & PRODUCT STYLES — Gervent
   ============================================= */

/* --- ОБЩИЕ --- */
.page-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #1d4ed8 100%);
    padding: 64px 0 48px;
    position: relative;
    overflow: hidden;
}
.page-hero::after {
    content: '';
    position: absolute;
    right: -80px;
    top: -80px;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}
.page-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(59,130,246,0.2);
    border: 1px solid rgba(59,130,246,0.4);
    color: #93c5fd;
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 14px;
}
.page-hero-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.2;
}
.page-hero-desc {
    color: #94a3b8;
    font-size: 1rem;
    max-width: 560px;
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 0.875rem;
    color: #64748b;
    flex-wrap: wrap;
}
.breadcrumb a {
    color: #60a5fa;
    text-decoration: none;
}
.breadcrumb a:hover { color: #93c5fd; }
.breadcrumb-sep { color: #334155; }

/* --- КАТАЛОГ --- */
.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    padding: 56px 0;
}
.shop-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}
.sidebar-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
}
.sidebar-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}
.sidebar-cats a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    color: #475569;
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid #f8fafc;
    transition: color 0.2s;
}
.sidebar-cats a:hover { color: #2563eb; }
.sidebar-cats a.active { color: #2563eb; font-weight: 600; }
.sidebar-cats .cat-count {
    background: #f1f5f9;
    color: #64748b;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 100px;
}
.sidebar-contact {
    background: linear-gradient(135deg, #1e3a5f, #2563eb);
    border-radius: 16px;
    padding: 24px;
    color: #fff;
    text-align: center;
}
.sidebar-contact h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.sidebar-contact p {
    font-size: 0.8rem;
    color: #bfdbfe;
    margin-bottom: 16px;
    line-height: 1.5;
}
.sidebar-contact a {
    display: block;
    background: #fff;
    color: #2563eb;
    padding: 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
}
.sidebar-contact a:hover { background: #eff6ff; }

/* Сортировка и счётчик */
.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.shop-count {
    font-size: 0.9rem;
    color: #64748b;
}
.shop-count strong { color: #0f172a; }
.shop-sort select {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.875rem;
    color: #475569;
    background: #fff;
    cursor: pointer;
    outline: none;
}
.shop-sort select:focus { border-color: #2563eb; }

/* Сетка товаров */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Карточка товара */
.grv-product-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}
.grv-product-card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 12px 40px rgba(37,99,235,0.1);
    transform: translateY(-3px);
}
.grv-product-img {
    position: relative;
    background: #f8fafc;
    height: 220px;
    overflow: hidden;
}
.grv-product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: transform 0.4s;
}
.grv-product-card:hover .grv-product-img img { transform: scale(1.05); }
.grv-product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #2563eb;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.grv-product-body {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.grv-product-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
    line-height: 1.4;
    text-decoration: none;
    display: block;
    flex: 1;
}
.grv-product-name:hover { color: #2563eb; }
.grv-product-short {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 14px;
}
.grv-product-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: #2563eb;
    margin-bottom: 14px;
}
.grv-product-price .per { font-size: 0.75rem; color: #94a3b8; font-weight: 400; }
.grv-product-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: #2563eb;
    color: #fff;
    padding: 11px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}
.grv-product-btn:hover { background: #1d4ed8; color: #fff; }

/* Пагинация */
.grv-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.grv-pagination a,
.grv-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    color: #475569;
    transition: all 0.2s;
}
.grv-pagination a:hover { border-color: #2563eb; color: #2563eb; }
.grv-pagination .current { background: #2563eb; color: #fff; border-color: #2563eb; }

/* --- СТРАНИЦА ТОВАРА --- */
.single-product-wrap {
    padding: 56px 0;
}
.single-product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
    margin-bottom: 64px;
}
.single-gallery {
    position: sticky;
    top: 100px;
}
.single-main-img {
    background: #f8fafc;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
}
.single-main-img img {
    width: 100%;
    height: 420px;
    object-fit: contain;
    padding: 24px;
    display: block;
}
.single-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.single-thumb {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s;
}
.single-thumb:hover, .single-thumb.active { border-color: #2563eb; }
.single-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }

.single-info {}
.single-cats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.single-cat-tag {
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 100px;
    text-decoration: none;
}
.single-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 16px;
}
.single-price-block {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 24px;
}
.single-price-label {
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-bottom: 6px;
}
.single-price {
    font-size: 2rem;
    font-weight: 800;
    color: #2563eb;
    line-height: 1;
}
.single-price .per {
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 400;
    margin-left: 4px;
}
.single-price-note {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 6px;
}
.single-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 24px;
}
.single-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #475569;
}
.single-feature-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: #eff6ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
}
.single-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}
.single-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #2563eb;
    color: #fff;
    padding: 16px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37,99,235,0.3);
}
.single-btn-primary:hover { background: #1d4ed8; color: #fff; transform: translateY(-1px); }
.single-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff;
    color: #0f172a;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: 2px solid #e2e8f0;
    transition: all 0.3s;
}
.single-btn-secondary:hover { border-color: #2563eb; color: #2563eb; }
.single-guarantee {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    font-size: 0.875rem;
    color: #166534;
}
.single-guarantee svg { color: #16a34a; flex-shrink: 0; }

/* Описание и характеристики */
.single-tabs {
    margin-bottom: 48px;
}
.tabs-nav {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 28px;
}
.tab-btn {
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    background: none;
    border: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}
.tab-btn:hover { color: #2563eb; }
.tab-btn.active { color: #2563eb; border-bottom-color: #2563eb; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-panel p { color: #475569; line-height: 1.8; margin-bottom: 14px; font-size: 0.95rem; }
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr:nth-child(even) td { background: #f8fafc; }
.specs-table td {
    padding: 12px 16px;
    font-size: 0.9rem;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
}
.specs-table td:first-child { font-weight: 600; color: #0f172a; width: 40%; }

/* Похожие товары */
.related-section { padding-bottom: 56px; }
.related-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 28px;
}

/* --- АДАПТИВ --- */
@media (max-width: 1024px) {
    .shop-layout { grid-template-columns: 240px 1fr; gap: 24px; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .single-product-grid { gap: 36px; }
}
@media (max-width: 768px) {
    .shop-layout { grid-template-columns: 1fr; }
    .shop-sidebar { position: static; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .single-product-grid { grid-template-columns: 1fr; }
    .single-gallery { position: static; }
    .single-features { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; }
}

/* =============================================
   POPUP + CF7 FORM STYLES
   ============================================= */

/* Оверлей попапа */
.pum-overlay {
    background: rgba(15, 23, 42, 0.75) !important;
    backdrop-filter: blur(4px);
}

/* Контейнер попапа */
.pum-container {
    border-radius: 20px !important;
    border: none !important;
    box-shadow: 0 24px 80px rgba(0,0,0,0.25) !important;
    padding: 0 !important;
    overflow: hidden !important;
    max-width: 480px !important;
    width: 90% !important;
}

/* Кнопка закрытия */
.pum-close {
    top: 16px !important;
    right: 16px !important;
    width: 36px !important;
    height: 36px !important;
    background: #f1f5f9 !important;
    border-radius: 8px !important;
    color: #64748b !important;
    font-size: 18px !important;
    line-height: 36px !important;
    text-align: center !important;
    border: none !important;
    transition: all 0.2s !important;
    z-index: 10 !important;
}
.pum-close:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

/* Шапка попапа */
.grv-popup-header {
    background: linear-gradient(135deg, #0f172a, #1e3a5f);
    padding: 32px 32px 24px;
    position: relative;
}
.grv-popup-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(59,130,246,0.2);
    border: 1px solid rgba(59,130,246,0.4);
    color: #93c5fd;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}
.grv-popup-title {
    font-size: 1.375rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 10px;
}
.grv-popup-product-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 10px 14px;
}
.grv-popup-product-icon {
    color: #60a5fa;
    flex-shrink: 0;
}
.grv-popup-product-label {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-bottom: 2px;
}
.grv-popup-product-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #e2e8f0;
}

/* Тело попапа */
.grv-popup-body {
    padding: 28px 32px 32px;
    background: #fff;
}

/* CF7 форма */
.grv-popup-body .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Поля ввода */
.grv-popup-body .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}
.grv-popup-body .wpcf7-text,
.grv-popup-body .wpcf7-tel,
.grv-popup-body input[type="text"],
.grv-popup-body input[type="tel"] {
    width: 100% !important;
    padding: 13px 16px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    font-size: 0.95rem !important;
    color: #0f172a !important;
    background: #f8fafc !important;
    outline: none !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
}
.grv-popup-body .wpcf7-text:focus,
.grv-popup-body .wpcf7-tel:focus,
.grv-popup-body input[type="text"]:focus,
.grv-popup-body input[type="tel"]:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1) !important;
    background: #fff !important;
}
.grv-popup-body input::placeholder {
    color: #94a3b8 !important;
}

/* Чекбокс согласия */
.grv-popup-body .wpcf7-acceptance {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
}
.grv-popup-body .wpcf7-acceptance input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    margin-top: 2px !important;
    accent-color: #2563eb !important;
    cursor: pointer !important;
}
.grv-popup-body .wpcf7-acceptance .wpcf7-list-item-label {
    font-size: 0.8rem !important;
    color: #64748b !important;
    line-height: 1.5 !important;
}
.grv-popup-body .wpcf7-acceptance a {
    color: #2563eb !important;
    text-decoration: underline !important;
}

/* Кнопка отправки */
.grv-popup-body .wpcf7-submit {
    width: 100% !important;
    padding: 14px !important;
    background: #2563eb !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    font-family: inherit !important;
    box-shadow: 0 4px 16px rgba(37,99,235,0.3) !important;
}
.grv-popup-body .wpcf7-submit:hover {
    background: #1d4ed8 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(37,99,235,0.4) !important;
}

/* Сообщения CF7 */
.grv-popup-body .wpcf7-response-output {
    border-radius: 10px !important;
    padding: 12px 16px !important;
    font-size: 0.875rem !important;
    border: none !important;
    margin: 0 !important;
}
.grv-popup-body .wpcf7-mail-sent-ok {
    background: #f0fdf4 !important;
    color: #166534 !important;
    border: 1px solid #bbf7d0 !important;
}
.grv-popup-body .wpcf7-validation-errors,
.grv-popup-body .wpcf7-mail-sent-ng {
    background: #fef2f2 !important;
    color: #991b1b !important;
    border: 1px solid #fecaca !important;
}
.grv-popup-body .wpcf7-not-valid-tip {
    font-size: 0.75rem !important;
    color: #dc2626 !important;
    margin-top: 4px !important;
    display: block !important;
}

/* Спиннер загрузки */
.grv-popup-body .wpcf7-spinner {
    display: none !important;
}
#tab-desc ul{
	padding: 15px 0px 10px 20px;
}
#tab-desc li{
	list-style: disc;
}

/* Бейдж продажи — зелёный */
.grv-product-badge.sale {
    background: #16a34a;
}
