/* PRODUTO-INDIVIDUAL.CSS - Estilos da Página de Produto Individual QUEISE */

/* ========================================
   BREADCRUMB
======================================== */

.breadcrumb {
    background: linear-gradient(135deg, rgba(226, 236, 245, 0.35) 0%, rgba(246, 248, 251, 0.85) 100%);
    padding: calc(var(--header-height) + clamp(1.5rem, 3vw, 2.5rem)) var(--content-gutter) clamp(1.5rem, 3vw, 2.25rem);
    border-bottom: 1px solid var(--border-subtle);
}

.breadcrumb-content {
    max-width: var(--max-width-wide);
    margin: 0 auto;
}

.breadcrumb-path {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumb-path a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-path a:hover {
    color: var(--secondary);
}

.breadcrumb-separator {
    color: var(--text-subtle);
    font-weight: 300;
}

.breadcrumb-current {
    color: var(--text-dark);
    font-weight: 600;
}

/* ========================================
   PRODUCT DETAIL SECTION
======================================== */

.product-detail {
    padding: var(--section-spacing) var(--content-gutter) var(--section-spacing-tight);
    max-width: var(--max-width-wide);
    margin: 0 auto;
    opacity: 0;
    transform: translateY(24px);
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-detail.loaded {
    opacity: 1;
    transform: translateY(0);
}

.product-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: start;
    margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

/* ========================================
   PRODUCT GALLERY
======================================== */

.product-gallery {
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
}

.main-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: var(--gradient-soft);
    border-radius: var(--border-radius-card);
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    cursor: zoom-in;
}

.main-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
    padding: 2rem;
}

.main-image-container:hover .main-product-image {
    transform: scale(1.05);
}

.image-zoom-overlay {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(47, 79, 111, 0.75);
    color: white;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.main-image-container:hover .image-zoom-overlay {
    opacity: 1;
}

.gallery-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-image-container:hover .gallery-navigation {
    opacity: 1;
}

.gallery-nav-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gallery-nav-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.gallery-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.thumbnail-gallery {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: var(--gradient-soft);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumbnail.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(47, 79, 111, 0.18);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.5rem;
}

.thumbnail:hover {
    transform: scale(1.05);
    border-color: var(--secondary);
}

/* ========================================
   PRODUCT INFORMATION
======================================== */

.product-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.product-header {
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 2rem;
}

.product-badges {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.premium-badge {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-soft);
}

.personalizavel-badge {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: white;
}

.product-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    line-height: 1.2;
}

.product-vendor {
    color: var(--text-light);
    font-size: 1rem;
}

.product-vendor strong {
    color: var(--primary);
    font-weight: 600;
}

/* ========================================
   PRICING SECTION
======================================== */

.pricing-section {
    background: rgba(47, 79, 111, 0.06);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
}

.price-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.current-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.compare-price {
    font-size: 1.2rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.discount-badge {
    background: #dc3545;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.personalization-price {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.total-price-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 2px solid var(--primary);
    font-size: 1.1rem;
}

.total-label {
    font-weight: 600;
    color: var(--text-dark);
}

.total-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

/* ========================================
   AVAILABILITY
======================================== */

.availability-section {
    padding: 1.5rem;
    background: var(--surface);
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
}

.availability {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
}

.availability.in-stock {
    color: #28a745;
}

.availability.out-of-stock {
    color: #dc3545;
}

.availability.checking {
    color: var(--text-light);
}

.availability-icon {
    font-size: 1.2rem;
}

/* ========================================
   VARIANT OPTIONS
======================================== */

.variant-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.variant-group {
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1.5rem;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.variant-label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.variant-options-grid {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.variant-option {
    padding: 0.8rem 1.5rem;
    border: 1.5px solid var(--border-subtle);
    border-radius: 24px;
    background: var(--surface);
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
    min-width: 80px;
    text-align: center;
}

.variant-option:hover {
    border-color: var(--primary);
    background: rgba(47, 79, 111, 0.08);
    transform: translateY(-2px);
}

.variant-option.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-soft);
}

.variant-option.unavailable {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8f9fa;
    color: var(--text-light);
}

.variant-option.unavailable:hover {
    transform: none;
    border-color: var(--border-subtle);
    background: #f8f9fa;
}

/* ========================================
   PERSONALIZATION PANEL
======================================== */

.personalization-panel {
    background: linear-gradient(135deg, rgba(226, 236, 245, 0.7) 0%, rgba(246, 248, 251, 0.92) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: 22px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.personalization-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(47, 79, 111, 0.14) 0%, transparent 70%);
    pointer-events: none;
}

/* Personalization Coming Soon */
.personalization-coming-soon {
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
    z-index: 2;
}

.coming-soon-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.personalization-coming-soon h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.personalization-coming-soon > p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.coming-soon-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(47, 79, 111, 0.08);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.feature-item span:not(.feature-icon) {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9rem;
}

.coming-soon-note {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
}

.panel-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.panel-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.panel-header p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.personalization-form {
    position: relative;
    z-index: 2;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.text-input-container {
    position: relative;
}

.text-input-container input {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--surface);
}

.text-input-container input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--focus-ring);
}

