/* ============================================================
   SHOP PRODUCT DETAIL (SHOW) PAGE STYLES
   Page: resources/views/main/shop/show.blade.php
   Displays a single product with gallery, pricing, specs,
   reviews, and related products.
   Depends on global variables defined in style.css
   ============================================================ */

/* ============================================================
   PRODUCT SECTION – main container
   ============================================================ */

   .product-section {
    width: 100%;
    padding: 0;
    margin: 0;
    background: var(--gradient-section);
    min-height: 100vh;
}

/* ============================================================
   PRODUCT GRID – main content + sidebar layout
   ============================================================ */

.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 60px;
    position: relative;
}

/* ============================================================
   MAIN CONTENT – product image and details
   ============================================================ */

.main-content {
    flex: 3;
    gap: 20px;
    min-width: 300px;
    background: var(--white);
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 15px 35px var(--shadow-medium);
    position: relative;
    overflow: hidden;
    color: var(--gray-darker);
}

.product-details {
    padding: 20px;
}

.product-description {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.product-price {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-price span {
    font-size: 14px;
    font-weight: 400;
}

/* ============================================================
   BADGES – discount and premium indicators
   ============================================================ */

.discount-badge {
    background: var(--danger);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: -0.2px;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(255, 59, 59, 0.3);
    transform: rotate(5deg);
}

.premium-ribbon {
    z-index: 999;
    position: absolute;
    top: 20px;
    left: -35px;
    background: var(--gradient-gold);
    color: #383d3d;
    padding: 8px 40px;
    transform: rotate(-45deg);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(255, 206, 18, 0.3);
}

/* ============================================================
   MAIN IMAGE – product display with 3D shadow
   ============================================================ */

.main-image-container {
    border-radius: 15px;
    padding: 25px;
    background: var(--white);
    border: 1px solid var(--gray-border);
    box-shadow: 0 10px 30px var(--shadow-light);
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.shadow-3d {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    background: var(--overlay-dark);
    border-radius: 10px;
    z-index: 0;
}

.main-product-image {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px var(--shadow-dark));
}

.zoom-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 123, 255, 0.9);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
    backdrop-filter: blur(5px);
}

/* ============================================================
   THUMBNAILS – scrollable gallery
   ============================================================ */

.thumbnails-wrapper {
    position: relative;
}

.thumbnails-container {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: var(--gray-lighter);
    border-radius: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    max-width: 100%;
    white-space: nowrap;
}

.thumb-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    box-shadow: 0 3px 10px var(--shadow-heavy);
    cursor: pointer;
    z-index: 3;
    display: none;
}

.thumb-icon {
    color: var(--gray-text);
    font-size: 12px;
}

.thumbnail-item {
    flex: 0 0 auto;
    border-radius: 10px;
    padding: 4px;
    width: 65px;
    height: 65px;
    background: var(--white);
    transition: 0.3s;
}

.thumbnail-item.default {
    border: 2px solid var(--gray-border);
}

/* ============================================================
   COLORS SECTION – color picker
   ============================================================ */

.colors-section-wrapper {
    margin-bottom: 20px;
    margin-top: 25px;
    padding: 20px;
    background: var(--gradient-white-gray);
    border-radius: 15px;
    border: 1px solid var(--gray-border);
    box-shadow: 0 5px 15px var(--shadow-light);
}

.colors-title {
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--gray-dark);
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.colors-icon {
    color: var(--gold);
    font-size: 18px;
}

.color-item {
    position: relative;
    cursor: pointer;
    margin: 5px;
}

.color-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
    box-shadow: 0 2px 4px var(--shadow-dark);
    transition: 0.3s;
}

.color-tooltip {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: var(--white);
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
}

/* ============================================================
   PRODUCT DETAILS – title, badges, categories
   ============================================================ */

.product-details-wrapper {
    flex: 1;
    padding: 0 20px;
}

.product-title {
    font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--gray-dark);
    font-size: 22px;
    line-height: 1.2;
    position: relative;
    padding-bottom: 15px;
}

.product-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    background: var(--gradient-section);
    padding: 12px 20px;
    border-radius: 10px;
    border-left: 4px solid var(--info);
    text-transform: capitalize;
}

.category-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    background: var(--gradient-section);
    padding: 10px 18px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-green);
    transition: transform 0.2s ease;
}

.category-icon {
    color: var(--primary-green);
    font-size: 18px;
}

.category-text {
    color: var(--gray-text-dark);
    font-weight: 600;
    font-size: 16px;
    text-transform: capitalize;
}

.label-opacity {
    opacity: 0.8;
    font-weight: 500;
}

/* ============================================================
   SIZES SECTION – size selector
   ============================================================ */

.sizes-title {
    display: flex;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--gray-dark);
    font-size: 16px;
    align-items: center;
    gap: 10px;
}

.sizes-icon {
    color: var(--gold);
}

.size-btn {
    padding: 10px 20px;
    border: 2px solid var(--gray-border-light);
    border-radius: 8px;
    background: var(--white);
    color: var(--gray-text-dark);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 60px;
}

.size-btn.selected {
    background: var(--gradient-gold) !important;
    color: #383d3d !important;
    border-color: var(--gold) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(255, 206, 18, 0.3) !important;
}

/* ============================================================
   PRICE SECTION – sale price, original price, savings
   ============================================================ */

.price-section {
    margin: 30px 0;
    padding: 25px;
    background: var(--gradient-section);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.price-gradient-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--primary-green),
        var(--primary-blue),
        var(--primary-gold)
    );
}

.sale-price-wrapper {
    position: relative;
}

.sale-price {
    font-size: 35px;
    font-weight: 900;
    color: var(--primary-green);
    text-shadow: 2px 2px 4px var(--shadow-dark);
}

.sale-price-underline {
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-green);
    border-radius: 2px;
}

.original-price {
    font-size: 22px;
    color: var(--gray-text);
    text-decoration: line-through;
}

.savings-badge {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: var(--white);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 800;
    display: inline-block;
    width: fit-content;
    animation: pulse 2s infinite;
}

.regular-price {
    font-size: 32px;
    font-weight: 900;
    color: var(--primary-blue);
    text-shadow: 2px 2px 4px var(--shadow-dark);
}

.payment-label {
    font-size: 13px;
    color: var(--gray-text);
}

.credit-icon {
    color: var(--gray-text);
}

/* ============================================================
   RATING & REVIEWS – stars and summary
   ============================================================ */

.star-filled {
    color: var(--star-color);
    text-shadow: 0 2px 4px rgba(255, 206, 18, 0.3);
}

.holographic-img {
    object-fit: contain;
    background-color: var(--white);
    aspect-ratio: 1/1;
}

.reviews-count {
    color: var(--gray-text-dark);
    font-weight: 600;
    font-size: 16px;
}

.separator-dot {
    width: 6px;
    height: 6px;
    background: var(--gray-border-light);
    border-radius: 50%;
}

.rating-score {
    color: var(--primary-green-dark);
    font-weight: 700;
    font-size: 16px;
}

/* ============================================================
   DESCRIPTION – short and full with read more
   ============================================================ */

.description-container {
    position: relative;
}

.short-desc {
    color: var(--gray-text-dark);
    line-height: 1.6;
    font-size: 16px;
    margin-bottom: 15px;
}

.full-desc {
    color: var(--gray-text);
    line-height: 1.6;
    font-size: 15px;
    display: none;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--primary-blue);
    font-weight: 600;
    cursor: pointer;
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================================
   QUANTITY SELECTOR – with +/- buttons
   ============================================================ */

.quantity-title {
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--gray-dark);
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-icon {
    color: var(--gold);
}

.quantity-selector {
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--gray-border);
    background: var(--white);
    box-shadow: 0 5px 15px var(--shadow-light);
}

.quantity-btn {
    width: 50px;
    padding: 15px;
    border: none;
    background: var(--gray-lighter);
    cursor: pointer;
    transition: all 0.3s;
}

.quantity-btn i {
    color: var(--gray-text);
    font-size: 16px;
}

.stock-info {
    color: var(--gray-text);
    font-size: 14px;
}

/* ============================================================
   TABS – description, specifications, reviews
   ============================================================ */

.nav-specs-tab .nav-reviews-tab {
    font-weight: 700;
    background: #f0f7ff;
    box-shadow: 0 5px 15px var(--shadow-light);
    position: relative;
}

/* ============================================================
   ADD TO CART BUTTONS – with shine effect
   ============================================================ */

.btn-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 25px;
    background: var(--primary-blue);
    border-radius: 12px;
    border: none;
    color: var(--white);
    text-decoration: none;
    font-weight: 800;
    font-size: 16px;
    box-shadow: 0 10px 25px rgba(129, 196, 8, 0.3);
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.btn-add-to-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 25px;
    background: var(--gradient-gold);
    border-radius: 12px;
    border: none;
    color: #383d3d;
    cursor: pointer;
    font-weight: 800;
    font-size: 16px;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(255, 206, 18, 0.3);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        var(--overlay-light),
        transparent
    );
    transform: translateX(-100%);
    transition: transform 0.6s;
}

/* ============================================================
   WISHLIST BUTTONS – add/remove
   ============================================================ */

.btn-remove-wishlist {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: #f8d7da;
    border: 2px solid #dc3545;
    border-radius: 10px;
    color: #721c24;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-remove-wishlist:hover {
    background: #f5c6cb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

.btn-add-wishlist {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--white);
    border: 2px solid var(--gray-border-light);
    border-radius: 10px;
    color: var(--gray-text-dark);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

/* ============================================================
   TAB BUTTONS – navigation between content sections
   ============================================================ */

.tab-btn {
    flex: 1 1 220px;
    padding: 14px 18px;
    border: none;
    background: var(--white);
    color: #6c757d;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.tab-btn.active {
    color: #004ecc;
    font-weight: 700;
    background: #f0f7ff;
    box-shadow: 0 5px 15px var(--shadow-light);
    position: relative;
}

.tab-btn.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    border-radius: 3px;
}

.tab-badge {
    background: var(--gold);
    color: #383d3d;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 800;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ============================================================
   DESCRIPTION CARD – feature details
   ============================================================ */

.description-card {
    padding: 30px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-light);
}

.description-text {
    color: var(--gray-text-dark);
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 25px;
    font-weight: 500;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: var(--gray-lighter);
    border-radius: 12px;
    color: var(--gray-darker);
}

.feature-icon.yellow {
    color: var(--gold);
}

.feature-title {
    font-weight: 800;
    color: var(--gray-dark);
    margin-bottom: 8px;
}

.feature-desc {
    color: var(--gray-700);
    font-size: 14px;
    line-height: 1.5;
}

.text-panel-header {
    font-size: 16px;
    color: #2a2d31;
}

/* ============================================================
   REVIEWS SUMMARY – rating distribution
   ============================================================ */

.reviews-summary {
    padding: 30px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-light);
    margin-bottom: 30px;
}

.average-number {
    font-size: 64px;
    font-weight: 900;
    color: var(--gray-dark);
    line-height: 1;
}

.summary-stars i {
    color: var(--gold);
    font-size: 20px;
}

.based-on {
    color: var(--gray-text);
    font-size: 14px;
}

.rating-number {
    color: var(--gray-text);
    font-size: 14px;
    width: 20px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: var(--gray-bg);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gold);
    border-radius: 4px;
}

.rating-count {
    color: var(--gray-text-dark);
    font-weight: 600;
    font-size: 14px;
    width: 40px;
}

/* ============================================================
   REVIEW CARD – individual review
   ============================================================ */

.review-card {
    margin-bottom: 25px;
    padding: 25px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow-light);
    transition: all 0.3s;
}

.avatar-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold);
    padding: 3px;
}

.verified-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 25px;
    height: 25px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.verified-badge i {
    color: var(--white);
    font-size: 12px;
}

.review-details {
    flex: 1;
}

.reviewer-name {
    margin-bottom: 5px;
    color: var(--gray-dark);
    font-weight: 800;
    font-size: 18px;
}

.review-date {
    color: var(--gray-text);
    font-size: 14px;
}

