/* Desktop Product Page — matches shop/home Gletra theme */
.desktop-product-page {
    grid-template-columns: 1fr !important;
    max-width: var(--gletra-page-max, 100%);
    width: 100%;
    padding-top: 8px;
}

.desktop-product-page .home-section {
    width: 100%;
    overflow: hidden;
}

.dp-breadcrumb {
    margin-bottom: 16px;
}

.dp-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
}

.dp-breadcrumb li + li::before {
    content: '/';
    color: var(--text-muted);
    margin-right: 6px;
}

.dp-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}

.dp-breadcrumb a:hover {
    color: var(--secondary);
}

.dp-breadcrumb li.active {
    color: var(--text-main);
    font-weight: 600;
}

/* Main product card */
.dp-main-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    padding: 24px;
    margin-bottom: 24px;
}

.dp-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

/* Gallery */
.dp-gallery-sticky {
    position: sticky;
    top: 120px;
}

.dp-main-viewport {
    background: #fafafa;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
    aspect-ratio: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dp-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.dp-slide {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
    padding: 12px;
}

.dp-slide.active {
    display: block;
}

.dp-discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    background: #e53935;
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 4px;
}

.dp-thumb-strip {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    overflow-x: auto;
    padding: 4px 2px;
    scrollbar-width: thin;
}

.dp-thumb {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 8px;
    border: 2px solid transparent;
    background: #fff;
    padding: 4px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.dp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.dp-thumb.active {
    border-color: var(--secondary);
    box-shadow: 0 0 0 1px var(--secondary);
}

/* Product info */
.dp-category-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--secondary);
    background: #eef5ff;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.dp-title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-main);
    margin: 0 0 14px;
}

.dp-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 13px;
    color: var(--text-muted);
}

.dp-rating-badge {
    background: #388e3c;
    color: white;
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 13px;
}

.dp-price-box {
    background: linear-gradient(135deg, #fafbfc 0%, #f8fafc 100%);
    border: 1px solid #eef2f7;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 18px;
}

.dp-price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
}

.dp-current-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-main);
}

.dp-mrp {
    font-size: 16px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.dp-off-tag {
    background: #e53935;
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
}

.dp-delivery-note {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #388e3c;
}

.dp-offers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
}

.dp-offer-card {
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #eef2f7;
    background: #fafbfc;
}

.dp-offer-card i {
    font-size: 18px;
    color: var(--secondary);
    display: block;
    margin-bottom: 4px;
}

.dp-offer-card strong {
    display: block;
    font-size: 12px;
    color: var(--text-main);
}

.dp-offer-card span {
    font-size: 11px;
    color: var(--text-muted);
}

/* Qty & actions */
.dp-qty-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.dp-qty-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    background: white;
}

.dp-qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: #f8fafc;
    color: var(--text-main);
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.dp-qty-btn:hover {
    background: var(--secondary);
    color: white;
}

.dp-qty-input {
    width: 44px;
    text-align: center;
    border: none;
    font-weight: 700;
    font-size: 15px;
    background: transparent;
}

.dp-stock-note {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}

.dp-stock-note.in-stock {
    color: #388e3c;
}

.dp-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.dp-btn-cart {
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 14px 20px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.dp-btn-buy {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 14px 20px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.dp-btn-cart:hover,
.dp-btn-buy:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    color: white;
}

.dp-secondary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
}

.dp-sec-btn {
    flex: 1;
    min-width: 120px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-main);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.dp-sec-btn:hover {
    background: #eef5ff;
    border-color: var(--secondary);
    color: var(--secondary);
}

.dp-sec-btn.primary-outline {
    border-color: var(--secondary);
    color: var(--secondary);
}

/* Advice panel */
.dp-advice-panel {
    margin-top: 18px;
    padding: 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, #eef5ff 0%, #f8fbff 100%);
    border: 1px solid #dbeafe;
}

.dp-advice-panel h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--secondary);
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dp-advice-panel h4 i {
    color: var(--primary);
}

.dp-advice-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
}

.dp-advice-list li {
    font-size: 12px;
    color: #555;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.4;
}

.dp-advice-list li i {
    color: #388e3c;
    font-size: 13px;
    margin-top: 1px;
    flex-shrink: 0;
}

/* Promise cards */
.dp-promise-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 18px;
}

.dp-promise-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    background: #fafbfc;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}

.dp-promise-item i {
    font-size: 22px;
    color: var(--secondary);
    flex-shrink: 0;
}

.dp-promise-item strong {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 2px;
}