.char-count {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.char-count.warning {
    color: #ffc107;
    font-weight: 600;
}

.char-count.danger {
    color: #dc3545;
    font-weight: 700;
}

.input-help {
    color: var(--text-subtle);
    font-size: 0.8rem;
    margin-top: 0.3rem;
    display: block;
}

.form-group select {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    background: var(--surface);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--focus-ring);
}

.color-picker-container {
    position: relative;
}

.color-preview {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #ddd;
    background: #ffffff;
}

.position-selector {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.position-selector input[type="radio"] {
    display: none;
}

.position-option {
    flex: 1;
    min-width: 120px;
    padding: 1rem;
    border: 1.5px solid var(--border-subtle);
    border-radius: 14px;
    background: var(--surface);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.position-option:hover {
    border-color: var(--primary);
    background: rgba(47, 79, 111, 0.08);
    transform: translateY(-2px);
}

.position-selector input[type="radio"]:checked + .position-option {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-soft);
}

.position-icon {
    font-size: 1.5rem;
}

.personalization-preview {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--surface);
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
}

.personalization-preview h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.preview-container {
    background: var(--surface-alt);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1.5px dashed rgba(47, 79, 111, 0.25);
}

.preview-text {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.preview-info {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 1rem;
}

/* ========================================
   PURCHASE SECTION
======================================== */

.purchase-section {
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 2rem;
    background: white;
    box-shadow: var(--shadow-medium);
}

.quantity-selector {
    margin-bottom: 2rem;
}

.quantity-selector label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    overflow: hidden;
    width: fit-content;
    box-shadow: var(--shadow-soft);
}