.review-action-btn {
    background: none;
    border: 1px solid var(--gray-border-light);
    border-radius: 6px;
    padding: 6px 12px;
    color: var(--gray-text);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.review-text {
    color: var(--gray-text-dark);
    line-height: 1.6;
    margin: 0;
    font-size: 15px;
}

/* ============================================================
   LOAD MORE & NO REVIEWS STATES
   ============================================================ */

.btn-load-more {
    padding: 15px 40px;
    border: 2px solid var(--primary-blue);
    background: var(--white);
    color: var(--primary-blue);
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.no-reviews {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-light);
}

.no-reviews-icon {
    width: 120px;
    height: 120px;
    background: var(--gradient-section);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.no-reviews-icon i {
    font-size: 50px;
    color: var(--gray-border-light);
}

.no-reviews-title {
    color: var(--gray-text);
    margin-bottom: 15px;
    font-size: 22px;
    font-weight: 700;
}

.no-reviews-text {
    color: var(--gray-text);
    max-width: 500px;
    margin: 0 auto 30px;
    font-size: 16px;
}

.btn-first-review {
    padding: 15px 40px;
    background: var(--gradient-gold);
    border: none;
    border-radius: 12px;
    color: #383d3d;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
}

/* ============================================================
   REVIEW FORM – submit a review
   ============================================================ */

.review-form-container {
    margin-top: 60px;
    padding: 40px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-light);
}

.form-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.form-header-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(
        135deg,
        var(--primary-blue) 0%,
        var(--primary-green) 100%
    );
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-header-icon i {
    color: var(--white);
    font-size: 26px;
}

.form-header-title {
    margin-bottom: 5px;
    color: var(--gray-dark);
    font-weight: 800;
    font-size: 24px;
}

.form-header-subtitle {
    color: var(--gray-text);
    font-size: 15px;
}

.rating-field {
    width: 100%;
}

.star-active {
    color: var(--gold);
}

.rating-hint {
    color: var(--gray-text);
    font-size: 14px;
    background: var(--gray-lighter);
    padding: 8px 15px;
    border-radius: 20px;
}

.textarea-field {
    width: 100%;
}

.textarea-wrapper {
    position: relative;
}

.textarea-icon {
    position: absolute;
    left: 20px;
    top: 20px;
    color: var(--gray-text);
    z-index: 1;
}

.review-textarea {
    width: 100%;
    padding: 20px 20px 20px 50px;
    border: 2px solid var(--gray-border);
    border-radius: 15px;
    height: 150px;
    font-size: 16px;
    resize: vertical;
    transition: all 0.3s;
    position: relative;
}

.textarea-hint {
    color: var(--gray-text);
    font-size: 13px;
}

.char-count {
    color: var(--gray-text);
    font-size: 13px;
}

/* ============================================================
   SPECIFICATIONS CONTAINER – product details grid
   ============================================================ */

.specs-container {
    padding: 20px;
    background: var(--gradient-specs);
    border-radius: 20px;
    box-shadow: 0 12px 40px var(--shadow-medium), 0 2px 10px var(--shadow-light);
    border: 1px solid rgba(224, 229, 235, 0.8);
}

.specs-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--shadow-light);
}

.specs-header-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-green) 0%, #6aa806 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(129, 196, 8, 0.2);
}

.specs-header-icon i {
    color: var(--white);
    font-size: 20px;
}

.specs-header-title {
    margin: 0;
    font-weight: 800;
    color: var(--gray-900);
    font-size: 26px;
    letter-spacing: -0.5px;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.basic-info-card {
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 6px 20px var(--shadow-light);
    border: 1px solid rgba(226, 232, 240, 0.6);
    height: 100%;
}

.specs-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f7fafc;
    border-radius: 12px;
    transition: all 0.2s;
}

.spec-label {
    color: #4a5568;
    font-weight: 500;
}

.spec-value {
    font-weight: 700;
    color: var(--gray-800);
    padding: 6px 14px;
}

/* ============================================================
   FEATURES & CARE CARDS – product information
   ============================================================ */

.features-card,
.care-card {
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 6px 20px var(--shadow-light);
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.features-title,
.care-title {
    margin: 0;
    font-weight: 800;
    color: var(--gray-800);
    font-size: 18px;
}

.feature-item-icon {
    color: #e94311;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-item-text,
.care-item-text {
    color: var(--gray-800);
    font-weight: 500;
    line-height: 1.5;
}

/* ============================================================
   SIDEBAR WIDGETS – quick buy, categories, featured
   ============================================================ */

.sidebar-widget {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px var(--shadow-medium);
    margin-bottom: 25px;
    border: 1px solid #f0f0f0;
}

.widget-title {
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--gray-dark);
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.widget-title i {
    color: var(--gold);
}

.quick-buy-panel {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px var(--shadow-medium);
    margin-bottom: 25px;
    border: 1px solid #f0f0f0;
}

.price-row-label {
    color: var(--gray-text);
    font-size: 15px;
}

.price-row-value {
    font-weight: 700;
    color: var(--gray-dark);
    font-size: 18px;
}

.total-label {
    color: var(--gray-dark);
    font-weight: 800;
    font-size: 18px;
}

.btn-quick-cart {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px;
    background: var(--gradient-gold);
    border-radius: 12px;
    border: none;
    color: var(--white);
    text-decoration: none;
    font-weight: 800;
    font-size: 16px;
    transition: all 0.3s;
}

.btn-quick-add {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px;
    background: var(--gradient-gold);
    border-radius: 12px;
    border: none;
    color: #383d3d;
    cursor: pointer;
    font-weight: 800;
    font-size: 16px;
    transition: all 0.3s;
}

.delivery-estimate {
    margin-top: 25px;
    padding: 20px;
    background: var(--gray-lighter);
    border-radius: 12px;
}

.delivery-icon {
    color: var(--primary-green);
    font-size: 20px;
}

.delivery-title {
    font-weight: 700;
    color: var(--gray-dark);
}

.delivery-item {
    color: var(--gray-text);
    font-size: 14px;
    margin-bottom: 10px;
}

.delivery-item i {
    color: var(--primary-green);
    margin-right: 8px;
}

.delivery-item .clock-icon {
    color: var(--gold);
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    text-decoration: none;
    color: var(--gray-text-dark);
    border-radius: 10px;
    transition: all 0.3s;
    background: var(--gray-lighter);
}

.category-bullet {
    width: 10px;
    height: 10px;
    background: var(--primary-green);
    border-radius: 50%;
}

.category-count {
    background-color: #bbbbe6;
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 800;
}

.featured-thumb img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid var(--white);
    box-shadow: 0 3px 10px var(--shadow-dark);
}

.featured-info {
    flex: 1;
}

.featured-price {
    font-weight: 800;
    color: var(--primary-green);
    font-size: 16px;
}

.featured-price-old {
    font-size: 13px;
    color: var(--gray-text);
    text-decoration: line-through;
    margin-left: 5px;
}

.featured-price-regular {
    font-weight: 800;
    color: var(--primary-blue);
    font-size: 16px;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s;
}

/* ============================================================
   PROMO BANNER – promotional section
   ============================================================ */

.promo-banner {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 300px;
    box-shadow: 0 15px 35px var(--shadow-dark);
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(130, 196, 8, 0.384), #1086ca69);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.banner-title {
    color: var(--white);
    font-weight: 900;
    line-height: 1.3;
    font-size: 28px;
    margin-bottom: 20px;
}

.banner-btn {
    padding: 15px 30px;
    background: var(--white);
    border: none;
    border-radius: 12px;
    color: #0a78a0;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.banner-btn:hover {
    background: #e6f7ff;
    color: #084c6b;
}

/* ============================================================
   RELATED PRODUCTS – carousel/grid
   ============================================================ */

.section-divider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--gray-border-light),
        transparent
    );
}

.section-title {
    color: var(--gray-dark);
    font-weight: 900;
    font-size: 32px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-title i {
    color: var(--primary-green);
    font-size: 28px;
}

.nav-btn {
    width: 50px;
    height: 50px;
    background: var(--white);
    border: 2px solid var(--gray-border-light);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.product-card {
    flex: 0 0 calc(25% - 22.5px);
    min-width: 280px;
    background: var(--white);
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid #f1f1f1;
    position: relative;
    transition: all 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px var(--shadow-light);
}

.card-category {
    background: var(--primary-blue);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 8px 0 8px 0;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 18px rgba(16, 134, 202, 0.35);
}

.card-wishlist-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    box-shadow: 0 4px 12px var(--shadow-heavy);
    transition: 0.3s;
}

.card-image-container {
    height: 210px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 18px;
    background: var(--gray-lighter);
}

.card-content {
    padding: 0 20px 22px;
}

.card-title {
    margin-bottom: 10px;
    color: var(--gray-dark);
    font-weight: 900;
    font-size: 18px;
    line-height: 1.35;
    height: 52px;
    overflow: hidden;
}

.card-description {
    color: var(--gray-text);
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 16px;
    height: 42px;
    overflow: hidden;
}

.card-price-sale {
    font-size: 22px;
    font-weight: 900;
    color: var(--primary-green);
}

.card-price-regular {
    font-size: 22px;
    font-weight: 900;
    color: var(--primary-blue);
}

.card-cart-link {
    width: 52px;
    height: 52px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.35s;
}

.card-cart-btn {
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 14px;
    background: var(--gradient-gold);
    color: #383d3d;
    cursor: pointer;
    transition: 0.35s;
}

/* ============================================================
   MODAL – image preview
   ============================================================ */

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    font-size: 30px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

/* ============================================================
   HOVER UTILITY CLASSES
   ============================================================ */

.hover-lift:hover {
    transform: translateY(-5px);
}

.hover-shadow:hover {
    box-shadow: 0 15px 35px var(--shadow-dark);
}

.hover-border-glow:hover {
    border-color: var(--gold);
}

.hover-bg-primary:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.hover-bg-danger:hover {
    background: var(--danger-dark);
    color: var(--white);
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

.position-relative {
    position: relative;
}

.position-absolute {
    position: absolute;
}

.d-flex {
    display: flex;
}

.d-block {
    display: block;
}

.d-inline-block {
    display: inline-block;
}

.flex-wrap {
    flex-wrap: wrap;
}

.m-0 {
    margin: 0;
}

.p-20 {
    padding: 20px;
}

.h-100 {
    height: 100%;
}

.overflow-hidden {
    overflow: hidden;
}

.cursor-pointer {
    cursor: pointer;
}

/* ============================================================
   CUSTOM SCROLLBAR – thumbnails & description
   ============================================================ */

#thumbnails-container::-webkit-scrollbar {
    height: 6px;
}

#thumbnails-container::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 10px;
}