.dp-promise-item span {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Seller card */
.dp-seller-card {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid #eef2f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: white;
}

.dp-seller-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dp-seller-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #eef5ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 18px;
}

.dp-seller-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}

.dp-seller-meta {
    font-size: 11px;
    color: var(--text-muted);
}

.dp-seller-badge {
    font-size: 11px;
    font-weight: 700;
    color: #388e3c;
    background: #e8f5e9;
    padding: 3px 8px;
    border-radius: 4px;
}

/* Variants */
.dp-variants {
    margin-bottom: 16px;
}

.dp-variants label.form-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.dp-variant-btns .btn-check + label {
    border-radius: 20px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    border-color: var(--border-color);
}

.dp-variant-btns .btn-check:checked + label {
    background: var(--secondary);
    border-color: var(--secondary);
    color: white;
}

/* Tabs section */
.dp-tabs-section {
    margin-bottom: 28px;
}

.dp-tab-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 20px;
}

.dp-tab-btn {
    padding: 12px 24px;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.dp-tab-btn.active {
    color: var(--secondary);
}

.dp-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 20%;
    width: 60%;
    height: 3px;
    background: var(--secondary);
    border-radius: 3px 3px 0 0;
}

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

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

.dp-desc-text {
    white-space: pre-line;
    line-height: 1.8;
    color: #555;
    font-size: 14px;
}

.dp-spec-table {
    width: 100%;
    max-width: 640px;
    border-collapse: collapse;
    font-size: 14px;
}

.dp-spec-table th,
.dp-spec-table td {
    padding: 12px 16px;
    border: 1px solid #f0f0f0;
    text-align: left;
}

.dp-spec-table th {
    background: #fafbfc;
    font-weight: 600;
    width: 30%;
    color: var(--text-main);
}

.dp-review-card {
    padding: 14px 16px;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    margin-bottom: 12px;
    background: #fafbfc;
}

.dp-review-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.dp-review-rating {
    background: #388e3c;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.dp-review-form-box {
    padding: 20px;
    border: 1px solid #eef2f7;
    border-radius: 10px;
    background: #fafbfc;
}

.dp-review-form-box select,
.dp-review-form-box textarea {
    border-radius: 8px;
    border-color: #e0e0e0;
    font-size: 14px;
}

.dp-review-subtabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.dp-review-subtab {
    border: 1px solid #e5e7eb;
    background: #fff;
    color: var(--text-main);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.dp-review-subtab.active {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
}

.dp-rev-pane {
    display: none;
}

.dp-rev-pane.active {
    display: block;
}

.review-photo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.review-photo-item {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
    display: block;
}

.review-photo-item img,
.review-preview-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.review-preview-thumb {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.btn-check:checked + .btn-outline-warning {
    background-color: #ffc107;
    color: #fff;
    border-color: #ffc107;
}

.dp-submit-review {
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-weight: 700;
    width: 100%;
}

.dp-submit-review:hover {
    background: #1a5fd4;
    color: white;
}

.dp-unavailable {
    padding: 16px;
    background: #ffebee;
    border: 1px solid #ffcdd2;
    border-radius: 8px;
    color: #c62828;
    font-weight: 700;
    text-align: center;
}

.dp-related-section,
.dp-recent-section {
    margin-bottom: 40px;
}

.dp-product-slide {
    width: 220px;
    height: auto;
    flex-shrink: 0;
}

.dp-related-swiper,
.dp-recent-swiper {
    padding: 0 4px 8px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.dp-related-swiper .product-card-desktop,
.dp-recent-swiper .product-card-desktop {
    width: 100%;
}

.dp-related-swiper .swiper-button-next,
.dp-related-swiper .swiper-button-prev,
.dp-recent-swiper .swiper-button-next,
.dp-recent-swiper .swiper-button-prev {
    color: var(--secondary);
    background: var(--white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dp-related-swiper .swiper-button-next::after,
.dp-related-swiper .swiper-button-prev::after,
.dp-recent-swiper .swiper-button-next::after,
.dp-recent-swiper .swiper-button-prev::after {
    font-size: 14px;
    font-weight: 700;
}

@media (max-width: 1100px) {
    .dp-layout {
        grid-template-columns: 1fr;
    }

    .dp-gallery-sticky {
        position: static;
    }

    .dp-promise-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dp-advice-list {
        grid-template-columns: 1fr;
    }

    .dp-offers-grid {
        grid-template-columns: 1fr;
    }

    .dp-actions {
        grid-template-columns: 1fr;
    }
}
