/* assets/css/detail.css - Complete Redesign */

/* Base Reset & Fonts */
* {
    box-sizing: border-box;
}

body {
    background-color: #fafafa;
    color: #333;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* -------------------------------------
   1. Top Product Layout (Gallery + Info)
-------------------------------------- */
.dt-layout {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    margin-bottom: 30px;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

/* GALLERY COLUMN */
.dt-left-col {
    width: 60%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dt-gallery {
    display: flex;
    gap: 15px;
}

.dt-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 80px;
}

.dt-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    background: #f1f3f5;
    padding: 5px;
    object-fit: cover;
    transition: 0.2s;
}

.dt-thumb.active, .dt-thumb:hover {
    border-color: #111;
}

.dt-main-image {
    flex: 1;
    background: #f1f3f5;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.dt-main-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.dt-store-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border: 1px solid #eee;
    border-radius: 12px;
}

.dt-store-logo {
    width: 45px;
    height: 45px;
    background: #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #3b82f6;
    position: relative;
}

.dt-store-logo i {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #3b82f6;
    color: white;
    font-size: 0.5rem;
    padding: 2px;
    border-radius: 50%;
}

.dt-store-info {
    flex: 1;
}

.dt-store-name {
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 4px;
}

.dt-store-status {
    font-size: 0.75rem;
    color: #10b981;
    font-weight: 600;
}

.dt-store-actions {
    display: flex;
    gap: 10px;
}

.dt-btn-outline-small {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
    background: #fff;
    cursor: pointer;
    text-decoration: none;
    transition: 0.2s;
}
.dt-btn-outline-small:hover {
    background: #f8f9fa;
    border-color: #bbb;
}

.dt-store-stats {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: #666;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #eee;
}

/* INFO COLUMN */
.dt-info {
    width: 40%;
    display: flex;
    flex-direction: column;
}

.dt-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.2;
}

.dt-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 20px;
}

.dt-stars {
    color: #fbbf24;
}

.dt-price-box {
    margin-bottom: 25px;
}

.dt-price {
    font-size: 2.2rem;
    font-weight: 900;
    color: #111;
    margin-bottom: 5px;
}

.dt-price-old-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.dt-price-old {
    color: #999;
    text-decoration: line-through;
}

.dt-discount-badge {
    color: #10b981;
    font-weight: 700;
}

/* Selectors (Color / Size) */
.dt-selector-group {
    margin-bottom: 20px;
}

.dt-selector-label {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.dt-size-guide {
    color: #666;
    font-weight: 400;
    text-decoration: underline;
    cursor: pointer;
}

.dt-color-opts {
    display: flex;
    gap: 10px;
}

.dt-color-box {
    width: 40px;
    height: 40px;
    border: 2px solid #eee;
    border-radius: 6px;
    padding: 2px;
    cursor: pointer;
    background: #fff;
}
.dt-color-box.active {
    border-color: #111;
}
.dt-color-box img {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    object-fit: cover;
}

.dt-size-opts {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.dt-size-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: #555;
    transition: 0.2s;
}
.dt-size-btn.active {
    background: #111;
    color: #fff;
    border-color: #111;
}
.dt-size-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8f9fa;
}

/* Quantity hidden visually but needed for form */
.dt-qty-hidden { display: none; }

/* Main Actions */
.dt-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
    margin-bottom: 20px;
}

.dt-btn-buy {
    background: #111;
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s;
}
.dt-btn-buy:hover {
    background: #333;
}

.dt-btn-cart {
    background: #fff;
    color: #111;
    border: 1px solid #111;
    padding: 16px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s;
}
.dt-btn-cart:hover {
    background: #f4f4f5;
}