.description-scrollable {
    max-height: 150px;
    overflow-y: auto;
    padding-right: 8px;
    scrollbar-width: thin;
}

.description-wrapper {
    margin-top: 1rem;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}

.description-header {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #b0b7c4;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.cosmic-icon {
    color: #7c4dff;
    font-size: 0.9rem;
}

.description-scrollable {
    max-height: 180px;
    overflow-y: auto;
    padding: 0.75rem 1rem;
    background: rgba(15, 25, 45, 0.4);
    backdrop-filter: blur(2px);
    border: 1px solid rgba(124, 77, 255, 0.3);
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.description-scrollable:hover {
    border-color: #9b59b6;
    box-shadow: 0 8px 25px rgba(124, 77, 255, 0.2);
    background: rgba(15, 25, 45, 0.6);
}

.description-scrollable::-webkit-scrollbar {
    width: 6px;
}

.description-scrollable::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-block: 4px;
}

.description-scrollable::-webkit-scrollbar-thumb {
    background: #7c4dff;
    border-radius: 10px;
    transition: background 0.2s;
}

.description-scrollable::-webkit-scrollbar-thumb:hover {
    background: #9b59b6;
}

.description-scrollable {
    scrollbar-width: thin;
    scrollbar-color: #7c4dff rgba(255, 255, 255, 0.05);
}

.cosmic-details {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #e0e4f0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    margin: 0;
}

/* ============================================================
   FEATURED PRODUCTS WIDGET
   ============================================================ */

.featured-products-widget {
    width: 100%;
    margin-bottom: 20px;
}

.featured-item {
    display: flex;
    gap: 15px;
    text-decoration: none;
    padding: 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: var(--gray-lighter);
    border: 1px solid #e0e0e0;
    color: var(--gray-darker);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.featured-item:hover {
    background: var(--white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
    border-color: #d0d0d0;
}

.featured-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 2px solid var(--white);
    box-shadow: 0 3px 10px var(--shadow-dark);
    transition: transform 0.5s ease;
}

.featured-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.featured-name {
    margin-bottom: 5px;
    font-weight: 700;
    color: var(--gray-dark);
    font-size: 15px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 42px;
}

.featured-price-wrapper {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed var(--gray-border);
    width: 100%;
}

.current-price {
    font-size: 15px;
    font-weight: 800;
    color: var(--primary-green-dark);
    letter-spacing: -0.3px;
}

.old-price {
    font-size: 14px;
    color: #333;
    text-decoration: line-through;
}

.regular-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-blue);
    letter-spacing: -0.3px;
}

/* Price direction for RTL languages */
.current-price,
.old-price,
.regular-price,
.discount-badge {
    direction: ltr;
    unicode-bidi: isolate;
}

.check-icon {
    pointer-events: none;
}

.color-item[title="White"] .check-icon,
.color-item[title="white"] .check-icon {
    color: #000 !important;
}

.shop-view-all-link:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(16, 134, 202, 0.3);
    background: #d0e6ff;
    color: var(--primary-blue-darker);
}

.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--shadow-dark);
}

/* ============================================================
   CONFETTI – celebration effect
   ============================================================ */

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0;
    animation: confettiFall 1s ease-out forwards;
}

/* ============================================================
   KEYFRAMES
   ============================================================ */

@keyframes confettiFall {
    0% {
        opacity: 1;
        transform: translateY(-100px) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translateY(500px) rotate(720deg);
    }
}

/* ============================================================
   RESPONSIVE: TABLET (≤768px)
   ============================================================ */

@media (max-width: 768px) {
    .old-price {
        font-size: 13px;
    }
}