.quantity-btn {
    background: var(--gradient-soft);
    border: none;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 700;
    color: var(--primary);
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.quantity-btn:hover {
    background: var(--gradient-primary);
    color: white;
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-input {
    border: none;
    width: 60px;
    height: 45px;
    text-align: center;
    font-weight: 600;
    color: var(--text-dark);
    background: transparent;
    font-size: 1.1rem;
}

.quantity-input:focus {
    outline: none;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.add-to-cart-btn,
.buy-now-btn {
    width: 100%;
    padding: 1.2rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
}

.add-to-cart-btn {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-soft);
}

.add-to-cart-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.add-to-cart-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.add-to-cart-btn:hover::before {
    left: 100%;
}

.buy-now-btn {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.buy-now-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--gradient-primary);
    transition: width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: -1;
}

.buy-now-btn:hover {
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

.buy-now-btn:hover::before {
    width: 100%;
}

.add-to-cart-btn:disabled,
.buy-now-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.add-to-cart-btn.loading .btn-text,
.add-to-cart-btn.loading .btn-icon {
    opacity: 0;
}

.add-to-cart-btn.loading .btn-loading {
    display: inline-block !important;
}

.btn-icon {
    font-size: 1.2rem;
}

.btn-loading {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   PRODUCT FEATURES
======================================== */

.product-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 2rem;
    background: rgba(47, 79, 111, 0.06);
    border-radius: 18px;
    border: 1px solid var(--border-subtle);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: 14px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-text {
    flex: 1;
}

.feature-text strong {
    display: block;
    color: var(--text-dark);
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.feature-text small {
    color: var(--text-light);
    font-size: 0.8rem;
}

/* ========================================
   PRODUCT DETAILS TABS
======================================== */

.product-details-tabs {
    background: var(--surface);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    margin-bottom: 4rem;
}

.tabs-container {
    width: 100%;
}

.tab-headers {
    display: flex;
    background: var(--gradient-soft);
    border-bottom: 1px solid var(--border-subtle);
}

.tab-header {
    flex: 1;
    padding: 1.5rem 2rem;
    background: none;
    border: none;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem;
}

.tab-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.tab-header:hover {
    color: var(--primary);
    background: rgba(47, 79, 111, 0.08);
}

.tab-header.active {
    color: var(--primary);
    background: var(--surface);
}

.tab-header.active::after {
    width: 80%;
}

.tab-content {
    padding: 2.5rem;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.description-content {
    line-height: 1.7;
    color: var(--text-dark);
}

.description-content h3 {
    color: var(--primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.description-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.description-content li {
    margin-bottom: 0.5rem;
}

.specifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(47, 79, 111, 0.06);
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
}

.spec-label {
    font-weight: 600;
    color: var(--text-dark);
}

.spec-value {
    color: var(--primary);
    font-weight: 500;
}

.care-instructions h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.care-instructions ul {
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.care-instructions li {
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.shipping-info h4 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.shipping-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.shipping-option {
    padding: 1.5rem;
    background: rgba(47, 79, 111, 0.06);
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    text-align: center;
    transition: all 0.3s ease;
}

.shipping-option:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.shipping-option.highlight {
    background: var(--gradient-soft);
    border-color: var(--primary);
}

.shipping-option strong {
    display: block;
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.shipping-option span {
    display: block;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.shipping-option span:last-child {
    color: var(--text-dark);
    font-weight: 600;
}

/* ========================================
   RELATED PRODUCTS
======================================== */

.related-products {
    background: linear-gradient(135deg, rgba(176, 196, 222, 0.03) 0%, rgba(95, 158, 160, 0.02) 100%);
    padding: 6rem 5%;
    margin-top: 2rem;
}

.related-content {
    max-width: 1400px;
    margin: 0 auto;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.related-product {
    background: var(--surface);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid var(--border-subtle);
}

.related-product:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.related-image {
    height: 200px;
    background: var(--gradient-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.related-image img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.related-product:hover .related-image img {
    transform: scale(1.1);
}

.related-info {
    padding: 1.5rem;
    text-align: center;
}

.related-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.related-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* ========================================
   IMAGE ZOOM MODAL
======================================== */

.image-zoom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-modal-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.zoom-modal-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
}

.zoom-close-btn {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.zoom-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.zoom-modal-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.zoom-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
}

.zoom-nav-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.zoom-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.zoom-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media (max-width: 1024px) {
    .product-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .product-gallery {
        position: static;
        order: 1;
    }

    .product-info {
        order: 2;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .tab-headers {
        flex-wrap: wrap;
    }

    .tab-header {
        flex: none;
        min-width: 50%;
    }
}

@media (max-width: 768px) {
    .product-detail {
        padding: 2rem 4%;
    }

    .product-title {
        font-size: 2rem;
    }

    .current-price {
        font-size: 1.6rem;
    }

    .action-buttons {
        flex-direction: column;
    }

    .add-to-cart-btn,
    .buy-now-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .product-features {
        grid-template-columns: 1fr;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .tab-headers {
        flex-direction: column;
    }

    .tab-header {
        min-width: 100%;
        text-align: center;
    }

    .tab-content {
        padding: 1.5rem;
    }

    .position-selector {
        flex-direction: column;
    }

    .position-option {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        padding: 1.5rem 4%;
    }

    .product-detail {
        padding: 1.5rem 4%;
    }

    .product-title {
        font-size: 1.8rem;
    }

    .pricing-section,
    .personalization-panel,
    .purchase-section {
        padding: 1.5rem;
    }

    .thumbnail-gallery {
        gap: 0.5rem;
    }

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

    .quantity-controls {
        width: 100%;
        justify-content: center;
    }

    .main-image-container {
        aspect-ratio: 0.8;
    }
}