.dt-secondary-actions {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #eee;
    padding-top: 15px;
    font-size: 0.85rem;
    color: #555;
}
.dt-secondary-actions span {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.dt-secondary-actions span:hover {
    color: #111;
}


/* -------------------------------------
   2. Tabs Section
-------------------------------------- */
.dt-content-section {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    margin-bottom: 30px;
}

.dt-tabs-header {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 25px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.dt-tabs-left {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.dt-tab {
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid transparent;
    background: transparent;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    font-size: 0.9rem;
}
.dt-tab.active {
    background: #111;
    color: #fff;
    border-color: #111;
}

.dt-report-btn {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.dt-tab-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}
.dt-tab-panel.active {
    display: block;
}
@keyframes fadeIn { from{opacity:0;} to{opacity:1;} }


/* Description specific */
.dt-desc-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 15px;
}
.dt-desc-text {
    line-height: 1.6;
    color: #444;
    margin-bottom: 25px;
}
.dt-specs-table {
    width: 100%;
    max-width: 600px;
    font-size: 0.9rem;
    color: #555;
}
.dt-specs-table td {
    padding: 8px 0;
}
.dt-specs-table td:first-child {
    font-weight: 600;
    color: #333;
    width: 200px;
}


/* -------------------------------------
   3. Styling Ideas Bundle Section
-------------------------------------- */
.dt-styling-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
}
.dt-styling-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.dt-styling-header h3 {
    font-size: 1.2rem;
    font-weight: 800;
}
.dt-styling-link {
    font-size: 0.85rem;
    color: #3b82f6;
    cursor: pointer;
}
.dt-bundle-row {
    display: flex;
    align-items: center;
    gap: 15px;
}
.dt-bundle-item {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    border: 1px solid #eee;
}
.dt-bundle-item.main {
    background: #eef2ff;
    border-color: #c7d2fe;
}
.dt-bundle-item img {
    width: 100%;
    height: 100px;
    object-fit: contain;
    mix-blend-mode: multiply;
    margin-bottom: 10px;
}
.dt-bundle-item-title {
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
}
.dt-bundle-item-price {
    font-size: 0.9rem;
    font-weight: 800;
}
.dt-bundle-item-old {
    font-size: 0.7rem;
    text-decoration: line-through;
    color: #999;
}
.dt-bundle-plus {
    width: 30px;
    height: 30px;
    background: #111;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
.dt-bundle-total {
    flex: 1;
    text-align: center;
    padding-left: 20px;
    border-left: 1px dashed #ccc;
}
.dt-bundle-total-price {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 5px;
}
.dt-bundle-save {
    font-size: 0.85rem;
    color: #10b981;
    font-weight: 700;
    margin-bottom: 15px;
}
.dt-btn-bundle {
    background: #111;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
}

/* -------------------------------------
   4. Customer Reviews Layout
-------------------------------------- */
.dt-reviews-summary {
    display: flex;
    gap: 40px;
    align-items: center;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 30px;
}
.dt-review-score {
    display: flex;
    align-items: center;
    gap: 20px;
}
.dt-score-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
}
.dt-score-text h4 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 5px;
}
.dt-score-text p {
    font-size: 0.8rem;
    color: #666;
}

.dt-review-bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.dt-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: #555;
}
.dt-bar-outer {
    flex: 1;
    height: 6px;
    background: #eee;
    border-radius: 3px;
}
.dt-bar-inner {
    height: 100%;
    background: #111;
    border-radius: 3px;
}

.dt-review-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 300px;
}
.dt-filter-btn {
    padding: 6px 12px;
    border: 1px solid #eee;
    background: #fff;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #555;
    cursor: pointer;
}
.dt-filter-btn.active {
    background: #111;
    color: #fff;
    border-color: #111;
}

.dt-reviews-masonry {
    column-count: 2;
    column-gap: 20px;
}
.dt-review-card {
    break-inside: avoid;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.dt-review-card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    align-items: center;
}
.dt-review-card h4 {
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 5px;
}
.dt-review-card-meta {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 15px;
}
.dt-review-card-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #444;
    margin-bottom: 15px;
}
.dt-review-card-actions {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: #888;
}
.dt-review-card-actions span {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}
.dt-review-card-actions span:hover {
    color: #111;
}

.dt-see-all {
    text-align: center;
    margin-top: 10px;
}
.dt-see-all-btn {
    padding: 10px 30px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 20px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.9rem;
}
.dt-see-all-btn:hover {
    background: #f4f4f5;
}

/* -------------------------------------
   5. Best Seller Section
-------------------------------------- */
.dt-bestseller-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.dt-bestseller-header h3 {
    font-size: 1.3rem;
    font-weight: 800;
}
.dt-bestseller-nav {
    display: flex;
    gap: 5px;
}
.dt-bestseller-nav button {
    width: 35px;
    height: 35px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dt-bestseller-nav button:last-child {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* -------------------------------------
   Responsive Design
-------------------------------------- */
@media (max-width: 992px) {
    .dt-layout {
        flex-direction: column;
    }
    .dt-left-col, .dt-info {
        width: 100%;
    }
    .dt-reviews-summary {
        flex-direction: column;
        align-items: stretch;
    }
    .dt-review-filters {
        width: 100%;
    }
}
@media (max-width: 768px) {
    .dt-gallery {
        flex-direction: column-reverse;
    }
    .dt-thumbnails {
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
    }
    .dt-thumb {
        flex-shrink: 0;
    }
    .dt-reviews-masonry {
        column-count: 1;
    }
    .dt-bundle-row {
        flex-direction: column;
    }
    .dt-bundle-total {
        border-left: none;
        border-top: 1px dashed #ccc;
        padding-left: 0;
        padding-top: 20px;
    }
}