/**
 * RB Jewellers Catalog - Pages Styles
 *
 * @package    RB_Jewellers_Catalog
 * @since      2.0.0
 */

/* ==========================================================================
   Single Product Page
   ========================================================================== */


/* ==========================================================================
   Single Product Page - Modern Design
   ========================================================================== */

.rb-single-product-wrapper {
    background: #fff !important;
    padding: 0 !important;
}

.rb-single-product-wrapper .rb-catalog-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 50px 30px !important;
}

.rb-product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

@media (max-width: 900px) {
    .rb-product-detail {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Product Gallery - Left Side */
.rb-product-gallery {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rb-gallery-main {
    position: relative;
    aspect-ratio: 1;
    background: #f8f8f8;
    border-radius: 12px;
    overflow: hidden;
}

.rb-gallery-main .rb-main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: zoom-in;
}

.rb-gallery-main .rb-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    gap: 15px;
}

.rb-zoom-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: rgba(26, 26, 46, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.rb-zoom-btn:hover {
    background: var(--rb-primary);
    transform: scale(1.1);
}

.rb-gallery-thumbnails {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 5px;
}

.rb-thumbnail {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    background: #f8f8f8;
}

.rb-thumbnail:hover {
    border-color: #ddd;
}

.rb-thumbnail.active {
    border-color: var(--rb-primary);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

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

/* Product Info - Right Side */
.rb-product-info {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
}

.rb-product-header {
    margin-bottom: 30px;
}

.rb-product-title {
    margin: 0 0 20px;
    font-size: 36px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.2;
    font-family: 'Playfair Display', Georgia, serif;
}

.rb-product-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 20px;
    background: #f8f8f8;
    border-radius: 8px;
}

.rb-product-sku {
    font-size: 14px;
    color: #666;
}

.rb-product-sku strong {
    color: #333;
    font-weight: 600;
}

.rb-product-description {
    margin: 30px 0;
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.rb-product-description p {
    margin: 0 0 15px;
}

.rb-product-description p:last-child {
    margin-bottom: 0;
}

/* Product Actions - Quantity & Add to Cart */
.rb-product-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.rb-quantity-selector {
    display: flex;
    align-items: center;
    gap: 20px;
}

.rb-quantity-selector label {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.rb-quantity-input {
    display: flex;
    align-items: center;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.rb-qty-btn {
    width: 48px;
    height: 48px;
    background: #f8f8f8;
    border: none;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.rb-qty-btn:hover {
    background: #eee;
}

.rb-qty-btn:active {
    background: #ddd;
}

.rb-quantity-input .rb-quantity {
    width: 70px;
    height: 48px;
    border: none;
    border-left: 1px solid #e5e5e5;
    border-right: 1px solid #e5e5e5;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    -moz-appearance: textfield;
}

.rb-quantity-input .rb-quantity::-webkit-inner-spin-button,
.rb-quantity-input .rb-quantity::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Product Page Add to Cart - Full Width */
.rb-product-detail .rb-add-to-inquiry {
    width: 100%;
    height: var(--rb-button-height-lg);
    padding: 0 var(--rb-space-8);
    font-size: var(--rb-font-size-lg);
    border-radius: var(--rb-radius-xl);
}

.rb-product-detail .rb-add-to-inquiry svg {
    width: 22px;
    height: 22px;
}

/* Single Product Page - Responsive */
@media (max-width: 900px) {
    .rb-single-product-wrapper .rb-catalog-container {
        padding: 20px 15px;
    }

    .rb-product-gallery {
        position: static;
    }

    .rb-product-title {
        font-size: 28px;
    }

    .rb-product-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .rb-quantity-selector {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .rb-product-title {
        font-size: 24px;
    }

    .rb-gallery-thumbnails {
        gap: 8px;
    }

    .rb-thumbnail {
        width: 60px;
        height: 60px;
    }

    .rb-product-detail .rb-add-to-inquiry {
        padding: 16px 24px;
        font-size: 15px;
    }
}

/* Share Buttons - Hidden by default (can enable later) */
.rb-product-share {
    display: none;
}

.rb-share-label {
    font-size: 14px;
    color: var(--rb-text-light);
}

.rb-share-buttons {
    display: flex;
    gap: 10px;
}

.rb-share-btn {
    width: 36px;
    height: 36px;
    background: var(--rb-bg-light);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rb-text-light);
    transition: all var(--rb-transition);
    cursor: pointer;
}

.rb-share-btn:hover {
    transform: translateY(-2px);
}

.rb-share-whatsapp:hover {
    background: var(--rb-whatsapp);
    color: #fff;
}

.rb-share-facebook:hover {
    background: #1877F2;
    color: #fff;
}

.rb-share-twitter:hover {
    background: #000;
    color: #fff;
}

.rb-share-pinterest:hover {
    background: #E60023;
    color: #fff;
}

.rb-share-copy:hover {
    background: var(--rb-primary);
    color: #fff;
}


/* ==========================================================================
   Related Products
   ========================================================================== */

.rb-related-products {
    margin-top: 20px;
}

.rb-section-title {
    margin: 0 0 25px;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
}

.rb-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .rb-related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .rb-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Back Link */
.rb-back-link {
    text-align: center;
    margin-top: 20px;
}


/* ==========================================================================
   Wishlist Page
   ========================================================================== */

.rb-wishlist-wrapper .rb-wishlist-content {
    max-width: 900px;
    margin: 0 auto;
}

.rb-wishlist-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--rb-bg);
    border-radius: var(--rb-radius-lg);
    box-shadow: var(--rb-shadow);
}

.rb-empty-icon {
    color: var(--rb-text-muted);
    margin-bottom: 20px;
    opacity: 0.5;
}

.rb-wishlist-empty h2 {
    margin: 0 0 10px;
    font-size: 24px;
    color: var(--rb-text);
}

.rb-wishlist-empty p {
    margin: 0 0 25px;
    color: var(--rb-text-light);
}

.rb-wishlist-items {
    background: var(--rb-bg);
    border-radius: var(--rb-radius-lg);
    box-shadow: var(--rb-shadow);
    overflow: hidden;
}

.rb-wishlist-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--rb-border);
}

.rb-wishlist-count {
    font-size: 16px;
    color: var(--rb-text-light);
}

.rb-wishlist-count span {
    font-weight: 600;
    color: var(--rb-text);
}

/* Wishlist Table */
.rb-wishlist-table-wrapper {
    overflow-x: auto;
}

.rb-wishlist-table {
    width: 100%;
    border-collapse: collapse;
}

.rb-wishlist-table th {
    padding: 15px 20px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--rb-text-light);
    background: var(--rb-bg-light);
    border-bottom: 1px solid var(--rb-border);
}

.rb-wishlist-table td {
    padding: 20px;
    border-bottom: 1px solid var(--rb-border);
    vertical-align: middle;
}

.rb-wishlist-table tr:last-child td {
    border-bottom: none;
}

.rb-col-image {
    width: 100px;
}

.rb-col-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--rb-radius-sm);
}

