/* --- PRODUCT GRID LAYOUT --- */
.product-section { margin-bottom: 80px; }
.product-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }

@media(min-width: 1024px) {
    .product-grid { grid-template-columns: 1.5fr 1fr; gap: 60px; }
}

/* --- 1. GALLERY (New Layout) --- */
.gallery-wrapper { display: flex; flex-direction: column-reverse; gap: 16px; }

.gallery-main {
    position: relative;
    background: #F8FAFC;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1/1;
    cursor: zoom-in;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform 0.3s; }
.gallery-main:hover img { transform: scale(1.05); }

.gallery-thumbs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
}
.gallery-thumbs::-webkit-scrollbar { display: none; }

.thumb {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: 0.2s;
    flex-shrink: 0;
    background: #F1F5F9;
}
.thumb.active { border-color: var(--color-black); opacity: 1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }

/* Desktop Gallery Layout */
@media(min-width: 768px) {
    .gallery-wrapper { flex-direction: row; align-items: flex-start; }
    .gallery-thumbs { flex-direction: column; width: 80px; height: 600px; overflow-y: auto; overflow-x: hidden; }
    .thumb { width: 80px; height: 80px; }
    .gallery-main { flex: 1; }
}

.badges { position: absolute; top: 16px; left: 16px; display: flex; gap: 6px; z-index: 2; }
.badge { font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 4px; text-transform: uppercase; }
.badge.lime { background: var(--color-lime); color: black; }
.badge.black { background: black; color: white; }

/* --- 2. PRODUCT INFO (Sticky) --- */
.product-info-col { position: relative; }
.sticky-content { position: sticky; top: 90px; }

.product-title { font-size: 32px; font-weight: 800; line-height: 1.1; margin: 0px 0px 16px 0px; color: var(--color-black); }

