/* Amore Product Page Styles */

/* 1. Layout & Containers */
.product-page {
    padding: 2rem 1.5rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.product-gallery {
    position: sticky;
    top: 100px;
}

/* 2. Product Gallery & Images */
.main-image-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #fafafa;
    margin-bottom: 1rem;
}

.main-image-container img {
    width: 100%;
    height: auto;
}

.product-badge-detail {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 999px;
    background: #1a1a1a;
    color: #fff;
    z-index: 10;
}

.product-badge-sale { background: #c62828; }
.product-badge-soldout { background: #9e9e9e; }

.thumbnail-strip-wrap {
    margin-top: 0.75rem;
}

.thumbnail-strip {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.thumbnail-strip::-webkit-scrollbar {
    height: 4px;
}

.thumbnail-strip::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.thumbnail-strip-hint {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.4rem;
    font-size: 0.75rem;
    color: #aaa;
    padding-left: 2px;
}

.thumbnail-item {
    flex-shrink: 0;
    width: 70px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    scroll-snap-align: start;
    transition: all 0.2s ease;
    background: none;
    padding: 0;
}

.thumbnail-item.active,
.thumbnail-item:hover {
    border-color: #1a1a1a;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 3. Product Information */
.product-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #888;
}

.product-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-price-block {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.product-price-current {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1a1a1a;
}

.product-price-original {
    font-size: 1.1rem;
    color: #888;
    text-decoration: line-through;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.rating-stars {
    display: flex;
    gap: 2px;
    color: #c9a86c;
}

.rating-count {
    font-size: 0.9rem;
    color: #888;
}

.stock-status-block {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.stock-in { background: rgba(46,125,50,0.1); color: #2e7d32; }
.stock-low { background: rgba(245,124,0,0.1); color: #f57c00; }
.stock-out { background: rgba(198,40,40,0.1); color: #c62828; }
.stock-preorder { background: rgba(25,118,210,0.1); color: #1976d2; }

/* 4. Interactive Components (Cart, Wishlist, Options) */
.option-section {
    margin-bottom: 1.5rem;
}

.option-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    display: block;
}

.option-label span {
    font-weight: 400;
    color: #888;
}

.option-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    background: #fff;
    transition: border-color 0.2s ease;
}

.option-select:focus {
    outline: none;
    border-color: #1a1a1a;
}

.add-to-cart-section {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.quantity-input-modern {
    width: 80px;
    padding: 0.875rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
}

.add-to-cart-btn {
    flex: 1;
    padding: 0.875rem 2rem;
    background: #1a1a1a;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.add-to-cart-btn:hover:not(:disabled) {
    background: #333;
    transform: translateY(-2px);
}

.add-to-cart-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.wishlist-share-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    margin-bottom: 1.5rem;
}

.wishlist-btn-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #1a1a1a;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.wishlist-btn-modern:hover { color: #c62828; }
.wishlist-btn-modern.active { color: #c62828; }

.social-share {
    display: flex;
    gap: 0.75rem;
}

.social-share a {
    color: #888;
    transition: color 0.2s ease;
}

.social-share a:hover { color: #1a1a1a; }

/* 5. Trust Badges & Delivery Info */
.trust-badges-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.trust-badge-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #666;
}

.trust-badge-modern svg {
    width: 18px;
    height: 18px;
    color: #1a1a1a;
}

.delivery-urgency-box {
    background: #fdfaf5;
    border: 1px solid #f3e5ce;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.delivery-urgency-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #c9a86c;
}

.delivery-urgency-box.warning {
    background: #fff8e1;
    border-color: #ffe082;
}

.delivery-urgency-box.warning::before {
    background: #f57c00;
}

.delivery-est-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.delivery-est-header svg {
    color: #1a1a1a;
    flex-shrink: 0;
}

.delivery-est-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
}

.delivery-est-date {
    color: #2e7d32;
    font-weight: 700;
}

.delivery-timer-text {
    font-size: 0.85rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.delivery-countdown {
    display: inline-flex;
    background: #1a1a1a;
    color: #fff;
    padding: 0.1rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
    font-family: var(--font-mono, monospace);
    font-size: 0.8rem;
}

/* 6. Bundle Section (Amazon Style) */
.bundle-section {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.bundle-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    text-align: start;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 1rem;
}

.bundle-container {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.bundle-item-img {
    width: 100px;
    aspect-ratio: 3/4;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.bundle-plus {
    font-size: 1.2rem;
    color: #bbb;
    padding-top: 2rem;
}

.bundle-summary {
    margin-top: 1rem;
    padding: 1rem;
    background: #fcfcfc;
    border-radius: 8px;
}

.bundle-total-label {
    font-size: 0.85rem;
    color: #777;
}

.bundle-total-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.bundle-add-btn {
    width: 100%;
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.bundle-list {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bundle-list-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.85rem;
}

.bundle-item-price {
    font-weight: 600;
    margin-left: auto;
}

/* 7. Tabs & Description */
.product-tabs {
    margin-top: 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.product-tabs .nav-tabs {
    border-bottom: 1px solid #eee;
    gap: 2rem;
}

.product-tabs .nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: #888;
    border: none;
    padding: 1rem 0;
    background: transparent;
    position: relative;
}

.product-tabs .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #1a1a1a;
    transition: width 0.3s ease;
}

.product-tabs .nav-link.active,
.product-tabs .nav-link:hover { color: #1a1a1a; }
.product-tabs .nav-link.active::after { width: 100%; }
.product-tabs .tab-content { padding: 2rem 0; }

.product-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #666;
    margin-bottom: 2rem;
}

/* 8. Recommendations (Unified Cards) */
.product-card-unified {
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: #fff;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card-unified:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    border-color: #e0e0e0;
}

.product-card-unified .image-wrap {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.product-card-unified .image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card-unified:hover .image-wrap img { transform: scale(1.08); }

.product-card-unified .content-wrap {
    padding: 1.25rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card-unified .category-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
    margin-bottom: 0.5rem;
}

.product-card-unified .product-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.product-card-unified .product-price {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 1.1rem;
}

.product-card-unified .view-btn {
    margin-top: 1rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #1a1a1a;
}

.related-section {
    padding: 4rem 0;
    border-top: 1px solid #f5f5f5;
}

.swiper-button-prev, .swiper-button-next {
    width: 44px;
    height: 44px;
    background: #fff;
    color: #1a1a1a;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* 9. Variations Modal */
.variation-modal-content { padding: 1.5rem; }
.variation-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}
.variation-product-header { display: flex; gap: 1rem; margin-bottom: 1rem; }
.variation-product-img { width: 60px; height: 80px; object-fit: cover; border-radius: 6px; }
.variation-product-info h6 { margin: 0; font-weight: 600; }
.variation-selectors { display: flex; gap: 1rem; flex-wrap: wrap; }
.variation-select-group { flex: 1; min-width: 150px; }

/* 10. Gallery Overlays & Interaction */
.gallery-overlay-bar {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 10;
    pointer-events: none;
}

.gallery-photo-counter {
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    letter-spacing: 0.04em;
    backdrop-filter: blur(6px);
}

.gallery-expand-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255,255,255,0.92);
    color: #1a1a1a;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    transition: background 0.2s ease;
    border: none;
}

.gallery-expand-btn:hover { background: #fff; }

.detail-slider-prev, .detail-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    transition: all 0.2s ease;
}

.detail-slider-prev { left: 0.75rem; }
.detail-slider-next { right: 0.75rem; }

.detail-slider-pagination {
    position: absolute;
    bottom: 3.5rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 5px;
    z-index: 10;
    pointer-events: none;
}

.detail-slider-pagination .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
    transition: all 0.2s ease;
}

.detail-slider-pagination .swiper-pagination-bullet-active {
    background: #fff;
    width: 18px;
    border-radius: 3px;
}

.swipe-hint-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    pointer-events: none;
    opacity: 0;
    animation: swipeHintAnim 2.6s ease forwards;
    border-radius: 16px;
}

@keyframes swipeHintAnim {
    0% { opacity: 0; }
    20% { opacity: 1; }
    75% { opacity: 1; }
    100% { opacity: 0; }
}

.swipe-hint-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0,0,0,0.52);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.swipe-hint-overlay.hidden { display: none; }

.zoom-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    cursor: crosshair;
}

.zoom-container img {
    transition: transform 0.1s ease-out;
    transform-origin: center center;
}

.zoom-container:hover img { transform: scale(1.5); }

.interactive-hint {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    color: #888;
    white-space: nowrap;
    opacity: 0.7;
}

/* 11. Alerts & Notifications */
.cart-alert-modern {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    display: none;
}

.cart-alert-modern.show {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-alert-modern svg { color: #2e7d32; flex-shrink: 0; }
.cart-alert-modern a { color: #2e7d32; font-weight: 600; }

/* 12. Reviews Section Styles */
.max-width-900 { max-width: 900px; }
.form-control-modern {
    border: 1px solid #eee !important;
    padding: 0.9rem 1.2rem !important;
    border-radius: 12px !important;
    transition: all 0.2s ease !important;
    background: #fcfcfc !important;
    font-size: 0.95rem !important;
}

.form-control-modern:focus {
    background: #fff !important;
    border-color: #c9a86c !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05) !important;
}

.fw-600 { font-weight: 600; }
.text-sm { font-size: 0.85rem; }

/* 13. RTL Support */
.rtl-mode .product-info { padding-left: 0; padding-right: 2rem; text-align: right !important; }
.rtl-mode .product-title { text-align: right !important; }
.rtl-mode .breadcrumb-item + .breadcrumb-item { padding-left: 0; padding-right: var(--bs-breadcrumb-item-padding-x); }
.rtl-mode .breadcrumb-item + .breadcrumb-item::before { float: right; padding-right: 0; padding-left: var(--bs-breadcrumb-item-padding-x); }
.rtl-mode .product-meta-item, .rtl-mode .trust-badge-modern, .rtl-mode .delivery-est-header, .rtl-mode .stock-status-block { flex-direction: row-reverse; }
.rtl-mode .delivery-urgency-box::before { left: auto; right: 0; }
.rtl-mode .add-to-cart-section, .rtl-mode .wishlist-share-row, .rtl-mode .delivery-est-header, .rtl-mode .delivery-timer-text, .rtl-mode .product-rating, .rtl-mode .viewing-indicator, .rtl-mode .product-meta, .rtl-mode .product-price-block, .rtl-mode .product-tabs .nav { flex-direction: row; justify-content: flex-start; width: 100%; text-align: right; }
.rtl-mode .delivery-urgency-box, .rtl-mode .trending-badge-detail { text-align: right !important; }
.rtl-mode .option-select { text-align: right; }
.rtl-mode .wishlist-btn-modern { flex-direction: row-reverse; }
.rtl-mode .thumbnail-strip-hint { padding-left: 0; padding-right: 2px; flex-direction: row-reverse; }
.rtl-mode .thumbnail-strip-hint svg { transform: scaleX(-1); }

/* Bundle RTL */
.rtl-mode.bundle-section, .rtl-mode .bundle-section { direction: rtl !important; text-align: right !important; }
.rtl-mode .bundle-title { text-align: right !important; direction: rtl !important; }
.rtl-mode .bundle-container { display: flex !important; flex-direction: row !important; justify-content: flex-start !important; direction: rtl !important; gap: 1rem !important; }
.rtl-mode .bundle-list-item { display: flex !important; flex-direction: row !important; text-align: right !important; gap: 0.75rem !important; justify-content: flex-start !important; direction: rtl !important; }
.rtl-mode .bundle-item-name { margin-right: 0 !important; text-align: right !important; flex-grow: 1; }
.rtl-mode .bundle-item-price { margin-right: auto !important; margin-left: 0 !important; text-align: left !important; }
.rtl-mode .bundle-summary { text-align: right !important; direction: rtl !important; }
.rtl-mode .bundle-total-price { text-align: left !important; }

/* Reviews RTL */
.rtl-mode .form-control-modern { text-align: right; direction: rtl; }
.rtl-mode .product-reviews-section, .rtl-mode .product-reviews-section .card { text-align: right !important; }
.rtl-mode .product-reviews-section h5 { display: flex !important; flex-direction: row !important; justify-content: flex-start !important; text-align: right !important; width: 100% !important; }
.rtl-mode .product-reviews-section p { text-align: right !important; display: block !important; width: 100% !important; }
.rtl-mode .product-reviews-section .row { direction: rtl; }
.rtl-mode .product-reviews-section label { width: 100%; text-align: right; }

/* Media Queries */
@media (max-width: 991px) {
    .product-info { padding-left: 0; padding-top: 2rem; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