.rb-no-image-sm {
    width: 80px;
    height: 80px;
    background: var(--rb-bg-light);
    border-radius: var(--rb-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rb-text-muted);
}

.rb-col-details {
    min-width: 200px;
}

.rb-item-name {
    display: block;
    font-weight: 500;
    color: var(--rb-text);
    margin-bottom: 5px;
}

.rb-item-name:hover {
    color: var(--rb-primary);
}

.rb-item-sku {
    font-size: 13px;
    color: var(--rb-text-muted);
}

.rb-col-quantity {
    width: 140px;
}

.rb-col-actions {
    width: 60px;
    text-align: center;
}

.rb-remove-item {
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    color: var(--rb-text-muted);
    cursor: pointer;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--rb-transition);
}

.rb-remove-item:hover {
    background: #fee2e2;
    color: var(--rb-danger);
}

.rb-wishlist-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-top: 1px solid var(--rb-border);
    gap: 15px;
}

@media (max-width: 600px) {
    .rb-wishlist-actions {
        flex-direction: column;
    }

    .rb-wishlist-actions .rb-btn {
        width: 100%;
    }
}


/* ==========================================================================
   Not Found Page
   ========================================================================== */

.rb-not-found {
    text-align: center;
    padding: 80px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.rb-not-found-icon {
    color: var(--rb-text-muted);
    margin-bottom: 25px;
    opacity: 0.5;
}

.rb-not-found h1 {
    margin: 0 0 15px;
    font-size: 32px;
    color: var(--rb-text);
}

.rb-not-found p {
    margin: 0 0 30px;
    font-size: 16px;
    color: var(--rb-text-light);
}

.rb-not-found-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}