.price-row { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--color-gray-border); position: relative; }
.price-current { font-size: 36px; font-weight: 800; }
.price-old { font-size: 20px; color: var(--color-muted); text-decoration: line-through; margin-bottom: 6px; }
.discount-pill { background: #FECACA; color: #DC2626; font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 4px; margin-bottom: 8px; }

/* Color Selector */
.options-block { margin-bottom: 32px; }
.opt-label { font-size: 12px; font-weight: 700; margin-bottom: 12px; display: block; color: var(--color-black); }
.colors-list { display: flex; gap: 12px; }
.color-item { width: 44px; height: 44px; border-radius: 50%; cursor: pointer; border: 1px solid #E2E8F0; position: relative; transition: transform 0.2s; }
.color-item:hover { transform: scale(1.1); }
.color-item.active { box-shadow: 0 0 0 2px white, 0 0 0 4px black; }

.material-list { display: flex; gap: 12px; }
.material-item { width: 60px; height: 60px; border-radius: 10px; cursor: pointer;  position: relative; transition: transform 0.2s; overflow: hidden; }
.material-item:hover { transform: scale(1.05); }
.material-item.active { box-shadow: 0 0 0 2px white, 0 0 0 4px black; }

/* Delivery Block (New Style) */
.delivery-widget { background: #F8FAFC; border: 1px solid var(--color-gray-border); border-radius: 16px; padding: 20px; margin-bottom: 32px; }

.dw-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.dw-city { font-weight: 600; font-size: 14px; border-bottom: 1px dashed #94A3B8; cursor: pointer; }
.dw-status { color: #16A34A; font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 4px; }
.dw-dot { width: 6px; height: 6px; background: #16A34A; border-radius: 50%; }

.dw-option { display: flex; gap: 12px; margin-bottom: 12px; padding: 12px; background: white; border-radius: 10px; border: 1px solid transparent; transition: 0.2s; cursor: pointer; }
.dw-option:hover { border-color: #CBD5E1; box-shadow: 0 2px 8px rgba(0,0,0,0.03); }
.dw-icon { width: 36px; height: 36px; background: #F1F5F9; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #475569; }
.dw-text { flex: 1; }
.dw-title { font-size: 13px; font-weight: 700; display: flex; justify-content: space-between; }
.dw-desc { font-size: 12px; color: var(--color-muted); margin-top: 2px; }
.dw-date { color: var(--color-black); font-weight: 600; }

/* Actions */
.actions-row { display: flex; gap: 12px; }
.btn-add { flex: 1; background: var(--color-black); color: white; height: 56px; border-radius: 12px; font-weight: 700; font-size: 16px; letter-spacing: 0.5px; text-transform: uppercase; transition: 0.2s; }
.btn-add:hover { background: #333; transform: translateY(-2px); }
.btn-fav { cursor:pointer; width: 56px; height: 56px; border: 1px solid var(--color-gray-border); border-radius: 12px; display: flex; align-items: center; justify-content: center; transition: 0.2s; top: 0px; }
.btn-fav:hover { border-color: black; }

/* --- 3. FULL WIDTH TABS (Bottom) --- */
.tabs-section { margin-top: 60px; border-top: 1px solid var(--color-gray-border); padding-top: 40px; }

.tabs-nav { display: flex; gap: 32px; border-bottom: 2px solid #F1F5F9; margin-bottom: 32px; overflow-x: auto; }
.tab-btn { padding: 0 0 16px 0; font-size: 16px; font-weight: 600; color: var(--color-muted); position: relative; white-space: nowrap; }
.tab-btn:hover { color: var(--color-black); }
.tab-btn.active { color: var(--color-black); }
.tab-btn.active::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 100%; height: 2px; background: var(--color-orange); }

.tab-content { display: none; animation: fadeIn 0.4s; }
.tab-content.active { display: block; }

.content-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media(min-width: 768px) { .content-grid { grid-template-columns: 2fr 1fr; } }

.text-block p { margin-bottom: 16px; color: #475569; font-size: 15px; }
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table td { padding: 12px 0; border-bottom: 1px solid #F1F5F9; font-size: 14px; }
.spec-name { color: var(--color-muted); width: 40%; }
.spec-val { font-weight: 600; color: var(--color-black); }

/* --- 4. CAROUSELS (Similar / Recommended) --- */
.carousel-section { margin: 80px 0; }
.section-title { font-size: 24px; font-weight: 800; margin-bottom: 32px; text-transform: uppercase; }

.product-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
@media(min-width: 768px) { .product-cards-grid { grid-template-columns: repeat(4, 1fr); } }

.card { cursor: pointer; group: hover; }
.card-img-wrap {
    background: #F8FAFC; border-radius: 12px; overflow: hidden; aspect-ratio: 1/1; margin-bottom: 12px; position: relative;
}
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.card:hover .card-img-wrap img { transform: scale(1.05); }

.card-badge { position: absolute; top: 8px; left: 8px; font-size: 10px; font-weight: 700; padding: 2px 6px; background: var(--color-lime); border-radius: 4px; }

.card-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; line-height: 1.3; }
.card-price { font-weight: 800; font-size: 16px; }
.card-old-price { font-size: 12px; text-decoration: line-through; color: var(--color-muted); margin-left: 6px; }

/* --- 5. SEO BLOCK --- */
.seo-block { background: #F8FAFC; padding: 40px; border-radius: 20px; margin-bottom: 60px; }
.seo-title { font-size: 14px; font-weight: 700; margin-bottom: 20px; text-transform: uppercase; color: var(--color-muted); }
.tags-list { display: flex; flex-wrap: wrap; gap: 10px; }
.seo-tag { background: white; border: 1px solid #E2E8F0; padding: 8px 16px; border-radius: 50px; font-size: 13px; font-weight: 500; color: #475569; transition: 0.2s; }
.seo-tag:hover { border-color: var(--color-orange); color: var(--color-orange); }

/* --- FOOTER --- */
.footer { background: var(--color-black); color: white; padding: 60px 0 20px; border-top-left-radius: 40px; border-top-right-radius: 40px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 60px; }
.f-title { font-weight: 700; margin-bottom: 20px; text-transform: uppercase; font-size: 14px; letter-spacing: 1px; }
.f-list li { margin-bottom: 12px; }
.f-list a { color: #9CA3AF; font-size: 14px; }
.f-list a:hover { color: white; }
.copy { border-top: 1px solid #333; padding-top: 20px; text-align: center; color: #555; font-size: 12px; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }