/* ============================================
   RAYKA Product Show Page - DigiKala Style
   ============================================ */

:root {
    --brand-yellow: #FBBF24;
    --brand-orange: #F97316;
    --brand-red: #DC2626;
    --brand-dark: #7C2D12;
    
    --gradient-primary: linear-gradient(135deg, #FBBF24 0%, #F97316 50%, #DC2626 100%);
    --gradient-warm: linear-gradient(135deg, #F97316 0%, #DC2626 100%);
    --gradient-sunset: linear-gradient(135deg, #FBBF24 0%, #F97316 100%);
    
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --shadow-brand: 0 10px 30px rgba(249, 115, 22, 0.25);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

.container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 1.5rem;
}


/* ============================================
   3-COLUMN LAYOUT
   ============================================ */

.product-3col-layout {
    display: grid;
    grid-template-columns: 35% 35% 30%;
    gap: 1.5rem;
    align-items: start;
}

.product-col {
    background: var(--white);
    border-radius: var(--radius-lg);
}

/* Gallery Column */
.product-col-gallery {
    position: sticky;
    top: 90px;
}

.product-gallery {
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

.product-info-box {
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
}

/* Pricing Column */
.product-col-pricing {
    position: sticky;
    top: 90px;
}

.pricing-form-wrapper {
    padding: 1.5rem;
    border: 2px solid var(--brand-orange);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-brand);
}

.form-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-200);
}

.form-title i {
    color: var(--brand-orange);
}

/* Seller Column */
.product-col-seller {
    position: sticky;
    top: 90px;
}

.seller-box {
    padding: 1.25rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
}

.guarantees-box {
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
}

.guarantees-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gray-200);
}

.guarantee-item {
    display: flex;
    gap: 0.875rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.guarantee-item:last-child {
    border-bottom: none;
}

.guarantee-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-sunset);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.guarantee-content h4 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.guarantee-content p {
    font-size: 0.8125rem;
    color: var(--gray-500);
    line-height: 1.5;
}

.product-actions-box {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .product-3col-layout {
        grid-template-columns: 1fr 1fr;
    }
    
    .product-col-seller {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .product-3col-layout {
        grid-template-columns: 1fr;
    }
    
    .product-col {
        position: static !important;
    }
}

/* ============================================
   MAIN PRODUCT SECTION
   ============================================ */

.product-main-section {
    padding: 2.5rem 0;
    background: var(--white);
}

.product-layout {
    display: grid;
    grid-template-columns: 65% 35%;
    gap: 1.5rem;
    align-items: start;
}

/* ============================================
   RIGHT COLUMN
   ============================================ */

.product-right-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Gallery */
.product-gallery {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: sticky;
    top: 90px;
}

.gallery-main {
    position: relative;
    aspect-ratio: 1;
    background: var(--gray-50);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1rem;
}

.gallery-main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.gallery-main-image.zoomed {
    transform: scale(1.5);
    cursor: zoom-out;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
}

.gallery-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.zoom-btn {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--gray-200);
    color: var(--gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.zoom-btn:hover {
    background: var(--gray-50);
    color: var(--brand-orange);
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
}

.gallery-thumb {
    aspect-ratio: 1;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    background: var(--white);
    padding: 0;
}

.gallery-thumb.active,
.gallery-thumb:hover {
    border-color: var(--brand-orange);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Product Info */
.product-info-section {
    background: var(--white);
}

.product-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.product-meta-top {
    margin-bottom: 1.25rem;
}

.product-category {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    background: var(--gray-50);
    color: var(--brand-orange);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.product-category:hover {
    background: var(--brand-orange);
    color: var(--white);
}

.product-short-desc {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

/* Rating */
.product-rating-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.rating-stars {
    display: flex;
    gap: 2px;
    color: var(--gray-200);
    font-size: 1rem;
}

.rating-stars .active {
    color: var(--brand-yellow);
}

.rating-text {
    display: flex;
    flex-direction: column;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.rating-text strong {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--gray-900);
}

.view-reviews-link {
    margin-right: auto;
    color: var(--brand-orange);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: var(--transition);
}

.view-reviews-link:hover {
    gap: 0.625rem;
}

/* Features */
.product-features {
    margin-bottom: 1.5rem;
}

.features-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.9375rem;
    color: var(--gray-700);
}

.feature-item i {
    color: var(--brand-orange);
    font-size: 0.875rem;
}

.show-more-features {
    margin-top: 0.75rem;
    background: none;
    border: none;
    color: var(--brand-orange);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: var(--transition);
    font-family: inherit;
}

.show-more-features:hover {
    gap: 0.625rem;
}

/* ============================================
   LEFT COLUMN - Buy Box
   ============================================ */

.product-left-column {
    position: sticky;
    top: 90px;
}

/* Seller Box */
.seller-box {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.seller-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.seller-info {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.seller-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: var(--gradient-sunset);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.seller-details h3 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.seller-rating {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.1875rem 0.5rem;
    background: var(--brand-yellow);
    color: var(--gray-900);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
}

.rating-badge i {
    font-size: 0.625rem;
}

.seller-satisfaction {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.seller-link {
    color: var(--brand-orange);
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: var(--transition);
}

.seller-link:hover {
    gap: 0.625rem;
}

/* Price Box */
.price-box {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.price-header {
    margin-bottom: 1rem;
}

.price-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
}

.price-main {
    margin-bottom: 1.25rem;
}

.price-old-wrapper {
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
    margin-bottom: 0.5rem;
}

.price-old {
    font-size: 1.0625rem;
    color: var(--gray-400);
    text-decoration: line-through;
}

.price-new-wrapper {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.price-new {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.currency {
    font-size: 0.875rem;
    color: var(--gray-500);
    font-weight: 500;
}

.discount-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--gradient-warm);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

/* Stock Status */
.stock-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.stock-status.in-stock {
    background: #D1FAE5;
    color: #059669;
}

.stock-status.out-of-stock {
    background: #FEE2E2;
    color: #DC2626;
}

/* Quantity */
.quantity-section {
    margin-bottom: 1.25rem;
}

.quantity-label {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-700);
    font-weight: 600;
    margin-bottom: 0.625rem;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 0.375rem;
    width: fit-content;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--white);
    border: 1px solid var(--gray-200);
    color: var(--gray-700);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--brand-orange);
    color: var(--white);
    border-color: var(--brand-orange);
}

.qty-input {
    width: 60px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
}

.quantity-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 0.375rem;
}

/* Add to Cart */
.add-to-cart-section {
    margin-bottom: 1.25rem;
}

.btn-add-to-cart {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--gradient-warm);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-brand);
}

.btn-add-to-cart:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(249, 115, 22, 0.35);
}

.btn-add-to-cart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Guarantee Badges */
.guarantee-badges {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 1.25rem;
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.8125rem;
    color: var(--gray-600);
}

.guarantee-item i {
    color: var(--brand-orange);
    font-size: 1rem;
}

/* Actions */
.product-actions {
    display: flex;
    gap: 0.75rem;
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    color: var(--gray-700);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.action-btn:hover {
    border-color: var(--brand-orange);
    color: var(--brand-orange);
}

.action-btn.active {
    background: var(--brand-orange);
    border-color: var(--brand-orange);
    color: var(--white);
}

/* ============================================
   TABS SECTION
   ============================================ */

.product-tabs-section {
    padding: 3rem 0;
    background: var(--gray-50);
}

.tabs-wrapper {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.25rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--gray-600);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.tab-btn.active {
    color: var(--brand-orange);
    border-bottom-color: var(--brand-orange);
    background: var(--white);
}

.tab-btn .badge {
    padding: 2px 8px;
    background: var(--gray-200);
    color: var(--gray-600);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
}

.tab-btn.active .badge {
    background: var(--brand-orange);
    color: var(--white);
}

.tabs-content {
    min-height: 300px;
}

.tab-content {
    display: none;
    padding: 2rem;
}

.tab-content.active {
    display: block;
}

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.tab-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.btn-write-review {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--gradient-warm);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-write-review:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-brand);
}

.tab-body {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--gray-700);
}

.description-content {
    white-space: pre-wrap;
}

.no-content {
    color: var(--gray-500);
    text-align: center;
    padding: 2rem;
}

/* Specs Table */
.specs-table {
    overflow-x: auto;
}

.specs-table-inner {
    width: 100%;
    border-collapse: collapse;
}

.specs-table-inner tr {
    border-bottom: 1px solid var(--gray-100);
}

.specs-table-inner th,
.specs-table-inner td {
    padding: 1rem;
    text-align: right;
}

.specs-table-inner th {
    width: 30%;
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-900);
}

.specs-table-inner td {
    color: var(--gray-700);
}

/* Reviews Summary */
.reviews-summary {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: var(--radius);
}

.summary-rating {
    text-align: center;
}

.rating-big {
    font-size: 3rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1;
}

.rating-stars-big {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin: 0.5rem 0;
    color: var(--gray-200);
    font-size: 1.25rem;
}

.rating-stars-big .active {
    color: var(--brand-yellow);
}

.total-reviews {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.rating-bars {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.rating-bar-item {
    display: grid;
    grid-template-columns: 80px 1fr 40px;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
}

.rating-bar-item .stars {
    color: var(--gray-600);
}

.rating-bar-item .bar {
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.rating-bar-item .bar-fill {
    height: 100%;
    background: var(--gradient-warm);
    border-radius: var(--radius-full);
}

.rating-bar-item .count {
    text-align: left;
    color: var(--gray-500);
    font-weight: 600;
}

.no-reviews {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--gray-500);
}

.no-reviews i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--gray-300);
}

/* ============================================
   RELATED PRODUCTS
   ============================================ */

.related-products-section {
    padding: 3rem 0;
    background: var(--white);
}

.section-header {
    margin-bottom: 2rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
}

.section-title i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.related-product-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.related-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-orange);
}

.related-product-card .product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-product-card .product-image {
    position: relative;
    aspect-ratio: 1;
    background: var(--gray-50);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-product-card .product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.related-product-card:hover .product-image img {
    transform: scale(1.08);
}

.related-product-card .product-placeholder {
    color: var(--gray-300);
    font-size: 3rem;
}

.related-product-card .discount-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.25rem 0.625rem;
    background: var(--gradient-warm);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 700;
}

.related-product-card .product-info {
    padding: 1rem;
}

.related-product-card .product-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-product-card .product-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.related-product-card .price-old {
    font-size: 0.8125rem;
    color: var(--gray-400);
    text-decoration: line-through;
}

.related-product-card .price-new {
    font-size: 1.125rem;
    font-weight: 800;
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.related-product-card .currency {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .product-layout {
        grid-template-columns: 1fr;
    }
    
    .product-left-column {
        position: static;
    }
    
    .related-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .product-layout {
        gap: 1rem;
    }
    
    .product-gallery {
        padding: 1rem;
    }
    
    .gallery-thumbnails {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .product-title {
        font-size: 1.25rem;
    }
    
    .price-new {
        font-size: 1.5rem;
    }
    
    .tabs-header {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 0 0 50%;
        padding: 1rem;
        font-size: 0.875rem;
    }
    
    .reviews-summary {
        grid-template-columns: 1fr;
    }
    
    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .gallery-thumbnails {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .tab-btn {
        flex: 0 0 100%;
    }
    
    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
}


/* Product Header */
.product-header-section {
    padding: 2rem 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
}

.product-header-content {
    max-width: 800px;
}

.product-main-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1rem;
    text-align: right;
}

.product-main-description {
    font-size: 1.0625rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.product-header-rating {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.rating-stars-large {
    display: flex;
    gap: 2px;
    color: var(--gray-200);
    font-size: 1.25rem;
}

.rating-stars-large .active {
    color: var(--brand-yellow);
}

.rating-summary-text {
    display: flex;
    flex-direction: column;
    font-size: 0.9375rem;
    color: var(--gray-600);
}

.rating-summary-text strong {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gray-900);
}

.scroll-to-reviews {
    color: var(--brand-orange);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: var(--transition);
}

.scroll-to-reviews:hover {
    gap: 0.625rem;
}

/* Price Summary in Sidebar */
.price-summary-box {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
}

.price-row.total {
    font-size: 1.25rem;
    font-weight: 800;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    border-top: 2px solid var(--gray-300);
}

.price-total {
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-success {
    color: #059669;
}

.price-divider {
    height: 1px;
    background: var(--gray-300);
    margin: 0.5rem 0;
}

/* Reviews */
.review-form {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.review-form h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.rating-input {
    display: flex;
    flex-direction: row-reverse;
    gap: 0.25rem;
    justify-content: flex-end;
}

.rating-input input {
    display: none;
}

.rating-input label {
    font-size: 1.5rem;
    color: var(--gray-300);
    cursor: pointer;
    transition: var(--transition);
}

.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input:checked ~ label {
    color: var(--brand-yellow);
}

.review-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.reviewer-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-sunset);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}

.reviewer-details strong {
    display: block;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.review-date {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.review-rating {
    display: flex;
    gap: 2px;
    color: var(--gray-200);
}

.review-rating .active {
    color: var(--brand-yellow);
}

.review-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.review-content {
    font-size: 0.9375rem;
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.admin-reply {
    background: var(--gray-50);
    border-right: 3px solid var(--brand-orange);
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-top: 1rem;
}

.reply-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand-orange);
    margin-bottom: 0.5rem;
}

.admin-reply p {
    font-size: 0.875rem;
    color: var(--gray-700);
    margin: 0;
}

/* ============================================
   DYNAMIC PRICING FORM - Premium Design
   ============================================ */

.pricing-form-wrapper {
    background: var(--white);
    border: 2px solid var(--brand-orange);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(249, 115, 22, 0.15);
    position: relative;
    overflow: hidden;
}

.pricing-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.form-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid var(--gray-100);
    letter-spacing: -0.02em;
}

.form-title i {
    width: 48px;
    height: 48px;
    background: var(--gradient-warm);
    color: var(--white);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-brand);
}

/* Dynamic Form */
.dynamic-pricing-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dynamic-field {
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.25rem;
    transition: var(--transition);
}

.dynamic-field:hover {
    border-color: var(--brand-orange);
    background: var(--white);
}

.dynamic-field:focus-within {
    border-color: var(--brand-orange);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

.dynamic-field .form-label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.required {
    color: var(--brand-red);
    font-size: 0.875rem;
}

/* Number Input Wrapper */
.number-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.number-input-wrapper .form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-left: 4rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    background: var(--white);
    transition: var(--transition);
    font-family: inherit;
}

.number-input-wrapper .form-control:focus {
    outline: none;
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

.input-unit {
    position: absolute;
    left: 1rem;
    padding: 0.375rem 0.75rem;
    background: var(--gradient-sunset);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    pointer-events: none;
}

/* Select Input */
.dynamic-field select.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-left: 2.5rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-900);
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23F97316' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 1rem center;
}

.dynamic-field select.form-control:focus {
    outline: none;
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

/* Radio Options */
.radio-options {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.radio-option::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: var(--gradient-warm);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.radio-option:hover {
    border-color: var(--brand-orange);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.05), rgba(249, 115, 22, 0.05));
}

.radio-option:has(input:checked) {
    border-color: var(--brand-orange);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(249, 115, 22, 0.1));
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

.radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--brand-orange);
    position: relative;
    z-index: 1;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    transition: var(--transition);
}

.radio-option:has(input:checked) .radio-custom {
    border-color: var(--brand-orange);
    background: var(--brand-orange);
}

.radio-option:has(input:checked) .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--white);
}

.radio-label-text {
    flex: 1;
    font-size: 0.9375rem;
    color: var(--gray-700);
    font-weight: 600;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.radio-label-text small {
    font-size: 0.8125rem;
    color: var(--gray-500);
    font-weight: 400;
}

.radio-option:has(input:checked) .radio-label-text {
    color: var(--brand-orange);
}

/* Quantity Control */
.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 0.5rem;
    width: fit-content;
    transition: var(--transition);
}

.quantity-control:hover {
    border-color: var(--brand-orange);
}

.qty-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    color: var(--gray-700);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.qty-btn:hover {
    background: var(--gradient-warm);
    color: var(--white);
    border-color: transparent;
    transform: scale(1.1);
}

.qty-btn:active {
    transform: scale(0.95);
}

.qty-input {
    width: 80px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gray-900);
    font-family: inherit;
}

.qty-input:focus {
    outline: none;
}

/* Field Hint */
.field-hint {
    display: block;
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-top: 0.625rem;
    padding: 0.5rem 0.75rem;
    background: rgba(249, 115, 22, 0.05);
    border-radius: var(--radius-sm);
    border-right: 3px solid var(--brand-orange);
}

/* Add to Cart Button */
.btn-add-to-cart {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem;
    background: var(--gradient-warm);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 1.125rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.3);
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-add-to-cart::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-add-to-cart:hover::before {
    width: 300px;
    height: 300px;
}

.btn-add-to-cart:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(249, 115, 22, 0.4);
}

.btn-add-to-cart:active {
    transform: translateY(-1px);
}

.btn-add-to-cart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-add-to-cart i {
    font-size: 1.25rem;
    position: relative;
    z-index: 1;
}

.btn-add-to-cart span {
    position: relative;
    z-index: 1;
}

/* ============================================
   PRODUCT FEATURES BOX - Premium Design
   ============================================ */

.product-features-box {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-top: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.product-features-box:hover {
    border-color: var(--brand-orange);
    box-shadow: var(--shadow-lg);
}

.features-title {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-100);
    letter-spacing: -0.01em;
}

.features-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, var(--gray-50), var(--white));
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-size: 0.9375rem;
    color: var(--gray-700);
}

.features-list li:hover {
    background: var(--white);
    border-color: var(--brand-orange);
    transform: translateX(-4px);
    box-shadow: var(--shadow-md);
}

.features-list li i {
    width: 32px;
    height: 32px;
    background: var(--gradient-sunset);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.features-list li span {
    flex: 1;
    line-height: 1.5;
}

.features-list li strong {
    color: var(--gray-900);
    font-weight: 700;
}

/* ============================================
   PRODUCT HEADER RATING - Premium Design
   ============================================ */

.product-header-rating {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.05), rgba(249, 115, 22, 0.05));
    border: 2px solid rgba(249, 115, 22, 0.2);
    border-radius: var(--radius-lg);
    flex-wrap: wrap;
}

.rating-stars-large {
    display: flex;
    gap: 4px;
}

.rating-stars-large i {
    font-size: 1.75rem;
    color: var(--gray-200);
    transition: var(--transition);
}

.rating-stars-large i.active {
    color: var(--brand-yellow);
    text-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
    animation: starPulse 2s ease-in-out infinite;
}

@keyframes starPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.rating-summary-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.rating-summary-text strong {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1;
}

.rating-summary-text span {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
}

.scroll-to-reviews {
    margin-right: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--white);
    color: var(--brand-orange);
    border: 2px solid var(--brand-orange);
    border-radius: var(--radius-full);
    font-size: 0.9375rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.scroll-to-reviews:hover {
    background: var(--gradient-warm);
    color: var(--white);
    border-color: transparent;
    transform: translateX(-4px);
    box-shadow: var(--shadow-brand);
}

.scroll-to-reviews i {
    transition: var(--transition);
}

.scroll-to-reviews:hover i {
    transform: translateX(-4px);
}

/* ============================================
   TAB CONTENT - Premium Design
   ============================================ */

.tabs-wrapper {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-top: 3rem;
}

.tabs-header {
    display: flex;
    border-bottom: 2px solid var(--gray-200);
    background: linear-gradient(180deg, var(--gray-50), var(--white));
    padding: 0.5rem;
    gap: 0.5rem;
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: var(--radius);
    color: var(--gray-600);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-warm);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-btn:hover {
    background: rgba(249, 115, 22, 0.05);
    color: var(--brand-orange);
}

.tab-btn.active {
    background: var(--white);
    color: var(--brand-orange);
    box-shadow: var(--shadow-md);
}

.tab-btn.active::before {
    transform: scaleX(1);
}

.tab-btn .badge {
    padding: 0.25rem 0.625rem;
    background: var(--gray-200);
    color: var(--gray-600);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    transition: var(--transition);
}

.tab-btn.active .badge {
    background: var(--gradient-warm);
    color: var(--white);
}

/* Tab Content */
.tabs-content {
    min-height: 400px;
    padding: 2.5rem;
}

.tab-content {
    display: none;
    animation: fadeInUp 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--gray-100);
}

.tab-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.02em;
}

.tab-header h2::before {
    content: '';
    width: 5px;
    height: 28px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.tab-body {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--gray-700);
}

/* Description Content */
.description-content {
    white-space: pre-wrap;
    font-size: 1rem;
    line-height: 1.9;
}

.description-content p {
    margin-bottom: 1.5rem;
}

/* Specs Table */
.specs-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.specs-table tr {
    transition: var(--transition);
}

.specs-table tr:hover {
    background: rgba(249, 115, 22, 0.05);
}

.specs-table th,
.specs-table td {
    padding: 1.125rem 1.5rem;
    text-align: right;
    border-bottom: 1px solid var(--gray-200);
}

.specs-table tr:last-child th,
.specs-table tr:last-child td {
    border-bottom: none;
}

.specs-table th {
    width: 35%;
    background: linear-gradient(135deg, var(--gray-50), var(--white));
    font-weight: 700;
    color: var(--gray-900);
    border-left: 3px solid var(--brand-orange);
}

.specs-table td {
    color: var(--gray-700);
    background: var(--white);
}

/* Reviews */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-item {
    background: linear-gradient(135deg, var(--white), var(--gray-50));
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.review-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-warm);
    opacity: 0;
    transition: var(--transition);
}

.review-item:hover {
    border-color: var(--brand-orange);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.review-item:hover::before {
    opacity: 1;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviewer-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-brand);
}

.reviewer-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.reviewer-details strong {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--gray-900);
}

.review-date {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.review-rating {
    display: flex;
    gap: 3px;
}

.review-rating i {
    font-size: 1.125rem;
    color: var(--gray-200);
}

.review-rating i.active {
    color: var(--brand-yellow);
    text-shadow: 0 2px 6px rgba(251, 191, 36, 0.3);
}

.review-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.875rem;
}

.review-content {
    font-size: 0.9375rem;
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.admin-reply {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(220, 38, 38, 0.1));
    border: 2px solid rgba(249, 115, 22, 0.3);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-top: 1.25rem;
}

.reply-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--brand-orange);
    margin-bottom: 0.75rem;
}

.reply-header i {
    font-size: 1rem;
}

.admin-reply p {
    font-size: 0.9375rem;
    color: var(--gray-700);
    line-height: 1.7;
    margin: 0;
}

/* No Reviews */
.no-reviews {
    text-align: center;
    padding: 4rem 2rem;
}

.no-reviews i {
    font-size: 4rem;
    color: var(--gray-300);
    margin-bottom: 1.5rem;
}

.no-reviews h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.no-reviews p {
    font-size: 1rem;
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}

/* Review Form */
.review-form {
    background: linear-gradient(135deg, var(--gray-50), var(--white));
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-md);
}

.review-form h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.review-form h3::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.review-form .form-group {
    margin-bottom: 1.5rem;
}

.review-form label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.625rem;
}

.review-form .form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
}

.review-form .form-control:focus {
    outline: none;
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

.review-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.review-form .form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* Rating Input */
.rating-input {
    display: flex;
    flex-direction: row-reverse;
    gap: 0.5rem;
    justify-content: flex-end;
}

.rating-input input {
    display: none;
}

.rating-input label {
    font-size: 2rem;
    color: var(--gray-300);
    cursor: pointer;
    transition: var(--transition);
}

.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input:checked ~ label {
    color: var(--brand-yellow);
    text-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
    transform: scale(1.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-warm);
    color: var(--white);
    box-shadow: var(--shadow-brand);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(249, 115, 22, 0.35);
}

.btn-outline {
    background: var(--white);
    color: var(--gray-700);
    border-color: var(--gray-300);
}

.btn-outline:hover {
    border-color: var(--brand-orange);
    color: var(--brand-orange);
}

.btn-write-review {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1.75rem;
    background: var(--gradient-warm);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-brand);
    text-decoration: none;
}

.btn-write-review:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(249, 115, 22, 0.35);
}

/* Alerts */
.alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
}

.alert-success {
    background: #D1FAE5;
    color: #059669;
    border: 2px solid #10B981;
}

.alert-danger {
    background: #FEE2E2;
    color: #DC2626;
    border: 2px solid #EF4444;
}

.alert i {
    font-size: 1.25rem;
}

/* Responsive */
@media (max-width: 768px) {
    .tabs-header {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
    }
    
    .tabs-content {
        padding: 1.5rem;
    }
    
    .product-header-rating {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .scroll-to-reviews {
        margin-right: 0;
        justify-content: center;
    }
    
    .specs-table th {
        width: 40%;
    }
}


/* ============================================
   DESCRIPTION CONTENT - Premium Typography
   ============================================ */

.description-content {
    font-size: 1.0625rem;
    line-height: 2;
    color: var(--gray-700);
    white-space: pre-wrap;
    word-wrap: break-word;
}

.description-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
    line-height: 2;
}

.description-content p:last-child {
    margin-bottom: 0;
}

/* First Letter Drop Cap */
.description-content p:first-of-type::first-letter {
    float: right;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    padding: 0.5rem 0.75rem 0 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-left: 0.5rem;
}

/* Headings */
.description-content h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin: 2rem 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--gray-200);
    position: relative;
    letter-spacing: -0.02em;
}

.description-content h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-warm);
    border-radius: 2px;
}

.description-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 1.5rem 0 0.875rem;
    padding-right: 1rem;
    border-right: 4px solid var(--brand-orange);
}

.description-content h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 1.25rem 0 0.75rem;
}

/* Lists */
.description-content ul,
.description-content ol {
    margin: 1.25rem 0;
    padding-right: 2rem;
}

.description-content ul {
    list-style: none;
}

.description-content ul li {
    position: relative;
    padding: 0.5rem 0 0.5rem 0;
    padding-right: 1.5rem;
    line-height: 1.8;
}

.description-content ul li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 1.125rem;
    width: 8px;
    height: 8px;
    background: var(--gradient-warm);
    border-radius: 50%;
}

.description-content ol {
    list-style: none;
    counter-reset: custom-counter;
}

.description-content ol li {
    position: relative;
    padding: 0.5rem 0 0.5rem 0;
    padding-right: 2.5rem;
    counter-increment: custom-counter;
    line-height: 1.8;
}

.description-content ol li::before {
    content: counter(custom-counter);
    position: absolute;
    right: 0;
    top: 0.5rem;
    width: 28px;
    height: 28px;
    background: var(--gradient-warm);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
}

/* Links */
.description-content a {
    color: var(--brand-orange);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.description-content a:hover {
    color: var(--brand-red);
    border-bottom-color: var(--brand-red);
}

/* Strong & Emphasis */
.description-content strong {
    font-weight: 700;
    color: var(--gray-900);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(249, 115, 22, 0.1));
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
}

.description-content em {
    font-style: italic;
    color: var(--gray-600);
}

/* Blockquote */
.description-content blockquote {
    margin: 1.5rem 0;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.05), rgba(249, 115, 22, 0.05));
    border-right: 4px solid var(--brand-orange);
    border-radius: var(--radius-sm);
    font-style: italic;
    color: var(--gray-700);
}

.description-content blockquote::before {
    content: '"';
    font-size: 3rem;
    color: var(--brand-orange);
    opacity: 0.3;
    line-height: 1;
    display: block;
    margin-bottom: -1rem;
}

/* Code */
.description-content code {
    background: var(--gray-100);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--brand-orange);
}

/* Tables */
.description-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.description-content table th,
.description-content table td {
    padding: 0.875rem 1rem;
    text-align: right;
    border-bottom: 1px solid var(--gray-200);
}

.description-content table th {
    background: var(--gradient-warm);
    color: var(--white);
    font-weight: 700;
}

.description-content table tr:hover {
    background: rgba(249, 115, 22, 0.05);
}

/* Images */
.description-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 1.5rem 0;
    box-shadow: var(--shadow-md);
}

/* Horizontal Rule */
.description-content hr {
    border: none;
    height: 2px;
    background: var(--gradient-primary);
    margin: 2rem 0;
    border-radius: 1px;
}

/* Responsive */
@media (max-width: 768px) {
    .description-content {
        font-size: 1rem;
        line-height: 1.8;
    }
    
    .description-content p:first-of-type::first-letter {
        font-size: 2.5rem;
    }
    
    .description-content h2 {
        font-size: 1.25rem;
    }
    
    .description-content h3 {
        font-size: 1.125rem;
    }
}

/* ============================================
   BREADCRUMB NAVIGATION - Premium Design
   ============================================ */

.breadcrumb-nav {
    padding: 1.25rem 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.breadcrumb-item a {
    color: var(--gray-500);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.breadcrumb-item a:hover {
    color: var(--brand-orange);
    background: rgba(249, 115, 22, 0.08);
}

.breadcrumb-item a i {
    font-size: 0.75rem;
}

.breadcrumb-item.active {
    color: var(--gray-900);
    font-weight: 700;
    padding: 0.375rem 0.625rem;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
}

/* Separator */
.breadcrumb-item + .breadcrumb-item::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--gray-300);
    border-radius: 50%;
    margin: 0 0.25rem;
}

/* ============================================
   PRODUCT HEADER SECTION - Premium Design
   ============================================ */

.product-header-section {
    padding: 2.5rem 0 2rem;
    background: linear-gradient(135deg, #FFF7ED 0%, #FEF3C7 50%, #FFEDD5 100%);
    border-bottom: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.product-header-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.product-header-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.product-header-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

/* Main Title */
.product-main-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1rem;
    text-align: right;
    line-height: 1.3;
    letter-spacing: -0.02em;
    position: relative;
    padding-bottom: 1rem;
}

.product-main-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px;
    height: 4px;
    background: var(--gradient-warm);
    border-radius: 2px;
}

/* Main Description */
.product-main-description {
    font-size: clamp(0.875rem, 2vw, 1rem);
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    text-align: right;
    max-width: 700px;
    font-weight: 400;
}

/* ============================================
   PRODUCT HEADER RATING - Enhanced
   ============================================ */

.product-header-rating {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(249, 115, 22, 0.2);
    border-radius: var(--radius-lg);
    flex-wrap: wrap;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.rating-stars-large {
    display: flex;
    gap: 4px;
}

.rating-stars-large i {
    font-size: 1.5rem;
    color: var(--gray-200);
    transition: var(--transition);
}

.rating-stars-large i.active {
    color: var(--brand-yellow);
    text-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
}

.rating-summary-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.rating-summary-text strong {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1;
}

.rating-summary-text span {
    font-size: 0.8125rem;
    color: var(--gray-600);
    font-weight: 500;
}

.scroll-to-reviews {
    margin-right: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--white);
    color: var(--brand-orange);
    border: 2px solid var(--brand-orange);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.scroll-to-reviews:hover {
    background: var(--gradient-warm);
    color: var(--white);
    border-color: transparent;
    transform: translateX(-4px);
    box-shadow: var(--shadow-brand);
}

.scroll-to-reviews i {
    transition: var(--transition);
    font-size: 0.75rem;
}

.scroll-to-reviews:hover i {
    transform: translateX(-4px);
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */

@media (max-width: 1024px) {
    .product-header-section {
        padding: 2rem 0 1.5rem;
    }
    
    .product-main-title {
        font-size: clamp(1.5rem, 3.5vw, 2rem);
    }
    
    .product-main-description {
        font-size: 0.9375rem;
    }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */

@media (max-width: 768px) {
    .breadcrumb-nav {
        padding: 0.875rem 0;
    }
    
    .breadcrumb-list {
        font-size: 0.75rem;
        gap: 0.375rem;
    }
    
    .breadcrumb-item a {
        padding: 0.25rem 0.5rem;
    }
    
    .breadcrumb-item.active {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .product-header-section {
        padding: 1.5rem 0 1.25rem;
    }
    
    .product-main-title {
        font-size: clamp(1.25rem, 3vw, 1.75rem);
        margin-bottom: 0.75rem;
        padding-bottom: 0.75rem;
    }
    
    .product-main-title::after {
        width: 60px;
        height: 3px;
    }
    
    .product-main-description {
        font-size: 0.875rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }
    
    .product-header-rating {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem;
    }
    
    .rating-stars-large i {
        font-size: 1.25rem;
    }
    
    .rating-summary-text strong {
        font-size: 1.25rem;
    }
    
    .scroll-to-reviews {
        margin-right: 0;
        justify-content: center;
        width: 100%;
    }
}

/* ============================================
   RESPONSIVE - SMALL MOBILE
   ============================================ */

@media (max-width: 480px) {
    .breadcrumb-list {
        font-size: 0.6875rem;
    }
    
    .product-main-title {
        font-size: 1.25rem;
    }
    
    .product-main-description {
        font-size: 0.8125rem;
    }
    
    .product-header-rating {
        padding: 0.875rem;
    }
}


/* ============================================
   WISHLIST BUTTON ACTIVE STATE
   ============================================ */

.product-actions-box {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    background: #fff;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    color: #374151;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.action-btn:hover {
    border-color: #F97316;
    color: #F97316;
    background: #FFF7ED;
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Wishlist Active */
.wishlist-btn.active {
    background: linear-gradient(135deg, #F97316, #DC2626);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3);
}

.wishlist-btn.active:hover {
    background: linear-gradient(135deg, #EA580C, #B91C1C);
    color: #fff;
}

.wishlist-btn.active i {
    animation: heartBeat 0.4s ease;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */

.p-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 0.875rem 1.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 99999;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9375rem;
    font-weight: 600;
    max-width: 90vw;
    border-right: 4px solid;
}

.p-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.p-toast-success {
    border-right-color: #10B981;
    color: #065F46;
}

.p-toast-success i {
    color: #10B981;
}

.p-toast-info {
    border-right-color: #3B82F6;
    color: #1E40AF;
}

.p-toast-info i {
    color: #3B82F6;
}

@media (max-width: 768px) {
    .product-actions-box {
        flex-direction: row;
    }

    .p-toast {
        bottom: 90px;
        font-size: 0.8125rem;
        padding: 0.75rem 1.25rem;
    }
}

/* ═══════════════════════════════════════════
   DYNAMIC PRICING FORM STYLES
   ═══════════════════════════════════════════ */

.sp-field-fixed { margin-bottom: 1.25rem; }
.dynamic-field { margin-bottom: 1.25rem; }

/* Design Section */
.design-section { margin-top: 1.5rem; }
.design-help-text {
    font-size: 0.8125rem;
    color: #6B7280;
    line-height: 1.7;
    background: rgba(251, 191, 36, 0.08);
    border-right: 3px solid #FBBF24;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.design-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.design-card.glass-design {
    cursor: pointer;
    border-radius: 12px;
    border: 2px solid rgba(229, 231, 235, 0.6);
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.design-card.glass-design input { display: none; }

.design-card.glass-design.selected {
    border-color: #F97316;
    background: rgba(249, 115, 22, 0.08);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

.design-card.glass-design:hover:not(.selected) {
    border-color: rgba(249, 115, 22, 0.4);
    background: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
}

.dc-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    padding: 1.25rem;
    text-align: center;
}

.dc-inner i {
    font-size: 1.75rem;
    color: #D1D5DB;
    transition: color 0.3s;
}

.design-card.selected .dc-inner i { color: #F97316; }
.dc-inner strong { font-size: 0.9375rem; color: #111827; }
.dc-inner small { font-size: 0.75rem; color: #6B7280; line-height: 1.4; }

/* Upload Area */
.upload-area { margin-bottom: 1rem; }
.dropzone.glass-dropzone {
    border: 2px dashed rgba(249, 115, 22, 0.3);
    background: rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dropzone.glass-dropzone:hover,
.dropzone.glass-dropzone.dragover {
    border-color: #F97316;
    background: rgba(249, 115, 22, 0.05);
    transform: scale(1.01);
}

.dropzone.glass-dropzone i {
    font-size: 2.5rem;
    color: #F97316;
    margin-bottom: 0.75rem;
    display: block;
}

.dropzone.glass-dropzone p {
    font-weight: 600;
    color: #374151;
    margin: 0 0 0.25rem;
}

.dropzone.glass-dropzone small {
    color: #6B7280;
    font-size: 0.75rem;
}

.file-preview { margin-top: 0.75rem; }
.file-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    font-size: 0.875rem;
    color: #065F46;
}

.file-item i { color: #10B981; }
.file-item button {
    background: none;
    border: none;
    color: #DC2626;
    cursor: pointer;
    margin-right: auto;
    padding: 0.25rem;
    transition: transform 0.2s;
}
.file-item button:hover { transform: scale(1.2); }

/* Sample Upload */
.sample-upload {
    padding-top: 0.75rem;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
    margin-top: 0.75rem;
}

.sample-label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.375rem;
}

.sample-label i { color: #F97316; }

.glass-file-input {
    font-size: 0.8125rem;
    color: #6B7280;
    margin-bottom: 0.25rem;
    width: 100%;
}

.sample-upload small {
    font-size: 0.6875rem;
    color: #6B7280;
    display: block;
}

/* Textarea */
.glass-textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.6;
}

/* Color Select */
.glass-color-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.color-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.color-option:hover { background: rgba(255, 255, 255, 0.5); }
.color-option input { display: none; }

.color-option input:checked + .color-swatch {
    box-shadow: 0 0 0 3px #F97316;
    transform: scale(1.1);
}

.color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(229, 231, 235, 0.8);
    transition: all 0.2s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.color-name {
    font-size: 0.75rem;
    color: #6B7280;
    font-weight: 600;
}

/* Price Summary */
.glass-summary {
    background: rgba(249, 115, 22, 0.05);
    border: 1px solid rgba(249, 115, 22, 0.15);
    border-radius: 12px;
    padding: 1.25rem;
    margin: 1.5rem 0;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
    color: #6B7280;
}

.price-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    margin: 0.5rem 0;
}

.price-row.total {
    font-size: 1.125rem;
    font-weight: 800;
    color: #111827;
    padding-top: 0.75rem;
}

.price-total {
    color: #F97316;
    font-size: 1.375rem;
}

.discount-row .text-success { color: #10B981; font-weight: 700; }
#bulkPrice.text-success { color: #10B981; font-weight: 700; }

/* Responsive Design Section */
@media (max-width: 600px) {
    .design-options { grid-template-columns: 1fr; }
    .glass-color-group { gap: 0.5rem; }
    .color-swatch { width: 36px; height: 36px; }
}

/* ═══════════════════════════════════════════
   ENHANCED FORM FIELD STYLES
   ═══════════════════════════════════════════ */

/* Form Group Base */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
    animation: fieldFadeIn 0.4s ease-out;
}

@keyframes fieldFadeIn {
    from { 
        opacity: 0; 
        transform: translateY(8px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Fixed Fields (Order Name, Quantity, Notes, Design) */
.sp-field-fixed {
    padding: 1.125rem;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(249, 115, 22, 0.12);
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.sp-field-fixed::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #FBBF24, #F97316, #DC2626);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sp-field-fixed:hover {
    background: rgba(255, 255, 255, 0.65);
    border-color: rgba(249, 115, 22, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.08);
}

.sp-field-fixed:hover::before,
.sp-field-fixed:focus-within::before {
    opacity: 1;
}

.sp-field-fixed:focus-within {
    background: rgba(255, 255, 255, 0.85);
    border-color: #F97316;
    box-shadow: 0 8px 28px rgba(249, 115, 22, 0.15);
}

.sp-field-fixed .form-label {
    margin-bottom: 0.625rem;
    font-weight: 700;
    color: #1F2937;
}

.sp-field-fixed .form-label i {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FBBF24, #F97316);
    color: white;
    border-radius: 6px;
    font-size: 0.75rem;
    margin-left: 0.25rem;
    box-shadow: 0 2px 6px rgba(249, 115, 22, 0.3);
}

/* Dynamic Fields */
.dynamic-field {
    padding: 1.125rem;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(99, 102, 241, 0.12);
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.dynamic-field::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #818CF8, #6366F1, #4F46E5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dynamic-field:hover {
    background: rgba(255, 255, 255, 0.65);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.08);
}

.dynamic-field:hover::before,
.dynamic-field:focus-within::before {
    opacity: 1;
}

.dynamic-field:focus-within {
    background: rgba(255, 255, 255, 0.85);
    border-color: #6366F1;
    box-shadow: 0 8px 28px rgba(99, 102, 241, 0.15);
}

/* ═══════════════════════════════════════════
   GLASS FILE INPUT (PREMIUM)
   ═══════════════════════════════════════════ */

.glass-file-input {
    position: relative;
    display: block;
    width: 100%;
    padding: 0.875rem 1rem;
    padding-right: 3rem;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.6) 0%, 
        rgba(249, 115, 22, 0.05) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px dashed rgba(249, 115, 22, 0.3);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.875rem;
    color: #4B5563;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.glass-file-input::before {
    content: '\f0c6';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #F97316;
    font-size: 1rem;
    pointer-events: none;
}

.glass-file-input::file-selector-button {
    padding: 0.5rem 1rem;
    margin-left: 1rem;
    background: linear-gradient(135deg, #F97316, #DC2626);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

.glass-file-input::file-selector-button:hover {
    background: linear-gradient(135deg, #FB923C, #EF4444);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.glass-file-input:hover {
    border-color: #F97316;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.85) 0%, 
        rgba(249, 115, 22, 0.1) 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.1);
}

.glass-file-input:focus {
    border-color: #F97316;
    border-style: solid;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

/* ═══════════════════════════════════════════
   BADGE: "فیلد میانی" indicator
   ═══════════════════════════════════════════ */

.dynamic-field .form-label::after {
    content: 'اختصاصی';
    display: inline-block;
    margin-right: auto;
    padding: 2px 8px;
    background: linear-gradient(135deg, #818CF8, #6366F1);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    border-radius: 9999px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
}

/* Responsive */
@media (max-width: 600px) {
    .sp-field-fixed,
    .dynamic-field {
        padding: 1rem;
    }
    
    .glass-file-input {
        padding: 0.75rem;
        padding-right: 2.5rem;
        font-size: 0.8125rem;
    }
}

/* ═══════════════════════════════════════════
   PREMIUM GLASS INPUT
   ═══════════════════════════════════════════ */

.form-control.glass-input {
    width: 100%;
    padding: 0.875rem 1.125rem;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.7) 0%, 
        rgba(255, 255, 255, 0.5) 100%) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(229, 231, 235, 0.6) !important;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #1F2937;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.02),
        inset 0 1px 2px rgba(255, 255, 255, 0.5);
    outline: none;
}

.form-control.glass-input::placeholder {
    color: #9CA3AF;
    font-weight: 400;
}

.form-control.glass-input:hover {
    background: rgba(255, 255, 255, 0.85) !important;
    border-color: rgba(249, 115, 22, 0.4) !important;
    transform: translateY(-1px);
    box-shadow: 
        0 6px 16px rgba(249, 115, 22, 0.08),
        inset 0 1px 2px rgba(255, 255, 255, 0.6);
}

.form-control.glass-input:focus {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: #F97316 !important;
    box-shadow: 
        0 0 0 4px rgba(249, 115, 22, 0.12),
        0 8px 20px rgba(249, 115, 22, 0.15),
        inset 0 1px 2px rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
}

/* Select Specific */
select.form-control.glass-input {
    appearance: none;
    -webkit-appearance: none;
    padding-left: 2.75rem !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23F97316' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: left 1rem center !important;
    background-size: 14px !important;
    cursor: pointer;
    padding-right: 1.125rem !important;
}

select.form-control.glass-input option {
    background: #fff;
    color: #1F2937;
    padding: 0.75rem;
    font-weight: 500;
}

/* Textarea Specific */
textarea.form-control.glass-input {
    resize: vertical;
    min-height: 90px;
    line-height: 1.7;
    padding: 1rem 1.125rem;
}

/* Number Input Specific (با unit در سمت چپ) */
.number-input-wrapper .form-control.glass-input {
    padding-left: 4rem !important;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: 1rem;
}

/* ═══════════════════════════════════════════
   PREMIUM GLASS QUANTITY CONTROL
   ═══════════════════════════════════════════ */

.quantity-control.glass-qty-control {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.7) 0%, 
        rgba(249, 250, 251, 0.6) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(229, 231, 235, 0.6);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.02),
        inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

.quantity-control.glass-qty-control:hover {
    border-color: rgba(249, 115, 22, 0.4);
    box-shadow: 
        0 6px 16px rgba(249, 115, 22, 0.08),
        inset 0 1px 2px rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
}

.quantity-control.glass-qty-control:focus-within {
    border-color: #F97316;
    box-shadow: 
        0 0 0 4px rgba(249, 115, 22, 0.12),
        0 8px 20px rgba(249, 115, 22, 0.15);
}

.quantity-control.glass-qty-control .qty-btn {
    width: 48px;
    height: 48px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #6B7280;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.quantity-control.glass-qty-control .qty-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #FBBF24, #F97316, #DC2626);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.quantity-control.glass-qty-control .qty-btn i {
    position: relative;
    z-index: 1;
    transition: all 0.25s ease;
}

.quantity-control.glass-qty-control .qty-btn:hover::before {
    opacity: 1;
}

.quantity-control.glass-qty-control .qty-btn:hover i {
    color: #fff;
    transform: scale(1.2);
}

.quantity-control.glass-qty-control .qty-btn:active i {
    transform: scale(0.9);
}

.quantity-control.glass-qty-control .qty-btn:first-child {
    border-left: 1px solid rgba(229, 231, 235, 0.4);
}

.quantity-control.glass-qty-control .qty-btn:last-child {
    border-right: 1px solid rgba(229, 231, 235, 0.4);
}

.quantity-control.glass-qty-control .qty-input {
    width: 72px;
    height: 48px;
    border: none;
    background: transparent;
    text-align: center;
    font-family: inherit;
    font-size: 1.125rem;
    font-weight: 800;
    color: #111827;
    -moz-appearance: textfield;
    padding: 0;
    outline: none;
    transition: all 0.25s ease;
}

.quantity-control.glass-qty-control .qty-input:focus {
    color: #F97316;
    background: rgba(249, 115, 22, 0.05);
}

.quantity-control.glass-qty-control .qty-input::-webkit-inner-spin-button,
.quantity-control.glass-qty-control .qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ═══════════════════════════════════════════
   ANIMATION: Bounce When Quantity Changes
   ═══════════════════════════════════════════ */

@keyframes qtyBounce {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.15); }
    60%  { transform: scale(0.95); }
    100% { transform: scale(1); }
}

.qty-input.bounce {
    animation: qtyBounce 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 600px) {
    .form-control.glass-input {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .quantity-control.glass-qty-control .qty-btn {
        width: 44px;
        height: 44px;
    }
    
    .quantity-control.glass-qty-control .qty-input {
        width: 64px;
        height: 44px;
        font-size: 1rem;
    }
}

/* Conditional Fields Animation */
.conditional-field {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ✅ جایگزین - بدون !important */
.conditional-field[hidden] {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════
   BREADCRUMB NAVIGATION - Premium Design
   ═══════════════════════════════════════════════════════════ */

.breadcrumb-nav {
    background: linear-gradient(135deg, #FFF7ED 0%, #ffffff 100%);
    border-bottom: 1px solid #FED7AA;
    padding: 1.25rem 0;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

/* Background Pattern (Optional) */
.breadcrumb-nav::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(249, 115, 22, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(220, 38, 38, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Container */
.breadcrumb-nav .container {
    position: relative;
    z-index: 1;
}

/* Breadcrumb List */
.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

/* Breadcrumb Item */
.breadcrumb-list li {
    display: flex;
    align-items: center;
    font-size: 0.9375rem;
    line-height: 1;
}

/* Breadcrumb Links */
.breadcrumb-list li a {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Link Hover Background */
.breadcrumb-list li a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: -1;
    border-radius: 8px;
}

/* Link Hover State */
.breadcrumb-list li a:hover {
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.breadcrumb-list li a:hover::before {
    opacity: 1;
}

/* Link Active State */
.breadcrumb-list li a:active {
    transform: translateY(0);
}

/* Link Focus State (Accessibility) */
.breadcrumb-list li a:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

/* Link Icons */
.breadcrumb-list li a i {
    font-size: 0.875rem;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Home Icon Animation */
.breadcrumb-list li:first-child a i {
    animation: homeIconPulse 2s ease-in-out infinite;
}

@keyframes homeIconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Home Icon Hover Animation */
.breadcrumb-list li:first-child a:hover i {
    animation: none;
    transform: rotate(-15deg) scale(1.2);
}

/* Category Icon */
.breadcrumb-list li:nth-child(3) a i {
    color: #F97316;
}

.breadcrumb-list li:nth-child(3) a:hover i {
    color: #FFFFFF;
    transform: scale(1.1);
}

/* ═══════════════════════════════════════════════════════════
   BREADCRUMB SEPARATORS
   ═══════════════════════════════════════════════════════════ */

/* Custom Separator */
.breadcrumb-list li:not(:last-child)::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-top: 2px solid #F97316;
    border-right: 2px solid #F97316;
    transform: rotate(225deg);
    margin: 0 0.15rem;
    opacity: 0.5;
    transition: all 0.3s ease;
}

/* Separator Hover Effect */
.breadcrumb-list li:hover::after {
    opacity: 1;
    border-color: #EA580C;
    transform: rotate(225deg) scale(1.2);
}

/* ═══════════════════════════════════════════════════════════
   CURRENT PAGE (ACTIVE ITEM)
   ═══════════════════════════════════════════════════════════ */

.breadcrumb-list li.active {
    position: relative;
}

/* Current Page Text */
.breadcrumb-list li.active {
    color: #111827;
    font-weight: 700;
    padding: 0.5rem 0.875rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #E5E7EB;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Current Page Icon (Optional) */
.breadcrumb-list li.active::before {
    content: '📄';
    font-size: 1rem;
    filter: grayscale(0.3);
}

/* Current Page Badge */
.breadcrumb-list li.active::after {
    content: 'فعلی';
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #F97316 0%, #DC2626 100%);
    color: #FFFFFF;
    font-size: 0.625rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 100px;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════════════════════
   LOADING STATE
   ═══════════════════════════════════════════════════════════ */

.breadcrumb-nav.loading {
    pointer-events: none;
    opacity: 0.7;
}

.breadcrumb-nav.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #F97316 50%, 
        transparent 100%
    );
    animation: breadcrumbLoading 1.5s ease-in-out infinite;
}

@keyframes breadcrumbLoading {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .breadcrumb-list li a {
        font-size: 0.875rem;
        padding: 0.4375rem 0.625rem;
    }
    
    .breadcrumb-list li.active {
        max-width: 250px;
        font-size: 0.875rem;
    }
}

@media (max-width: 768px) {
    .breadcrumb-nav {
        padding: 1rem 0;
        margin-bottom: 1.5rem;
    }
    
    .breadcrumb-list {
        gap: 0.375rem;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 0.25rem;
    }
    
    .breadcrumb-list::-webkit-scrollbar {
        display: none;
    }
    
    .breadcrumb-list li {
        font-size: 0.8125rem;
        flex-shrink: 0;
    }
    
    .breadcrumb-list li a {
        font-size: 0.8125rem;
        padding: 0.375rem 0.5rem;
        white-space: nowrap;
    }
    
    .breadcrumb-list li.active {
        max-width: 200px;
        font-size: 0.8125rem;
        padding: 0.375rem 0.625rem;
    }
    
    .breadcrumb-list li.active::after {
        font-size: 0.5625rem;
        padding: 2px 5px;
        top: -6px;
        right: -6px;
    }
}

@media (max-width: 480px) {
    .breadcrumb-nav {
        padding: 0.875rem 0;
    }
    
    .breadcrumb-list li a {
        font-size: 0.75rem;
        padding: 0.3125rem 0.4375rem;
    }
    
    .breadcrumb-list li.active {
        max-width: 150px;
        font-size: 0.75rem;
    }
    
    /* Hide middle items on very small screens */
    .breadcrumb-list li:nth-child(3) {
        display: none;
    }
    
    .breadcrumb-list li:nth-child(2)::after {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════
   ACCESSIBILITY - REDUCED MOTION
   ═══════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
    .breadcrumb-list li a,
    .breadcrumb-list li a i,
    .breadcrumb-list li::after,
    .breadcrumb-list li:first-child a i {
        transition: none !important;
        animation: none !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   PRINT STYLES
   ═══════════════════════════════════════════════════════════ */

@media print {
    .breadcrumb-nav {
        background: none;
        border: none;
        padding: 0.5rem 0;
    }
    
    .breadcrumb-list li a {
        color: #000000;
        text-decoration: underline;
    }
    
    .breadcrumb-list li.active::after {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════
   ADDITIONAL ENHANCEMENTS
   ═══════════════════════════════════════════════════════════ */

/* Tooltip for truncated text */
.breadcrumb-list li.active[title] {
    cursor: help;
}

/* Smooth scroll indicator for mobile */
@media (max-width: 768px) {
    .breadcrumb-nav::after {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 100%;
        background: linear-gradient(90deg, transparent 0%, rgba(255, 247, 237, 0.8) 100%);
        pointer-events: none;
        z-index: 2;
    }
}

/* Focus visible for keyboard navigation */
.breadcrumb-list li a:focus-visible {
    outline: 2px solid #F97316;
    outline-offset: 2px;
}

/* Skeleton loading state */
.breadcrumb-nav.skeleton .breadcrumb-list li {
    background: #E5E7EB;
    border-radius: 8px;
    animation: skeletonLoading 1.5s ease-in-out infinite;
}

@keyframes skeletonLoading {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ═══════════════════════════════════════════════════════════
   PRODUCT GALLERY - Premium Design with Zoom Effect
   ═══════════════════════════════════════════════════════════ */

.product-col-gallery {
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

/* ═══════════════════════════════════════════════════════════
   GALLERY CONTAINER
   ═══════════════════════════════════════════════════════════ */

.product-gallery {
    background: #FFFFFF;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-gallery:hover {
    box-shadow: 
        0 8px 30px rgba(249, 115, 22, 0.15),
        0 0 0 1px rgba(249, 115, 22, 0.1);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════
   MAIN IMAGE CONTAINER
   ═══════════════════════════════════════════════════════════ */

.gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* مربع کامل */
    background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
    overflow: hidden;
    cursor: zoom-in;
    border-bottom: 2px solid #F3F4F6;
}

/* Main Image - Perfect Fit */
.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ✅ فیت کردن کامل تصویر */
    object-position: center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

/* Zoom Effect on Hover */
.gallery-main:hover img {
    transform: scale(1.15);
}

/* Zoom Lens Overlay */
.gallery-main::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at center,
        transparent 0%,
        rgba(249, 115, 22, 0.05) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.gallery-main:hover::before {
    opacity: 1;
}

/* Zoom Icon */
.gallery-main::after {
    content: '\f00e'; /* Font Awesome search-plus icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: #FFFFFF;
    font-size: 2rem;
    background: linear-gradient(135deg, #F97316 0%, #DC2626 100%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
    pointer-events: none;
}

.gallery-main:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* ═══════════════════════════════════════════════════════════
   IMAGE BADGES (Discount, Featured, etc.)
   ═══════════════════════════════════════════════════════════ */

.gallery-badge {
    position: absolute;
    top: 1rem;
    z-index: 3;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 700;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 0.375rem;
    backdrop-filter: blur(10px);
}

.gallery-badge-discount {
    right: 1rem;
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
}

.gallery-badge-featured {
    left: 1rem;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

.gallery-badge i {
    font-size: 0.875rem;
}

/* Badge Animation */
.gallery-badge {
    animation: badgeSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

@keyframes badgeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════════════════════════
   PLACEHOLDER (When No Image)
   ═══════════════════════════════════════════════════════════ */

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
    color: #F97316;
}

.gallery-placeholder i {
    font-size: 4rem;
    opacity: 0.5;
    animation: placeholderPulse 2s ease-in-out infinite;
}

@keyframes placeholderPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}

.gallery-placeholder span {
    font-size: 1rem;
    font-weight: 600;
    color: #92400E;
}

/* ═══════════════════════════════════════════════════════════
   THUMBNAILS GRID
   ═══════════════════════════════════════════════════════════ */

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.75rem;
    padding: 1rem;
    background: #FFFFFF;
}

/* Thumbnail Button */
.gallery-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #F9FAFB;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    outline: none;
}

/* Thumbnail Image */
.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Thumbnail Hover */
.gallery-thumb:hover {
    border-color: #F97316;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

.gallery-thumb:hover img {
    transform: scale(1.1);
}

/* Active Thumbnail */
.gallery-thumb.active {
    border-color: #F97316;
    border-width: 3px;
    box-shadow: 
        0 0 0 4px rgba(249, 115, 22, 0.2),
        0 4px 12px rgba(249, 115, 22, 0.3);
    transform: translateY(-2px);
}

.gallery-thumb.active::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
    z-index: 1;
}

/* Active Badge */
.gallery-thumb.active::after {
    content: '✓';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #F97316 0%, #DC2626 100%);
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 900;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
    animation: checkmarkPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes checkmarkPop {
    0% {
        transform: scale(0) rotate(-180deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

/* Thumbnail Focus State */
.gallery-thumb:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.3);
}

/* ═══════════════════════════════════════════════════════════
   LOADING STATE
   ═══════════════════════════════════════════════════════════ */

.gallery-main.loading {
    position: relative;
}

.gallery-main.loading::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        #F3F4F6 0%,
        #E5E7EB 50%,
        #F3F4F6 100%
    );
    background-size: 200% 100%;
    animation: shimmerLoading 1.5s ease-in-out infinite;
    z-index: 5;
}

@keyframes shimmerLoading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.gallery-main.loading img {
    opacity: 0;
}

/* ═══════════════════════════════════════════════════════════
   IMAGE COUNTER (Optional)
   ═══════════════════════════════════════════════════════════ */

.gallery-counter {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(17, 24, 39, 0.8);
    color: #FFFFFF;
    padding: 0.375rem 0.75rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.gallery-counter i {
    font-size: 0.75rem;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .product-col-gallery {
        position: relative;
        top: 0;
    }
    
    .gallery-thumbnails {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
        gap: 0.625rem;
        padding: 0.875rem;
    }
}

@media (max-width: 768px) {
    .product-gallery {
        border-radius: 16px;
    }
    
    .gallery-main {
        border-radius: 16px 16px 0 0;
    }
    
    .gallery-main::after {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .gallery-badge {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
        top: 0.75rem;
    }
    
    .gallery-badge-discount {
        right: 0.75rem;
    }
    
    .gallery-badge-featured {
        left: 0.75rem;
    }
    
    .gallery-thumbnails {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
        gap: 0.5rem;
        padding: 0.75rem;
    }
    
    .gallery-thumb {
        border-radius: 10px;
    }
    
    .gallery-thumb.active::after {
        width: 16px;
        height: 16px;
        font-size: 0.625rem;
        top: 2px;
        right: 2px;
    }
}

@media (max-width: 480px) {
    .gallery-main {
        aspect-ratio: 4 / 3; /* عمودی‌تر در موبایل */
    }
    
    .gallery-main::after {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .gallery-badge {
        padding: 0.3125rem 0.625rem;
        font-size: 0.6875rem;
    }
    
    .gallery-thumbnails {
        grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
        gap: 0.375rem;
        padding: 0.625rem;
    }
    
    .gallery-thumb {
        border-width: 1.5px;
    }
    
    .gallery-thumb.active {
        border-width: 2px;
    }
}

/* ═══════════════════════════════════════════════════════════
   DARK MODE SUPPORT
   ═══════════════════════════════════════════════════════════ */

@media (prefers-color-scheme: dark) {
    .product-gallery {
        background: #1F2937;
        box-shadow: 
            0 4px 20px rgba(0, 0, 0, 0.3),
            0 0 0 1px rgba(255, 255, 255, 0.1);
    }
    
    .gallery-main {
        background: linear-gradient(135deg, #374151 0%, #1F2937 100%);
        border-bottom-color: #374151;
    }
    
    .gallery-thumbnails {
        background: #1F2937;
    }
    
    .gallery-thumb {
        background: #374151;
        border-color: #4B5563;
    }
    
    .gallery-thumb:hover {
        border-color: #F97316;
    }
    
    .gallery-placeholder {
        background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
        color: #F97316;
    }
}

/* ═══════════════════════════════════════════════════════════
   ACCESSIBILITY
   ═══════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
    .gallery-main img,
    .gallery-main::before,
    .gallery-main::after,
    .gallery-thumb,
    .gallery-thumb img,
    .gallery-badge,
    .gallery-placeholder i {
        transition: none !important;
        animation: none !important;
    }
}

/* Focus Visible for Keyboard Navigation */
.gallery-thumb:focus-visible {
    outline: 3px solid #F97316;
    outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════════
   PRINT STYLES
   ═══════════════════════════════════════════════════════════ */

@media print {
    .gallery-thumbnails {
        display: none;
    }
    
    .gallery-main {
        border: 1px solid #000000;
    }
    
    .gallery-main::before,
    .gallery-main::after,
    .gallery-badge {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════
   ADDITIONAL ENHANCEMENTS
   ═══════════════════════════════════════════════════════════ */

/* Smooth transition when changing main image */
.gallery-main img.changing {
    opacity: 0;
    transform: scale(0.95);
}

/* Skeleton for thumbnails */
.gallery-thumb.skeleton {
    background: linear-gradient(
        90deg,
        #F3F4F6 0%,
        #E5E7EB 50%,
        #F3F4F6 100%
    );
    background-size: 200% 100%;
    animation: shimmerLoading 1.5s ease-in-out infinite;
}

.gallery-thumb.skeleton img {
    opacity: 0;
}

/* Gallery navigation arrows (optional) */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    color: #374151;
    font-size: 1.25rem;
    backdrop-filter: blur(10px);
}

.gallery-nav:hover {
    background: #F97316;
    color: #FFFFFF;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.gallery-nav-prev {
    left: 1rem;
}

.gallery-nav-next {
    right: 1rem;
}

/* Hide arrows on mobile */
@media (max-width: 768px) {
    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .gallery-nav-prev {
        left: 0.5rem;
    }
    
    .gallery-nav-next {
        right: 0.5rem;
    }
}

/* Touch-friendly on mobile */
@media (hover: none) {
    .gallery-main:hover img {
        transform: scale(1);
    }
    
    .gallery-main:hover::before,
    .gallery-main:hover::after {
        opacity: 0;
    }
    
    /* Show tap indicator instead */
    .gallery-main::after {
        content: '\f065'; /* expand icon */
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(0.8);
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        pointer-events: none;
    }
}


/* ═══════════════════════════════════════════════════════════
   IMAGE LIGHTBOX - Premium Design
   ═══════════════════════════════════════════════════════════ */

/* Lightbox Overlay */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2rem;
}

.gallery-lightbox.active {
    opacity: 1;
    visibility: visible;
}

/* Backdrop */
.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

/* Content Container */
.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    z-index: 1;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gallery-lightbox.active .lightbox-content {
    transform: scale(1);
}

/* Close Button */
.lightbox-close {
    position: absolute;
    top: -3.3rem;
    left: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.lightbox-close:hover {
    background: #DC2626;
    border-color: #DC2626;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.4);
}

/* Counter */
.lightbox-counter {
    position: absolute;
    top: -3rem;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    z-index: 10;
    font-family: 'Vazirmatn', sans-serif;
}

.counter-separator {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0.25rem;
}

/* Image Wrapper */
.lightbox-image-wrapper {
    position: relative;
    max-width: 80vw;
    max-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Main Image */
.lightbox-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    display: block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.lightbox-image.loaded {
    opacity: 1;
    animation: lightboxImageIn 0.4s ease;
}

@keyframes lightboxImageIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-image.zoomed {
    max-width: none;
    max-height: none;
    cursor: zoom-out;
    transform: scale(1.5);
}

/* Loader */
.lightbox-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    color: #F97316;
    font-size: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox-loader.active {
    opacity: 1;
    visibility: visible;
}

/* Navigation Buttons */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    z-index: 5;
}

.lightbox-prev {
    left: -5rem;
}

.lightbox-next {
    right: -5rem;
}

.lightbox-nav:hover {
    background: linear-gradient(135deg, #F97316 0%, #DC2626 100%);
    border-color: transparent;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.4);
}

.lightbox-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.lightbox-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Footer */
.lightbox-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 600px;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    gap: 1rem;
}

.lightbox-title {
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.lightbox-actions {
    display: flex;
    gap: 0.5rem;
}

.lightbox-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.lightbox-action-btn:hover {
    background: #F97316;
    border-color: #F97316;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .gallery-lightbox {
        padding: 1rem;
    }
    
    .lightbox-close {
        top: 1rem;
        left: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .lightbox-counter {
        top: 1rem;
        right: 1rem;
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .lightbox-image-wrapper {
        max-width: 95vw;
        max-height: 60vh;
        border-radius: 12px;
    }
    
    .lightbox-image {
        max-height: 60vh;
    }
    
    .lightbox-nav {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
    
    .lightbox-prev {
        left: 0.5rem;
    }
    
    .lightbox-next {
        right: 0.5rem;
    }
    
    .lightbox-footer {
        flex-direction: column;
        text-align: center;
        padding: 0.875rem 1rem;
        gap: 0.75rem;
    }
    
    .lightbox-title {
        font-size: 0.875rem;
        white-space: normal;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .lightbox-nav {
        width: 40px;
        height: 40px;
    }
    
    .lightbox-image-wrapper {
        max-height: 50vh;
    }
    
    .lightbox-image {
        max-height: 50vh;
    }
}

/* ═══════════════════════════════════════════════════════════
   KEYBOARD NAVIGATION INDICATOR
   ═══════════════════════════════════════════════════════════ */
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible,
.lightbox-action-btn:focus-visible {
    outline: 2px solid #F97316;
    outline-offset: 3px;
}

/* Prevent body scroll when lightbox is open */
body.lightbox-open {
    overflow: hidden;
}

/* Touch swipe hint for mobile */
@media (hover: none) {
    .lightbox-nav {
        opacity: 0.7;
    }
    
    .lightbox-image-wrapper::before {
        content: '👆 برای جابجایی بین تصاویر بکشید';
        position: absolute;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.7);
        color: #FFFFFF;
        padding: 0.5rem 1rem;
        border-radius: 100px;
        font-size: 0.75rem;
        opacity: 0;
        animation: swipeHint 3s ease-in-out forwards;
        animation-delay: 1s;
        z-index: 5;
    }
    
    @keyframes swipeHint {
        0%, 100% { opacity: 0; transform: translateX(-50%) translateY(10px); }
        50% { opacity: 1; transform: translateX(-50%) translateY(0); }
    }
}

/* ============================================
   PRODUCT HEADER - Premium RAYKA Design
   (بک‌گراند گرم + اشکال متحرک)
   ============================================ */

.product-header-section {
    position: relative;
    padding: 3rem 0 2.5rem;
    /* Mesh Gradient گرم و تیره‌تر */
    background: 
        radial-gradient(circle at 20% 30%, rgba(251, 191, 36, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(249, 115, 22, 0.15) 0%, transparent 40%),
        linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 50%, #FED7AA 100%);
    border-bottom: 1px solid rgba(249, 115, 22, 0.2);
    overflow: hidden;
    z-index: 1;
}

/* شکل متحرک ۱: دایره بزرگ نارنجی (بالا-راست) */
.product-header-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: floatBlob1 15s ease-in-out infinite;
    filter: blur(40px);
}

/* شکل متحرک ۲: دایره بزرگ قرمز (پایین-چپ) */
.product-header-section::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: floatBlob2 18s ease-in-out infinite reverse;
    filter: blur(50px);
}

/* انیمیشن شناور شکل ۱ */
@keyframes floatBlob1 {
    0%, 100% { 
        transform: translate(0, 0) scale(1); 
    }
    33% { 
        transform: translate(40px, -40px) scale(1.1); 
    }
    66% { 
        transform: translate(-30px, 30px) scale(0.95); 
    }
}

/* انیمیشن شناور شکل ۲ */
@keyframes floatBlob2 {
    0%, 100% { 
        transform: translate(0, 0) scale(1); 
    }
    33% { 
        transform: translate(-40px, 40px) scale(1.15); 
    }
    66% { 
        transform: translate(30px, -30px) scale(0.9); 
    }
}

.product-header-section > .container {
    position: relative;
    z-index: 2;
}

.product-header-content {
    max-width: 900px;
    animation: fadeInUpHeader 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* نوار تزئینی بالای عنوان */
.header-accent-line {
    display: block;
    width: 64px;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-orange), var(--brand-red));
    border-radius: 4px;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
    animation: expandLine 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

@keyframes expandLine {
    from { width: 0; opacity: 0; }
    to { width: 64px; opacity: 1; }
}

/* عنوان اصلی محصول */
.product-main-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--gray-900);
    margin: 0 0 1rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
    text-align: right;
}

/* توضیحات کوتاه */
.product-main-description {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: var(--gray-700);
    line-height: 1.8;
    margin: 0 0 1.75rem;
    max-width: 800px;
    text-align: right;
    animation: fadeInUpHeader 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both;
}

/* بج کد محصول */
.product-sku-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 1.125rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(249, 115, 22, 0.25);
    border-radius: 12px;
    font-size: 0.875rem;
    color: var(--gray-700);
    transition: all 0.3s ease;
    animation: fadeInUpHeader 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.1);
}

.product-sku-badge:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(249, 115, 22, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.15);
}

.product-sku-badge i {
    color: var(--brand-orange);
    font-size: 0.9rem;
}

.product-sku-badge strong {
    font-family: 'Courier New', Courier, monospace;
    color: var(--gray-900);
    font-weight: 700;
    letter-spacing: 0.5px;
    direction: ltr;
    display: inline-block;
}

/* انیمیشن ورود */
@keyframes fadeInUpHeader {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .product-header-section {
        padding: 2rem 0 1.5rem;
    }
    
    .product-header-section::before {
        width: 300px;
        height: 300px;
        top: -20%;
        right: -20%;
    }
    
    .product-header-section::after {
        width: 250px;
        height: 250px;
        bottom: -30%;
        left: -20%;
    }
    
    .header-accent-line {
        width: 48px;
        height: 3px;
        margin-bottom: 1rem;
    }
    
    .product-main-title {
        font-size: clamp(1.35rem, 5vw, 1.75rem);
    }
    
    .product-main-description {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 1.25rem;
    }
    
    .product-sku-badge {
        padding: 0.5rem 0.875rem;
        font-size: 0.8rem;
    }
}

/* ═══════════════════════════════════════════════════════════
GALLERY INFO SECTION - Delivery + Calculator
═══════════════════════════════════════════════════════════ */
.gallery-info-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

/* Glass Info Card Base */
.glass-info-card {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.7) 0%,
        rgba(255, 255, 255, 0.5) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(249, 115, 22, 0.15);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.glass-info-card:hover {
    border-color: rgba(249, 115, 22, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.12);
}

/* Card Header */
.info-card-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg,
        rgba(249, 115, 22, 0.08) 0%,
        rgba(220, 38, 38, 0.05) 100%);
    border-bottom: 1px solid rgba(249, 115, 22, 0.1);
}

.info-card-header i {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #F97316, #DC2626);
    color: #FFFFFF;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

.info-card-header h3 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1F2937;
    margin: 0;
}

/* Card Body */
.info-card-body {
    padding: 1.25rem;
}

/* ═══════════════════════════════════════════════════════════
1. DELIVERY CARD
═══════════════════════════════════════════════════════════ */
.delivery-card {
    background: linear-gradient(135deg,
        rgba(16, 185, 129, 0.08) 0%,
        rgba(5, 150, 105, 0.05) 100%);
    border-color: rgba(16, 185, 129, 0.2);
}

.delivery-card:hover {
    border-color: rgba(16, 185, 129, 0.4);
}

.delivery-card .info-card-header {
    background: linear-gradient(135deg,
        rgba(16, 185, 129, 0.12) 0%,
        rgba(5, 150, 105, 0.08) 100%);
    border-bottom-color: rgba(16, 185, 129, 0.15);
}

.delivery-card .info-card-header i {
    background: linear-gradient(135deg, #10B981, #059669);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.delivery-info {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.delivery-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.delivery-item i {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.1));
    color: #059669;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.delivery-item > div {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.delivery-item strong {
    font-size: 0.875rem;
    font-weight: 700;
    color: #111827;
}

.delivery-item span {
    font-size: 0.8125rem;
    color: #6B7280;
}

/* ═══════════════════════════════════════════════════════════
2. CALCULATOR CARD
═══════════════════════════════════════════════════════════ */
.calculator-card {
    background: linear-gradient(135deg,
        rgba(249, 115, 22, 0.06) 0%,
        rgba(220, 38, 38, 0.04) 100%);
    border-color: rgba(249, 115, 22, 0.2);
}

.calculator-card:hover {
    border-color: rgba(249, 115, 22, 0.4);
}

.calculator-card .info-card-header {
    background: linear-gradient(135deg,
        rgba(249, 115, 22, 0.1) 0%,
        rgba(220, 38, 38, 0.06) 100%);
    border-bottom-color: rgba(249, 115, 22, 0.12);
}

.calculator-card .info-card-header i {
    background: linear-gradient(135deg, #F97316, #DC2626);
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

/* Calculator Form */
.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Input Group */
.calc-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.calc-label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
}

.calc-label i {
    font-size: 0.75rem;
    color: #F97316;
}

/* Input Wrapper */
.calc-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.calc-input {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-left: 5rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1.5px solid rgba(229, 231, 235, 0.6);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.calc-input::placeholder {
    color: #9CA3AF;
    font-weight: 400;
    font-size: 0.8125rem;
}

.calc-input:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(249, 115, 22, 0.4);
}

.calc-input:focus {
    background: #FFFFFF;
    border-color: #F97316;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

/* Price Input - فونت بزرگ‌تر برای مبلغ */
.calc-input-price {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    direction: ltr;
    text-align: right;
}

/* Unit Badge */
.calc-unit {
    position: absolute;
    left: 0.5rem;
    padding: 0.375rem 0.625rem;
    background: linear-gradient(135deg, #F97316, #DC2626);
    color: #FFFFFF;
    border-radius: 6px;
    font-size: 0.6875rem;
    font-weight: 700;
    pointer-events: none;
    white-space: nowrap;
}

.calc-unit-toman {
    background: linear-gradient(135deg, #10B981, #059669);
}

/* Hint */
.calc-hint {
    font-size: 0.75rem;
    color: #9CA3AF;
    padding-right: 0.25rem;
}

/* Calculate Button */
.calc-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.875rem;
    background: linear-gradient(135deg, #F97316, #DC2626);
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
    margin-top: 0.5rem;
}

.calc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.4);
}

.calc-btn:active {
    transform: translateY(0);
}

/* Result Box */
.calc-result {
    margin-top: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg,
        rgba(16, 185, 129, 0.08) 0%,
        rgba(5, 150, 105, 0.05) 100%);
    border: 1.5px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    animation: resultFadeIn 0.4s ease-out;
}

@keyframes resultFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.calc-result-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.calc-result-row span {
    font-size: 0.8125rem;
    color: #6B7280;
    font-weight: 500;
}

.calc-result-row strong {
    font-size: 1rem;
    font-weight: 800;
    color: #111827;
    direction: ltr;
}

.calc-result-row small {
    font-size: 0.6875rem;
    color: #9CA3AF;
    font-weight: 500;
}

.calc-result-divider {
    height: 1px;
    background: rgba(16, 185, 129, 0.2);
    margin: 0.5rem 0;
}

.calc-result-total {
    padding-top: 0.75rem;
}

.calc-result-total span {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #374151;
}

.calc-result-total strong {
    font-size: 1.375rem;
    background: linear-gradient(135deg, #F97316, #DC2626);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ═══════════════════════════════════════════════════════════
RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .gallery-info-section { gap: 1rem; }
    .info-card-header { padding: 0.875rem 1rem; }
    .info-card-header h3 { font-size: 0.875rem; }
    .info-card-body { padding: 1rem; }
    .delivery-item { padding: 0.625rem; }
    .delivery-item i { width: 32px; height: 32px; font-size: 0.875rem; }
    .delivery-item strong { font-size: 0.8125rem; }
    .delivery-item span { font-size: 0.75rem; }
    .calc-input { padding: 0.625rem 0.875rem; padding-left: 4.5rem; font-size: 0.875rem; }
    .calc-unit { padding: 0.3125rem 0.5rem; font-size: 0.625rem; }
    .calc-btn { padding: 0.75rem; font-size: 0.875rem; }
    .calc-result { padding: 1rem; }
    .calc-result-total strong { font-size: 1.25rem; }
}

/* ═══════════════════════════════════════════════════════════
CUSTOM SPINNER BUTTONS - Premium Design
═══════════════════════════════════════════════════════════ */

/* حذف Spin Buttons پیش‌فرض مرورگر */
.calc-input::-webkit-outer-spin-button,
.calc-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.calc-input[type="number"] {
    -moz-appearance: textfield; /* Firefox */
}

/* Spinner Container */
.calc-spinner {
    position: absolute;
    left: 4.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 2;
}

/* Spinner Button Base */
.spinner-btn {
    width: 28px;
    height: 20px;
    border: none;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(220, 38, 38, 0.08));
    color: #F97316;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    position: relative;
    overflow: hidden;
}

.spinner-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #F97316, #DC2626);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 0;
}

.spinner-btn i {
    position: relative;
    z-index: 1;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Hover State */
.spinner-btn:hover {
    background: linear-gradient(135deg, #F97316, #DC2626);
    color: #FFFFFF;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.spinner-btn:hover::before {
    opacity: 1;
}

.spinner-btn:hover i {
    transform: scale(1.3);
}

/* Active State */
.spinner-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 6px rgba(249, 115, 22, 0.3);
}

.spinner-btn:active i {
    transform: scale(0.9);
}

/* Focus State (Accessibility) */
.spinner-btn:focus-visible {
    outline: 2px solid #F97316;
    outline-offset: 2px;
}

/* Up Button Specific */
.spinner-up {
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 2px;
}

.spinner-up:hover i {
    transform: translateY(-2px) scale(1.3);
}

/* Down Button Specific */
.spinner-down {
    border-top-left-radius: 2px;
    border-top-right-radius: 2px;
}

.spinner-down:hover i {
    transform: translateY(2px) scale(1.3);
}

/* Input Padding Adjustment (برای جلوگیری از همپوشانی با spinner) */
.calc-input-wrapper .calc-input {
    padding-left: 7.5rem !important;
}

/* ═══════════════════════════════════════════════════════════
RESPONSIVE - MOBILE
═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .calc-spinner {
        left: 4rem;
    }
    
    .spinner-btn {
        width: 24px;
        height: 18px;
        font-size: 0.5625rem;
    }
    
    .calc-input-wrapper .calc-input {
        padding-left: 6.5rem !important;
    }
}

@media (max-width: 480px) {
    .calc-spinner {
        left: 3.5rem;
    }
    
    .spinner-btn {
        width: 22px;
        height: 16px;
    }
    
    .calc-input-wrapper .calc-input {
        padding-left: 6rem !important;
    }
}

/* ═══════════════════════════════════════════════════════════
DARK MODE SUPPORT
═══════════════════════════════════════════════════════════ */
@media (prefers-color-scheme: dark) {
    .spinner-btn {
        background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(220, 38, 38, 0.15));
        color: #FB923C;
    }
    
    .spinner-btn:hover {
        background: linear-gradient(135deg, #F97316, #DC2626);
        color: #FFFFFF;
    }
}

/* ═══════════════════════════════════════════════════════════
ANIMATION: Pulse on Click
═══════════════════════════════════════════════════════════ */
@keyframes spinnerPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}

.spinner-btn.pulse {
    animation: spinnerPulse 0.3s ease;
}


/* ═══════════════════════════════════════════════════════════
STICKY PRICE BAR - Premium Glassmorphism Design
═══════════════════════════════════════════════════════════ */

/* Container اصلی - شیشه‌ای */
.sticky-price-bar {
    position: fixed;
    bottom: 0px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 -8px 32px rgba(0, 0, 0, 0.08),
        0 -2px 8px rgba(249, 115, 22, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    z-index: 998; /* زیر bottom-nav که 999 است */
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

/* حالت فعال (بعد از اسکرول) */
.sticky-price-bar.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

/* نوار گرادیانت بالای sticky bar */
.sticky-price-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(251, 191, 36, 0.8) 0%, 
        rgba(249, 115, 22, 0.9) 50%, 
        rgba(220, 38, 38, 0.8) 100%);
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.4);
}

/* Container داخلی */
.sticky-price-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1rem 0;
}

/* ═══════════════════════════════════════════════════════════
سمت راست: کد محصول (SKU)
═══════════════════════════════════════════════════════════ */
.sticky-price-sku {
    flex: 0 0 auto;
}

.sticky-sku-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 10px;
    font-size: 0.8125rem;
    color: #6B7280;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.sticky-sku-badge:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(249, 115, 22, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.1);
}

.sticky-sku-badge i {
    color: #F97316;
    font-size: 0.875rem;
}

.sticky-sku-badge strong {
    font-family: 'Courier New', Courier, monospace;
    color: #111827;
    font-weight: 700;
    letter-spacing: 0.5px;
    direction: ltr;
    display: inline-block;
}

/* ═══════════════════════════════════════════════════════════
وسط: قیمت نهایی
═══════════════════════════════════════════════════════════ */
.sticky-price-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-align: center;
}

.sticky-price-label {
    font-size: 0.75rem;
    color: #6B7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sticky-price-value {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #F97316 0%, #DC2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    direction: ltr;
    transition: all 0.3s ease;
}

.sticky-price-details {
    font-size: 0.8125rem;
    color: #6B7280;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════
سمت چپ: دکمه افزودن به سبد
═══════════════════════════════════════════════════════════ */
.sticky-price-action {
    flex: 0 0 auto;
}

.sticky-add-to-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: linear-gradient(135deg, #F97316 0%, #DC2626 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 16px rgba(249, 115, 22, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.sticky-add-to-cart::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.sticky-add-to-cart:hover::before {
    width: 300px;
    height: 300px;
}

.sticky-add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 24px rgba(249, 115, 22, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

.sticky-add-to-cart:active {
    transform: translateY(0);
}

.sticky-add-to-cart i {
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

.sticky-add-to-cart span {
    position: relative;
    z-index: 1;
}

/* ═══════════════════════════════════════════════════════════
RESPONSIVE - TABLET (768px - 1024px)
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .sticky-price-content {
        gap: 1.5rem;
        padding: 0.875rem 0;
    }
    
    .sticky-price-value {
        font-size: 1.5rem;
    }
    
    .sticky-add-to-cart {
        padding: 0.625rem 1.5rem;
        font-size: 0.875rem;
    }
}

/* ═══════════════════════════════════════════════════════════
RESPONSIVE - MOBILE (< 768px)
═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .sticky-price-bar {
        bottom: 100px;
        padding: 0.75rem 0;
    }
    
    .sticky-price-content {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem 0;
    }
    
    /* مخفی کردن SKU در موبایل */
    .sticky-price-sku {
        display: none;
    }
    
    /* قیمت در وسط */
    .sticky-price-center {
        width: 100%;
        order: 1;
    }
    
    .sticky-price-label {
        font-size: 0.6875rem;
    }
    
    .sticky-price-value {
        font-size: 1.375rem;
    }
    
    .sticky-price-details {
        font-size: 0.75rem;
    }
    
    /* دکمه در پایین */
    .sticky-price-action {
        width: 100%;
        order: 2;
    }
    
    .sticky-add-to-cart {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════
RESPONSIVE - SMALL MOBILE (< 480px)
═══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    .sticky-price-bar {
        bottom: 95px;
    }
    
    .sticky-price-value {
        font-size: 1.25rem;
    }
    
    .sticky-add-to-cart {
        display: none;

    }
}

/* ═══════════════════════════════════════════════════════════
ANIMATION: Pulse on Price Update
═══════════════════════════════════════════════════════════ */
@keyframes pricePulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
    100% {
        transform: scale(1);
    }
}

.sticky-price-value.pulse {
    animation: pricePulse 0.4s ease;
}

/* ═══════════════════════════════════════════════════════════
ACCESSIBILITY - REDUCED MOTION
═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    .sticky-price-bar,
    .sticky-price-value,
    .sticky-add-to-cart,
    .sticky-sku-badge {
        transition: none !important;
        animation: none !important;
    }
}