    margin: 0;
    padding: 0;
    box-sizing: border-box;

    --primary-color: #b21117;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --border-color: #e2e8f0;
    --text-color: #334155;
    --text-light: #64748b;

/* Profile Page */
.profile-container {
    min-height: calc(100vh - 400px);
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.profile-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.profile-section {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    padding: 2rem;
    border: 2px solid var(--border-color);
    animation: fadeInUp 0.6s ease-out;
}

.profile-section:hover {
    box-shadow: 0 8px 24px rgba(220, 53, 69, 0.15);
    border-color: rgba(220, 53, 69, 0.3);
}

.section-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.profile-form label {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.profile-form input {
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    background: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.profile-form input:hover {
    border-color: rgba(220, 53, 69, 0.4);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.1);
    transform: translateY(-1px);
}

.profile-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1), 0 6px 16px rgba(220, 53, 69, 0.2);
    transform: translateY(-2px);
    background: linear-gradient(135deg, white 0%, #fef2f2 100%);
}

.profile-form input:disabled {
    background: var(--light-color);
    cursor: not-allowed;
    opacity: 0.7;
}

.form-actions {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

.quick-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quick-link-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: 0.5rem;
    border: 2px solid var(--border-color);
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease-out;
}

.quick-link-card:hover {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.05) 0%, rgba(220, 53, 69, 0.02) 100%);
    border-color: var(--primary-color);
    transform: translateX(10px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.15);
}

.quick-link-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.quick-link-content {
    flex: 1;
}

.quick-link-content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.quick-link-content p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

.quick-link-arrow {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    transition: transform 0.3s ease;
}

.quick-link-card:hover .quick-link-arrow {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .profile-section {
        padding: 1.5rem;
    }
    
    .quick-link-card {
        padding: 1rem;
        gap: 1rem;
    }
    
    .quick-link-icon {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
}

/* My Orders Page */
.my-orders-container {
    min-height: calc(100vh - 400px);
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.page-header {
    margin-bottom: 2rem;
    text-align: center;
    padding: 2rem 0;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--dark-color);
    transform: translateX(-5px);
}

.orders-content {
    max-width: 1200px;
    margin: 0 auto;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.order-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    animation: fadeInUp 0.5s ease-out;
}

.order-card:hover {
    box-shadow: 0 8px 24px rgba(220, 53, 69, 0.15);
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.order-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.order-date {
    color: var(--text-light);
    font-size: 0.875rem;
}

.order-body {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.order-items-preview p {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
}

.order-items-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.order-item-name {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: var(--light-color);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: var(--text-color);
}

.order-item-more {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: var(--primary-color);
    color: white;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.order-total {
    text-align: right;
}

.total-label {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

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

.order-footer {
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Order Detail Page */
.order-detail-container {
    min-height: calc(100vh - 400px);
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.order-detail-content {
    max-width: 1000px;
    margin: 0 auto;
}

.order-detail-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    padding: 2rem;
    border: 2px solid var(--border-color);
    animation: fadeInUp 0.6s ease-out;
}

.order-detail-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.order-detail-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.order-detail-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary-color);
}

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

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-label {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 600;
}

.info-value {
    font-size: 1rem;
    color: var(--dark-color);
    font-weight: 600;
}

.address-info {
    line-height: 1.8;
    color: var(--text-color);
}

.address-info p {
    margin-bottom: 0.5rem;
}

.order-items-table {
    overflow-x: auto;
}

.order-items-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.order-items-table th {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.order-items-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.order-items-table tr:last-child td {
    border-bottom: none;
}

.order-summary {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 2px solid var(--border-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--text-color);
}

.summary-row.total-row {
    padding-top: 1rem;
    border-top: 2px solid var(--border-color);
    margin-top: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-color);
}

.summary-row.total-row span:last-child {
    color: var(--dark-color);
    font-size: 1.5rem;
}

.loading-state {
    text-align: center;
    padding: 3rem;
}

.spinner {
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .order-body {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .order-total {
        text-align: left;
    }
    
    .order-info-grid {
        grid-template-columns: 1fr;
    }
    
    .order-detail-card {
        padding: 1rem;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
}

/* Product Details Tabs */
.product-details-tabs {
    margin-top: 3rem;
}

.tabs-header {
    display: flex;
    gap: 0;
    background: white;
    border-radius: 0.5rem 0.5rem 0 0;
    border-bottom: 2px solid var(--border-color);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.tab-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
}

.tab-button:hover {
    background: rgba(220, 53, 69, 0.05);
    color: var(--primary-color);
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: rgba(220, 53, 69, 0.05);
}

.tab-button span:first-child {
    font-size: 1.25rem;
}

.tabs-content {
    background: white;
    border-radius: 0 0 0.5rem 0.5rem;
    padding: 2rem;
    min-height: 400px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile: Tab buttons */
@media (max-width: 768px) {
    .tabs-header {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    
    .tab-button {
        min-width: 120px;
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
    
    .tab-button span:first-child {
        font-size: 1.1rem;
    }
    
    .tabs-content {
        padding: 1.5rem;
        min-height: 300px;
    }
}

/* Questions Section */
.questions-section {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.tab-panel .questions-section h2,
.tab-panel .reviews-section h2 {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.tab-panel .questions-section h2::after,
.tab-panel .reviews-section h2::after {
    display: none;
}

.questions-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 1rem;
}

.questions-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.question-item {
    transition: all 0.3s ease;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: white;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.question-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--secondary-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.question-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: var(--secondary-color);
}

.question-item:hover::before {
    transform: scaleY(1);
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.question-user-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.question-user-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
}

.question-date {
    color: var(--text-light);
    font-size: 0.875rem;
}

.question-content {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
}

.answer-content {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--success-color);
    background: rgba(16, 185, 129, 0.05);
    padding: 1rem;
    border-radius: 0.5rem;
}

.answer-content p {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.answer-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.answer-by {
    font-weight: 600;
    color: var(--success-color);
}

.question-form-container {
    margin-bottom: 3rem;
    animation: slideDown 0.3s ease;
}

.question-form-card {
    padding: 2rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    transition: box-shadow 0.3s ease;
}

.question-form-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.question-form-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

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

.question-form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    font-size: 0.95rem;
}

.question-form-textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s ease;
    min-height: 120px;
}

.question-form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.question-form-char-count {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    text-align: right;
}

.questions-empty {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-light);
}

.questions-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.questions-empty-text {
    font-size: 1.1rem;
    font-weight: 500;
}

.questions-loading {
    text-align: center;
    padding: 3rem 2rem;
}

.questions-error {
    text-align: center;
    padding: 2rem;
    color: var(--danger-color);
}

/* Product Description Section */
.product-description-section {
    margin-top: 0;
    padding-top: 0;
}

/* Mobile: Keep borders between sections */
@media (max-width: 1023px) {
    .product-details-sections {
        flex-direction: column;
    }
    
    .product-description-section {
        border-top: none;
        padding-top: 0;
        margin-top: 0;
    }
    
    .questions-section {
        border-top: 2px solid var(--border-color);
    padding-top: 3rem;
        margin-top: 0;
    }
    
    .reviews-section {
    border-top: 2px solid var(--border-color);
        padding-top: 3rem;
        margin-top: 0;
    }
}

/* Reviews Section */
.reviews-section {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

/* Mobile: Tab buttons */
@media (max-width: 768px) {
    .tabs-header {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    
    .tab-button {
        min-width: 120px;
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
    
    .tab-button span:first-child {
        font-size: 1.1rem;
    }
    
    .tabs-content {
        padding: 1.5rem;
    }
}

.reviews-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 1rem;
}

.reviews-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.review-item {
    transition: all 0.3s ease;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: white;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.review-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.review-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.review-item:hover::before {
    transform: scaleY(1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.review-user-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.review-user-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.review-verified-badge {
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
        opacity: 1;
    }
    50% {
        box-shadow: 0 2px 8px rgba(16, 185, 129, 0.5);
        opacity: 0.8;
    }
}

@keyframes stockPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.review-rating-stars {
    display: flex;
    gap: 0.125rem;
    font-size: 1rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.review-date {
    color: var(--text-light);
    font-size: 0.875rem;
    white-space: nowrap;
}

.review-comment {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 0.95rem;
    padding: 0.5rem 0;
}

.reviews-summary {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.reviews-summary-rating {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    text-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

.reviews-summary-stars {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.reviews-summary-stars-display {
    display: flex;
    gap: 0.25rem;
    font-size: 1.25rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.reviews-summary-count {
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Rating Input Styles */
.rating-input {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

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

.rating-input label.rating-star {
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    filter: grayscale(1);
    opacity: 0.4;
    position: relative;
    user-select: none;
}

.rating-input label.rating-star::before {
    content: '⭐';
    position: absolute;
    top: 0;
    left: 0;
    filter: grayscale(0);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.rating-input label.rating-star:hover,
.rating-input label.rating-star:hover ~ label.rating-star {
    filter: grayscale(0);
    opacity: 0.8;
    transform: scale(1.1);
}

.rating-input input[type="radio"]:checked ~ label.rating-star,
.rating-input input[type="radio"]:checked + label.rating-star {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.15);
}

.rating-input input[type="radio"]:checked ~ label.rating-star::before {
    opacity: 1;
}

/* Review Form Styles */
.review-form-container {
    margin-bottom: 3rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.review-form-card {
    padding: 2rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    transition: box-shadow 0.3s ease;
}

.review-form-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.review-form-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

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

.review-form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    font-size: 0.95rem;
}

.review-form-textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s ease;
    min-height: 120px;
}

.review-form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.review-form-char-count {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    text-align: right;
}

/* Empty Reviews State */
.reviews-empty {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-light);
}

.reviews-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.reviews-empty-text {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Loading State */
.reviews-loading {
    text-align: center;
    padding: 3rem 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .reviews-summary {
        flex-direction: column;
        text-align: center;
    }
    
    .reviews-summary-rating {
        font-size: 2.5rem;
    }
    
    .review-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .review-date {
        align-self: flex-start;
    }
    
    .rating-input label.rating-star {
        font-size: 1.75rem;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Top Bar */
.header-top {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    position: sticky;
    top: 0;
    z-index: 10004;
    transition: transform 0.3s ease;
    transform: translateY(0);
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top-left .phone-link {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.header-top-left .phone-link:hover {
    opacity: 0.8;
}

.currency-selector {
    position: relative;
    cursor: pointer;
    z-index: 10003;
}

.currency-label {
    color: white;
    padding: 0.25rem 0.5rem;
    display: inline-block;
}

.currency-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 0.25rem;
    min-width: 120px;
    display: none;
    z-index: 10003;
}

.currency-selector:hover .currency-dropdown {
    display: block;
}

.currency-dropdown a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: background 0.3s;
}

.currency-dropdown a:hover {
    background: rgba(220, 53, 69, 0.1);
}

/* Navigation */
.navbar {
    background: white;
    color: var(--dark-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 10000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: visible;
}

.navbar .container {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    position: relative;
    gap: 1.5rem;
    overflow: visible;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    padding: 0.5rem;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    order: 0 !important;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.9);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    order: 1 !important;
}

.nav-brand a {
    text-decoration: none;
}

.logo-image {
    width: 330px;
    height: 222px;
    max-width: 150px;
    height: auto;
    object-fit: contain;
    display: block;
}


.nav-brand a:hover .logo-image {
    opacity: 0.9;
}

/* Search Bar */
.nav-search {
    flex: 1;
    max-width: 600px;
    margin: 0 1rem;
    order: 2 !important;
}

.search-form {
    display: flex;
    gap: 0;
    width: 100%;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem 0 0 0.5rem;
    font-size: 0.95rem;
    outline: none;
    background: white;
}

.search-btn {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 0.5rem 0.5rem 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-btn:hover {
    background: #8d0e13;
    color: white;
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    position: relative;
    z-index: 10001;
    order: 3 !important;
    margin-left: auto !important;
}

/* Global Header Order Override - Applies to all pages */
.navbar .container > .menu-toggle {
    order: 0 !important;
}

.navbar .container > .nav-brand {
    order: 1 !important;
}

.navbar .container > .nav-search {
    order: 2 !important;
}

.navbar .container > .nav-actions {
    order: 3 !important;
    margin-left: auto !important;
}

.account-section {
    position: relative;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
}

.account-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(178, 17, 23, 0.1);
    border: 1px solid rgba(178, 17, 23, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
    filter: brightness(0) saturate(100%) invert(11%) sepia(100%) saturate(5000%) hue-rotate(350deg) brightness(0.7) contrast(1.15);
}

.account-section a .account-icon {
    /* When icon is inside a link, maintain styling */
    text-decoration: none;
}

.account-section:hover .account-icon,
.account-section a:hover .account-icon {
    background: rgba(178, 17, 23, 0.2);
    border-color: rgba(178, 17, 23, 0.4);
}

.account-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 0.5rem;
    min-width: 180px;
    display: none;
    z-index: 10002;
    padding: 0.5rem 0;
}

.account-dropdown.active {
    display: block;
}

.account-dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: background 0.3s;
    font-size: 0.9rem;
}

.account-dropdown a:hover {
    background: rgba(178, 17, 23, 0.1);
    color: var(--primary-color);
}

.cart-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    background: rgba(178, 17, 23, 0.1);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.cart-link:hover {
    background: rgba(178, 17, 23, 0.2);
}

.cart-icon {
    font-size: 1.25rem;
    filter: brightness(0) saturate(100%) invert(11%) sepia(100%) saturate(5000%) hue-rotate(350deg) brightness(0.7) contrast(1.15);
}

.cart-count {
    background: white;
    color: var(--primary-color);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Categories Menu */
.categories-menu {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10001;
    border-top: 2px solid var(--primary-color);
    margin-top: 0;
    width: 100%;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

/* Navbar sticky positioning is defined above - this section is for categories menu */

.categories-menu.active {
    display: block;
}

.categories-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.category-item {
    position: relative;
}

.category-link {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-right: 1px solid var(--border-color);
}

.category-item:last-child .category-link {
    border-right: none;
}

.category-link:hover {
    background: rgba(220, 53, 69, 0.1);
    color: var(--primary-color);
}

.category-item.has-submenu:hover .subcategories-menu {
    display: block;
}

.subcategories-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    min-width: 200px;
    display: none;
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    z-index: 1000;
}

.subcategories-menu li {
    margin: 0;
}

.subcategories-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.subcategories-menu a:hover {
    background: rgba(220, 53, 69, 0.1);
    color: var(--primary-color);
}

#user-name {
    color: var(--text-color);
    font-weight: 500;
    margin-right: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 0.375rem;
    display: inline-block;
}

#logout-btn,
#admin-link a {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    transition: all 0.3s ease;
}

#logout-btn:hover,
#admin-link a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

#auth-links {
    display: flex;
    gap: 0.5rem;
}

#auth-links a {
    padding: 0.5rem 1.25rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

#auth-links a:first-child {
    color: var(--text-color);
    background: transparent;
}

#auth-links a:first-child:hover {
    background: rgba(220, 53, 69, 0.1);
    color: var(--primary-color);
}

#auth-links a:last-child {
    background: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

#auth-links a:last-child:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #c82333 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::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-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #c82333 0%, var(--primary-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.5);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.btn-primary:disabled {
    background: var(--text-light);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #475569;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}


.btn-block {
    width: 100%;
    text-align: center;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #c82333 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.product-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    text-decoration: none;
    color: inherit;
}

/* Out of stock product styling */
.product-card.out-of-stock {
    opacity: 0.5;
    filter: grayscale(0.6);
    position: relative;
}

.product-card.out-of-stock:hover {
    transform: translateY(-2px);
    opacity: 0.6;
}

.product-card.out-of-stock .product-image {
    position: relative;
}

.out-of-stock-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.product-card.out-of-stock .product-info h3 {
    color: var(--text-light);
}

.product-card.out-of-stock .product-info .product-price {
    opacity: 0.7;
}

.product-card.out-of-stock .product-info .btn {
    background: var(--text-light);
    opacity: 0.7;
    cursor: not-allowed;
}

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 250px;
    overflow: hidden;
    background: var(--light-color);
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.6s ease-in-out;
    display: block;
}

.product-image.has-multiple-images {
    position: relative;
}

.product-image.has-multiple-images img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.product-image.has-multiple-images img.active {
    opacity: 1;
    position: relative;
    z-index: 1;
}

/* Favorite Button on Product Cards */

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    overflow: hidden;
}

/* Product Title Styling */
.product-info h3 {
    margin-bottom: 0.75rem;
    color: var(--dark-color);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    min-height: 2.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.product-card:hover .product-info h3 {
    color: var(--primary-color);
}

/* Product Summary Styling */
/* Product Summary - Sade görünüm için product-card içinde */
.product-card .product-info .product-summary {
    margin: 0.5rem 0;
    padding: 0;
    background: transparent;
    border-left: none;
    border-radius: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-light);
    font-weight: 400;
    transition: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card .product-info .product-summary:hover {
    background: transparent;
    transform: none;
    box-shadow: none;
}

/* Product Summary - Sade görünüm için product detail page */
/* OLD CSS - DISABLED
/* OLD CSS - DISABLED
.product-detail-container .product-summary {
    margin: 1rem 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border-left: none;
    transition: none;
    display: block;
    overflow: visible;
    text-overflow: clip;
    min-height: auto;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color);
    font-weight: 400;
}

.product-detail-container .product-summary:hover {
    background: transparent;
    transform: none;
    box-shadow: none;
}
*/

/* Product Price Styling */
.product-price {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 1.5rem;
    flex-wrap: wrap;
}

/* Product card içindeki fiyat için daha az boşluk */
.product-card .product-info .product-price {
    margin: 0.5rem 0;
    padding: 0;
    gap: 0.5rem;
}

.price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex: 1;
}

.whatsapp-price-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid #25D366;
    background: #25D366;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 1.75rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    flex-shrink: 0;
}

.whatsapp-price-btn i {
    color: white;
}

.whatsapp-price-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    background: #20BA5A;
    border-color: #20BA5A;
}

.whatsapp-price-btn:active {
    transform: translateY(-1px) scale(1.02);
}

@media (max-width: 768px) {
    .whatsapp-price-btn {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }

.old-price {
    font-size: 1.25rem;
    color: var(--text-light);
    text-decoration: line-through;
    position: relative;
    opacity: 0.7;
}

.old-price::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--danger-color);
    transform: rotate(-5deg);
}

.current-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    text-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
    letter-spacing: -0.5px;
    position: relative;
}

/* Ürün kartlarındaki fiyat stilleri */
.product-card .product-info .product-price {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin: 0.5rem 0;
    padding: 0;
}

.product-card .product-info .product-price .current-price,
.product-card .product-info .current-price {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--primary-color) !important;
    text-shadow: none !important;
    letter-spacing: 0 !important;
    position: relative !important;
}

.product-card .product-info .product-price .current-price::before {
    display: none !important;
}

.product-card .product-info .product-price .old-price,
.product-card .product-info .product-price .original-price {
    font-size: 0.875rem !important;
    color: var(--text-light) !important;
    text-decoration: line-through !important;
    opacity: 0.7 !important;
}

.product-card .product-info .product-price .discounted-price {
    color: var(--danger-color) !important;
}

/* Kategori ve ürün detay sayfasındaki fiyatları siyah yap */
/* OLD CSS - DISABLED - Using new .buybox and .price classes
/* Eski .product-detail-container class'ları kaldırıldı - artık .product kullanılıyor */
.product-card .product-info .product-price {
    color: #000000 !important;
    text-shadow: none;
}

.product-card .product-info .product-price .current-price,
.product-card .product-info .product-price .original-price,
.product-card .product-info .product-price .old-price {
    color: #000000 !important;
}

/* Eski .product-detail-container class'ları kaldırıldı - artık .product kullanılıyor */

.current-price::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 2px;
}

/* Button styling in product card */
.product-info .btn {
    margin-top: 0.5rem;
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
    font-weight: 600;
}

/* Section Styling */
section {
    padding: 3rem 0;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* Trending Products Section */
.trending-products {
    background: var(--light-color);
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
    min-height: 300px; /* Prevent layout shift while loading */
}

.category-card {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Product Detail */
.product-detail-page {
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: calc(100vh - 400px);
}


/* Loading skeleton for product detail */
.product-detail-skeleton {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    animation: pulse 1.5s ease-in-out infinite;
}

.product-detail-skeleton .skeleton-image {
    width: 100%;
    height: 500px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s ease-in-out infinite;
    border-radius: 1rem;
}

.product-detail-skeleton .skeleton-text {
    height: 1.5rem;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s ease-in-out infinite;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
}

@keyframes skeletonLoading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}


/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.carousel-indicators .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.6);
    position: relative;
}

.carousel-indicators .indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    background: white;
    transition: width 0.3s, height 0.3s;
}

.carousel-indicators .indicator.active {
    background: white;
    width: 14px;
    height: 14px;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.3);
}

.carousel-indicators .indicator.active::before {
    width: 6px;
    height: 6px;
    background: var(--primary-color);
}

.carousel-indicators .indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

/* Additional product detail enhancements */

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Product detail page specific enhancements */
.product-detail-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Add subtle animation to price change */
@keyframes priceHighlight {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.current-price.highlight {
    animation: priceHighlight 0.5s ease;
}

.image-thumbnails-container {
    margin-top: 1.5rem;
}

.image-thumbnails {
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem;
    overflow-x: auto;
    scrollbar-width: thin;
}

.image-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.image-thumbnails::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.image-thumbnails::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.image-thumbnails img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.image-thumbnails img:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 6px 16px rgba(178, 17, 23, 0.3);
    border-color: rgba(178, 17, 23, 0.5);
}

.image-thumbnails img.active {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(178, 17, 23, 0.4);
    transform: scale(1.1);
}

.image-thumbnails-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    width: 100%;
}

.image-thumbnails-slider-container {
    flex: 1;
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 456px; /* 4 images: (90px * 4) + (12px * 3 gaps) = 396px, add some padding */
}

.image-thumbnails-slider {
    display: flex;
    gap: 0.75rem;
    transition: transform 0.3s ease;
    will-change: transform;
    width: max-content;
}

.image-thumbnails-slider .thumbnail-slider-item {
    width: 90px;
    height: 90px;
    object-fit: cover;
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.image-thumbnails-slider .thumbnail-slider-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 6px 16px rgba(178, 17, 23, 0.3);
    border-color: rgba(178, 17, 23, 0.5);
}

.image-thumbnails-slider .thumbnail-slider-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(178, 17, 23, 0.4);
    transform: scale(1.1);
}

.thumbnail-slider-btn {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--dark-color);
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 1;
}

.thumbnail-slider-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.thumbnail-slider-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}



@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes priceHighlight {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.current-price.highlight {
    animation: priceHighlight 0.5s ease;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* ============================================
   PRODUCT DETAIL PAGE - MOBIL-FIRST REDESIGN
   ============================================ */

/* Base styles - Mobile First */
.product-detail-page {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

.product-detail-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}

/* Breadcrumb */
.breadcrumb-nav {
    padding: 1rem;
    margin-bottom: 1rem;
}

.breadcrumb-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    font-size: 0.875rem;
    align-items: center;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.breadcrumb-link {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-link:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    color: var(--text-light);
}

.breadcrumb-current {
    color: var(--text-color);
}

/* ============================================
   PRODUCT DETAIL PAGE - CLEAN VERSION
   ============================================ */

/* Product Detail Container - More specific selector for better reliability */
.product-detail-page #product-detail,
#product-detail {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* ============================================
   PRODUCT DETAIL PAGE - ORTAK STİLLER (Mobile & Desktop)
   ============================================ */

/* Product Layout - Base (Mobile First) - ONLY for old pages (NOT .product-detail-page) */
:not(.product-detail-page) .product,
:not(main.product-detail-page) .product {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    min-width: 0; /* Grid item'ların shrink olabilmesi için */
}

/* Gallery - Base (Mobile First) */
.gallery {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    min-width: 0;
}

/* Gallery Main - Base (Mobile & Desktop Ortak) */
/* Gallery Main - ONLY for old pages (not .product-detail-page) */
/* .product-detail-page .gallery__main is handled separately (line 6415+) */
#product-detail .gallery__main,
:not(.product-detail-page) .gallery__main {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #f5f5f5;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

#product-detail .gallery__main img,
:not(.product-detail-page) .gallery__main img {
    display: none;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

#product-detail .gallery__main img.active,
:not(.product-detail-page) .gallery__main img.active {
    display: block;
    z-index: 2;
    opacity: 1;
}

/* Favorite Button - ORTAK (Mobile & Desktop) */
.favorite-btn-icon {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--text-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.favorite-btn-icon:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.favorite-btn-icon:active {
    transform: scale(1.05) rotate(0deg);
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

.favorite-btn-icon.favorited {
    animation: pulse 0.6s ease;
}

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

.favorite-btn-icon:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.favorite-btn-icon.favorited {
    color: var(--danger-color);
}

.favorite-btn-icon.favorited i {
    font-weight: 900;
}

/* Carousel Buttons - ORTAK (Mobile & Desktop) */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(220, 53, 69, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.75rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover {
    background: white;
    box-shadow: 0 8px 24px rgba(220, 53, 69, 0.5);
    transform: translateY(-50%) scale(1.15);
    border-color: var(--primary-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
    transition: all 0.1s ease;
}

.carousel-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.3), 0 8px 24px rgba(220, 53, 69, 0.5);
}

.carousel-prev {
    left: 1rem;
}

.carousel-next {
    right: 1rem;
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 15;
}

.carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.carousel-indicator::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.3s, height 0.3s;
}

.carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.3);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.4);
}

.carousel-indicator:hover::before {
    width: 20px;
    height: 20px;
}

.carousel-indicator.active {
    background: rgba(255, 255, 255, 1);
    width: 24px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.5);
    animation: pulse-indicator 2s ease-in-out infinite;
}

@keyframes pulse-indicator {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(255, 255, 255, 0.5);
    }
    50% {
        box-shadow: 0 2px 12px rgba(255, 255, 255, 0.8);
    }
}

/* Gallery Thumbnails - ORTAK (Mobile & Desktop) */
.gallery__thumbs {
    margin-top: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
}

/* Thumbnail Slider - ORTAK (Mobile & Desktop) */
.thumbs-slider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.thumb-nav {
    background: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 36px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-color);
    flex-shrink: 0;
    transition: all 0.3s ease;
    z-index: 10;
}

.thumb-nav:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(178, 17, 23, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.thumb-nav:active {
    transform: scale(0.95);
    box-shadow: 0 2px 6px rgba(178, 17, 23, 0.3);
}

.thumb-nav:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(178, 17, 23, 0.2);
}

.thumb-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.thumbs-slider__container {
    flex: 1;
    overflow: hidden;
    position: relative;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.thumbs-slider__track {
    display: flex;
    gap: 10px;
    transition: transform 0.3s ease;
    width: max-content;
    box-sizing: border-box;
}

.thumb {
    padding: 0;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.9;
}

.thumb.is-active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(178, 17, 23, 0.2);
}

.thumb {
    position: relative;
}

.thumb::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    pointer-events: none;
}

.thumb:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 6px 16px rgba(178, 17, 23, 0.25);
    z-index: 5;
}

.thumb:hover::after {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(178, 17, 23, 0.1);
}

.thumb:hover img {
    opacity: 1;
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.thumb:active {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 3px 8px rgba(178, 17, 23, 0.2);
}

.thumb:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(178, 17, 23, 0.2);
}

/* Buybox - Base (Mobile & Desktop Ortak) */
.buybox {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.buybox__sticky {
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    padding: 18px;
}

.meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.badge {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.04);
    font-size: 12px;
    color: var(--text-color);
}

.rating {
    font-size: 13px;
    color: var(--text-color);
}

.muted {
    color: var(--muted, #9aa4b2);
}

.title {
    margin: 0;
    font-size: 24px;
    letter-spacing: 0.2px;
    font-weight: 700;
    color: var(--dark-color);
}

.subtitle {
    margin: 6px 0 14px;
    color: var(--muted, #9aa4b2);
    font-size: 14px;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 12px 0 16px;
}

.price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price__now {
    font-weight: 800;
    font-size: 28px;
    color: var(--text-color);
}

.price__old {
    color: var(--muted, #9aa4b2);
    text-decoration: line-through;
    font-size: 14px;
}

.chip {
    font-size: 12px;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted, #9aa4b2);
}

.variants {
    display: grid;
    gap: 14px;
    margin: 8px 0 16px;
}

.field {
    display: flex;
    flex-direction: column;
}

.label {
    display: block;
    font-size: 13px;
    color: var(--muted, #9aa4b2);
    margin-bottom: 8px;
}

.qty {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
}

.qty__btn {
    border: 0;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-color);
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.qty__btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(178, 17, 23, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.qty__btn:hover {
    background: rgba(178, 17, 23, 0.1);
    color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(178, 17, 23, 0.2);
}

.qty__btn:hover::before {
    width: 100px;
    height: 100px;
}

.qty__btn:active {
    transform: scale(0.95);
    box-shadow: 0 1px 4px rgba(178, 17, 23, 0.2);
}

.qty__btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(178, 17, 23, 0.2);
}

.qty__input {
    border: 0;
    background: transparent;
    color: var(--text-color);
    text-align: center;
    font-size: 14px;
    outline: none;
}

.cta {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 10px;
    margin: 12px 0 14px;
}

.btn {
    border-radius: 14px;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn--primary {
    border-color: rgba(79, 140, 255, 0.55);
    background: linear-gradient(180deg, rgba(79, 140, 255, 0.28), rgba(79, 140, 255, 0.14));
    color: var(--text-color);
}

.btn--primary:hover {
    filter: brightness(1.05);
}

/* Sepete Ekle butonu - Koyu Yeşil */
.cta .btn--primary,
.buybox .btn--primary,
#product-detail .btn--primary {
    background: linear-gradient(135deg, #0d5d2e 0%, #155724 100%) !important;
    color: white !important;
    border-color: #0d5d2e !important;
    box-shadow: 0 4px 12px rgba(13, 93, 46, 0.3) !important;
}

.cta .btn--primary:hover,
.buybox .btn--primary:hover,
#product-detail .btn--primary:hover {
    background: linear-gradient(135deg, #155724 0%, #0d5d2e 100%) !important;
    border-color: #155724 !important;
    box-shadow: 0 8px 20px rgba(13, 93, 46, 0.5) !important;
    transform: translateY(-3px) scale(1.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta .btn--primary:active,
.buybox .btn--primary:active,
#product-detail .btn--primary:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 12px rgba(13, 93, 46, 0.4) !important;
    transition: all 0.1s ease;
}

.cta .btn--primary:focus,
.buybox .btn--primary:focus,
#product-detail .btn--primary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 93, 46, 0.3), 0 8px 20px rgba(13, 93, 46, 0.5) !important;
}

.cta .btn--primary:disabled,
.buybox .btn--primary:disabled,
#product-detail .btn--primary:disabled {
    background: var(--text-light) !important;
    color: var(--text-color) !important;
    border-color: var(--border-color) !important;
    opacity: 0.6;
    cursor: not-allowed;
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn--ghost::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn--ghost:hover {
    background: rgba(37, 211, 102, 0.1);
    border-color: #25d366;
    color: #25d366;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.btn--ghost:hover::before {
    width: 300px;
    height: 300px;
}

.btn--ghost:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 6px rgba(37, 211, 102, 0.2);
}

.btn--ghost:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.2);
}

.bullets {
    margin: 0;
    padding-left: 18px;
    color: var(--muted, #9aa4b2);
    font-size: 13px;
}

.bullets li {
    margin: 6px 0;
}

.divider {
    height: 1px;
    background: var(--border-color);
    margin: 14px 0;
}

.trust {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    color: var(--muted, #9aa4b2);
    font-size: 13px;
}

.trust__item {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
}

.share-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.share-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.share-btn {
    background: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-color);
    font-size: 1.125rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.share-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(178, 17, 23, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.share-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px) scale(1.1) rotate(5deg);
    box-shadow: 0 6px 16px rgba(178, 17, 23, 0.3);
}

.share-btn:hover::before {
    width: 200px;
    height: 200px;
}

.share-btn:active {
    transform: translateY(-1px) scale(1.05) rotate(0deg);
    box-shadow: 0 3px 8px rgba(178, 17, 23, 0.3);
}

.share-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(178, 17, 23, 0.2);
}

/* Desktop Styles */
@media (min-width: 769px) {
    /* Product detail wrapper - ONLY for old pages (NOT .product-detail-page) */
    :not(.product-detail-page) .product-detail-wrapper,
    :not(main.product-detail-page) .product-detail-wrapper {
        max-width: 1200px !important; /* Zorunlu - container genişliğini sınırla */
        margin: 0 auto;
        padding: 2rem 1rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Product Detail Container - Desktop: Wrapper olarak görünmesin */
    .product-detail-page #product-detail,
    #product-detail {
        display: contents !important; /* İçeriği doğrudan parent'a aktar */
        width: auto !important;
        max-width: none !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        background: none !important;
    }

    .breadcrumb-nav {
        padding: 1rem 0;
        margin-bottom: 1rem;
    }

    .breadcrumb-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* ============================================
       PRODUCT DETAIL PAGE - DESKTOP STİLLER (min-width: 769px)
       ============================================ */
    
    /* Product Layout - Desktop: 2 sütun (ONLY for old pages, NOT .product-detail-page) */
    :not(.product-detail-page) .product {
        display: grid !important; /* Açıkça belirt - zorunlu */
        grid-template-columns: 1fr 1fr !important; /* 50-50 split - zorunlu */
        gap: 2rem;
        align-items: start;
        padding: 2rem 0;
        min-width: 0; /* Grid container'ın shrink olabilmesi için */
        max-width: 100%; /* Container'dan taşmasın */
        width: 100%; /* Container genişliğini kullan */
        box-sizing: border-box; /* Padding dahil hesapla */
    }

    /* Gallery - Desktop: Sol sütun (%50) */
    .gallery {
        min-width: 0 !important; /* Grid item'ın shrink olabilmesi için */
        max-width: 100% !important; /* Grid içinde %50'yi aşmasın */
        width: 100% !important; /* Grid item olarak %50 genişlik */
        box-sizing: border-box !important;
    }
    
    /* Gallery içindeki tüm elementler container içinde kalmalı */
    .gallery * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Carousel butonları ve indicator'lar position: absolute olduğu için max-width: none */
    .gallery .carousel-btn,
    .gallery .carousel-indicators {
        max-width: none;
    }
    
    /* Buybox - Desktop: Sağ sütun (%50) */
    .buybox {
        min-width: 0 !important; /* Grid item'ın shrink olabilmesi için */
        max-width: 100% !important; /* Grid içinde %50'yi aşmasın */
        width: 100% !important; /* Grid item olarak %50 genişlik */
        box-sizing: border-box !important;
    }

    /* Gallery Main - Desktop: Max height sınırı ve full width */
    /* Desktop gallery - ONLY for old pages (not .product-detail-page) */
    /* .product-detail-page .gallery__main is handled by rules below (line 6412+) */
    
    /* For old product detail pages (mobile page structure) */
    #product-detail .gallery__main {
        max-height: 600px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
    
    #product-detail .gallery__main img {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        object-fit: cover !important;
        display: none !important;
    }
    
    #product-detail .gallery__main img.active {
        display: block !important;
        z-index: 2 !important;
    }

    /* Buybox Sticky - Desktop: Sticky positioning */
    .buybox__sticky {
        position: sticky;
        top: 86px;
    }

    /* Typography - Desktop: Daha büyük fontlar */
    .title {
        font-size: 28px;
    }

    .price__now {
        font-size: 32px;
    }

    /* CTA Buttons - Desktop: 2 sütun */
    .cta {
        grid-template-columns: 1.4fr 1fr;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
    }
}

    /* ============================================
       PRODUCT DETAIL PAGE - MOBILE STİLLER (max-width: 768px)
       ============================================ */
    
    /* Product Layout - Mobile: Tek sütun (zaten base'de var, sadece padding ayarı) */
    .product {
        padding: 1rem;
    }

    /* Gallery Main - Mobile: Min height (ONLY for old pages) */
    #product-detail .gallery__main,
    :not(.product-detail-page) .gallery__main {
        min-height: 300px;
    }

    /* CTA Buttons - Mobile: Tek sütun */
    .cta {
        grid-template-columns: 1fr;
    }

    /* Thumbnail Slider - Mobile: Full width, horizontal scroll */
    .gallery__thumbs {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .thumbs-slider {
        width: 100%;
        max-width: 100%;
        gap: 0.5rem;
        overflow: hidden;
        box-sizing: border-box;
    }
    
    .thumb-nav {
        width: 32px;
        height: 100px;
        font-size: 1.25rem;
        flex-shrink: 0;
    }
    
    .thumbs-slider__container {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
        box-sizing: border-box;
    }
    
    .thumbs-slider__track {
        max-width: none;
    }
    
    .thumb {
        width: 100px;
        height: 100px;
        flex-shrink: 0;
        box-sizing: border-box;
    }
}

.image-thumbnail:hover,
.image-thumbnail.active {
    border-color: var(--primary-color);
}

/* Thumbnail Slider */
.image-thumbnails-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    max-width: 100%;
    overflow: hidden;
}

.thumbnail-slider-btn {
    background: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--text-color);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.thumbnail-slider-btn:hover {
    background: var(--primary-color);
    color: white;
}

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

.image-thumbnails-slider-container {
    flex: 1;
    overflow: hidden;
    max-width: 100%;
}

.image-thumbnails-slider {
    display: flex;
    gap: 0.5rem;
    transition: transform 0.3s ease;
    max-width: 100%;
}

.thumbnail-slider-item {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border: 2px solid transparent;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f5f5f5;
    flex-shrink: 0;
    box-sizing: border-box;
}

.thumbnail-slider-item:hover,
.thumbnail-slider-item.active {
    border-color: var(--primary-color);
}


/* Campaign Badge - OLD, using .badge now
.campaign-badge {
    display: inline-block;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--danger-color) 0%, rgba(220, 53, 69, 0.8) 100%);
    color: white;
    border-radius: 0.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}
*/

/* Product Price - OLD, using .price-row and .price now
.product-price {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--light-color);
    border-radius: 0.5rem;
    flex-wrap: wrap;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
    max-width: 100%;
    box-sizing: border-box;
}

.current-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: #000000;
}

.original-price,
.old-price {
    font-size: 1.1rem;
    color: #000000;
    text-decoration: line-through;
    opacity: 0.6;
}

.whatsapp-price-btn {
    background: #25D366;
    border: none;
    border-radius: 0.5rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-sizing: border-box;
}

.whatsapp-price-btn:hover {
    background: #128C7E;
    transform: scale(1.05);
}

/* Product Summary */
.product-summary {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: var(--light-color);
    border-radius: 0.75rem;
    border-left: 4px solid var(--success-color);
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    word-wrap: break-word;
    word-break: break-word;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.product-short-description {
    margin: 0;
    font-weight: 500;
    color: var(--text-color);
    font-size: 1.125rem;
    line-height: 1.7;
    word-wrap: break-word;
    word-break: break-word;
}

/* Product Actions */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--border-color);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.5rem;
}

.quantity-selector label {
    font-size: 0.9rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.quantity-selector input {
    width: 80px;
    max-width: 100px;
    padding: 0.75rem 0.5rem;
    box-sizing: border-box;
    flex-shrink: 1;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
}

.btn-large {
    width: 100%;
    max-width: 100%;
    padding: 0.875rem 1.5rem;
    box-sizing: border-box;
    font-size: 1rem;
}

/* Product Share Section */
.product-share-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.product-share-section > div {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: 100%;
    box-sizing: border-box;
}

.product-share-section span {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.share-buttons,
.share-buttons-modern {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.share-btn {
    background: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-color);
    font-size: 1.125rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-sizing: border-box;
}

.share-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}
*/

/* Product Details Tabs */
.product-details-tabs {
    margin-top: 2rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.tabs-header {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tabs-header::-webkit-scrollbar {
    display: none;
}

.tab-button {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-color);
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.tab-button:hover {
    color: var(--primary-color);
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 600;
}

.tab-panel {
    display: none;
    padding: 1.5rem 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

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

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

/* Related Products */
.related-products-sections {
    margin-top: 3rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.related-products-section {
    margin-bottom: 3rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.product-card {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.product-card .product-image {
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
    background: #f5f5f5;
}

.product-card .product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.5rem;
    box-sizing: border-box;
}

.product-card .product-info {
    padding: 1rem;
    box-sizing: border-box;
}

.product-card .product-name {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-wrap: break-word;
    word-break: break-word;
}

.product-card .product-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* DUPLICATE DESKTOP STYLES - REMOVED (using the one at line 3314) */

.product-summary {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: var(--light-color);
    border-radius: 0.75rem;
    border-left: 4px solid var(--success-color);
    transition: all 0.3s ease;
}

.product-summary:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(16, 185, 129, 0.02) 100%);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.product-short-description {
    margin: 0;
    font-weight: 500;
    color: var(--text-color);
    font-size: 1.125rem;
    line-height: 1.7;
}

.product-description-full {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    width: 100%;
    animation: none;
    border-top: none;
    position: relative;
    overflow: visible;
}

.tab-panel .product-description-full {
    padding: 0;
    margin: 0;
}

.product-description-full::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

.product-description-full h2 {
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: 1.75rem;
    font-weight: 700;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.75rem;
    position: relative;
    display: inline-block;
}

.product-description-full h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

.product-description {
    margin: 1.5rem 0;
    color: var(--text-color);
    line-height: 2;
    width: 100%;
    font-size: 1.05rem;
    animation: fadeIn 0.8s ease-out 0.6s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.product-description p {
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.product-description p:hover {
    color: var(--dark-color);
}

.product-description ul,
.product-description ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.product-description li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 0.5rem;
    transition: transform 0.2s ease;
}

.product-description li:hover {
    transform: translateX(5px);
    color: var(--primary-color);
}

.product-description li::marker {
    color: var(--primary-color);
}

.product-description strong {
    color: var(--dark-color);
    font-weight: 700;
    background: linear-gradient(135deg, transparent 0%, rgba(220, 53, 69, 0.1) 50%, transparent 100%);
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
}

/* Styled Product Description Content */
.product-description-content {
    line-height: 1.8;
    color: var(--text-color);
}

.product-description-content .description-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.product-description-content .description-section:last-child {
    border-bottom: none;
}

.product-description-content .description-section h2 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.product-description-content .feature-block {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-description-content .feature-block:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-description-content .feature-block h3 {
    font-size: 1.25rem;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.product-description-content .feature-block p {
    margin-bottom: 0.5rem;
    color: var(--text-color);
    line-height: 1.7;
}

.product-description-content .feature-block .note {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 0.25rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.product-description-content .feature-block .note a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.product-description-content .feature-block .note a:hover {
    text-decoration: underline;
}

.product-description-content .specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.product-description-content .spec-category {
    padding: 1.25rem;
    background: var(--light-color);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.product-description-content .spec-category h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

.product-description-content .spec-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-description-content .spec-category ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 0.9rem;
    color: var(--text-color);
}

.product-description-content .spec-category ul li:last-child {
    border-bottom: none;
}

.product-description-content .spec-category ul li::before {
    content: "✓ ";
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Responsive adjustments for product description */
@media (max-width: 768px) {
    .product-description-content .description-section h2 {
        font-size: 1.5rem;
    }

    .product-description-content .feature-block {
        padding: 1rem;
    }

    .product-description-content .feature-block h3 {
        font-size: 1.1rem;
    }

    .product-description-content .specs-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive adjustments for product cards */
@media (max-width: 768px) {
    .product-info {
        padding: 1.25rem;
    }

    .product-info h3 {
        font-size: 1rem;
        min-height: 2.4rem;
    }

    .product-summary {
        font-size: 0.85rem;
        min-height: 3.5rem;
        -webkit-line-clamp: 2;
    }

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

    .old-price {
        font-size: 0.9rem;
    }

    .breadcrumb-list {
        font-size: 0.85rem;
        flex-wrap: nowrap;
    }

    .subcategories-section {
        padding: 1rem;
    }

    .subcategories-section h2 {
        font-size: 1.1rem;
    }

    .subcategory-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

.specifications {
    margin: 2rem 0;
}

.specifications ul {
    list-style: none;
    padding: 0;
}

.specifications li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

/* Product Actions - Enhanced for product detail page */
.product-detail-container .product-actions {
    margin: 2.5rem 0;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
    padding: 1.5rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

/* Ürün detay sayfasındaki Sepete Ekle butonunu koyu yeşil yap */
.product-detail-container .product-actions .btn-primary,
.product-detail-container .btn-primary {
    background: linear-gradient(135deg, #0d5d2e 0%, #155724 100%) !important;
    box-shadow: 0 4px 12px rgba(13, 93, 46, 0.3) !important;
}

.product-detail-container .product-actions .btn-primary:hover,
.product-detail-container .btn-primary:hover {
    background: linear-gradient(135deg, #155724 0%, #0d5d2e 100%) !important;
    box-shadow: 0 8px 20px rgba(13, 93, 46, 0.5) !important;
}

.product-detail-container .product-actions:hover {
    box-shadow: 0 6px 24px rgba(220, 53, 69, 0.15);
    border-color: rgba(220, 53, 69, 0.3);
    transform: translateY(-2px);
}

.product-detail-container .quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: var(--light-color);
    border-radius: 0.5rem;
    margin-bottom: 0;
}

.product-detail-container .quantity-selector label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.product-detail-container .quantity-selector input {
    width: 90px;
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    background: white;
    margin-left: 0;
}

.product-detail-container .quantity-selector input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
    transform: scale(1.05);
}

.product-detail-container .stock-info {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-radius: 0.5rem;
    color: var(--success-color);
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-left: 4px solid var(--success-color);
    animation: stockPulse 2s ease-in-out infinite;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
    transition: all 0.3s ease;
}

.product-detail-container .stock-info:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.product-detail-container .stock-info::before {
    content: '✓';
    font-size: 1.25rem;
    animation: checkmarkPulse 1.5s ease-in-out infinite;
}

@keyframes checkmarkPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Cart */
.cart-page {
    padding: 2rem 0;
}

/* Cart Mobile Overflow Fixes */
@media (max-width: 768px) {
    .cart-page {
        padding: 1rem 0;
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    .cart-page .container {
        padding: 0 1rem !important;
        max-width: 100vw !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    
    #cart-main-content {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    
    #cart-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .checkout-sidebar {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .cart-summary,
    .cart-summary-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
    }
    
    #cart-content {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    
    .cart-item-info {
        flex-wrap: wrap !important;
        max-width: 100% !important;
    }
    
    .cart-item-info img {
        max-width: 100% !important;
        height: auto !important;
    }
}

.cart-table {
    width: 100%;
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cart-table th,
.cart-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-item-info img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.25rem;
}

/* Sepet sayfasındaki ürün adlarını siyah yap */
.cart-table .cart-item-info a,
.cart-table .cart-item-info h4 a,
.cart-table a {
    color: #000000 !important;
    text-decoration: none;
}

.cart-table .cart-item-info a:hover,
.cart-table .cart-item-info h4 a:hover,
.cart-table a:hover {
    color: #000000 !important;
    text-decoration: underline;
}

.quantity-input {
    width: 60px;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
}

.cart-summary {
    margin-top: 2rem;
}

.cart-summary-card {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    max-width: 400px;
    margin-left: auto;
    border: 1px solid var(--border-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

.summary-row.total {
    font-size: 1.25rem;
    font-weight: 700;
    border-bottom: none;
    border-top: 2px solid var(--primary-color);
    margin-top: 0.5rem;
    padding-top: 1rem;
    padding-bottom: 0;
}

.summary-row.total span:first-child {
    color: var(--dark-color);
    font-size: 1.125rem;
}

.summary-row.total span:last-child {
    color: var(--dark-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.free-shipping-info {
    transition: all 0.3s ease;
}

.free-shipping-info:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

/* My Questions Page */
.my-questions-page {
    min-height: calc(100vh - 400px);
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.my-questions-page .page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.my-questions-page .page-header h1 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.my-questions-page .page-header p {
    color: var(--text-light);
    font-size: 1rem;
}

.questions-container {
    max-width: 1000px;
    margin: 0 auto;
}

.question-card {
    transition: all 0.3s ease;
}

.question-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* Koyu yeşil checkout butonları için hover efekti */
#checkout-btn:hover {
    background: linear-gradient(135deg, #15803d 0%, #166534 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(22, 101, 52, 0.4) !important;
}

#checkout-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(22, 101, 52, 0.3) !important;
}

/* Empty Cart Styles */
.empty-cart-container {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .empty-cart-container {
        padding: 3rem 1.5rem !important;
    }
    
    .empty-cart-container h2 {
        font-size: 1.5rem !important;
    }
}

/* Share Buttons Styles - Simple Gray Icons */
.share-buttons-modern {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.share-buttons-modern .share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6B7280;
    font-size: 1.25rem;
}

.share-buttons-modern .share-btn i {
    color: #6B7280;
    transition: color 0.3s ease;
}

.share-buttons-modern .share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #9CA3AF;
}

.share-buttons-modern .share-btn:hover i {
    color: #4B5563;
}

.share-buttons-modern .share-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .share-buttons-modern {
        gap: 0.5rem;
    }
    
    .share-buttons-modern .share-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* Hero Slider Styles */
.hero-slider-section {
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    margin-bottom: 3rem;
    display: block;
    visibility: visible;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.slider-loading {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-slider {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    min-height: 400px;
    display: block;
    visibility: visible;
}

.slider-wrapper {
    position: relative;
    width: 100%;
}

.slider-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 400px;
    max-height: 500px;
    overflow: hidden;
}

.slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.slider-slide.active {
    opacity: 1;
    z-index: 2;
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 10;
    pointer-events: none;
}

.slider-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    pointer-events: all;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.slider-btn:active {
    transform: scale(0.95);
}

.slider-prev {
    left: 1rem;
}

.slider-next {
    right: 1rem;
}

.slider-indicators {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.slider-indicators .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.slider-indicators .indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.slider-indicators .indicator.active {
    background: white;
    width: 32px;
    border-radius: 6px;
}

@media (max-width: 768px) {
    .slider-container {
        height: 400px;
    }
    
    .slide-content {
        padding: 2rem 1.5rem !important;
        min-height: 400px !important;
    }
    
    .slide-info {
        max-width: 100% !important;
        padding: 1.25rem !important;
    }
    
    .slide-info h2 {
        font-size: 1.5rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .slide-info p {
        font-size: 0.9rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .slider-controls {
        padding: 0 0.5rem;
    }
}

/* Auth Pages */
.auth-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.auth-card {
    background: white;
    padding: 3rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.auth-card h1 {
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary-color);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Form Input and Select Styles */
.form-input,
.form-select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.form-input:hover,
.form-select:hover {
    border-color: rgba(220, 53, 69, 0.4);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.1);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1), 0 4px 12px rgba(220, 53, 69, 0.15);
    transform: translateY(-1px);
}

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

/* Credit Card Form Specific Styles */
#credit-card-form {
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    margin-top: 1.5rem;
}

#credit-card-form .form-group {
    margin-bottom: 1.25rem;
}

#credit-card-form .form-group:last-child {
    margin-bottom: 0;
}

.auth-link {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-light);
}

.auth-link a {
    color: var(--primary-color);
    text-decoration: none;
}

.error-message {
    background: #fee2e2;
    color: var(--danger-color);
    padding: 1rem;
    border-radius: 0.25rem;
    margin-top: 1rem;
}

/* Products Page */
.products-page {
    padding: 2rem 0;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 1.5rem;
    padding: 0.75rem 0;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-list a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-list a:hover {
    color: var(--primary-color);
}

.breadcrumb-list .separator {
    color: var(--text-light);
    margin: 0 0.25rem;
}

.breadcrumb-list li:last-child {
    color: var(--text-color);
    font-weight: 500;
}

/* Subcategories Section */
.subcategories-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.subcategories-section h2 {
    font-size: 1.25rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.subcategories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.subcategory-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--light-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 0.5rem;
    border: 2px solid var(--border-color);
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.subcategory-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.2);
}

.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.filters select,
.filters input {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    font-size: 1rem;
}

.filters input {
    flex: 1;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* Loading indicator for infinite scroll */
.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    margin: 2rem 0;
    grid-column: 1 / -1;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-indicator p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* End message for infinite scroll */
.end-message {
    text-align: center;
    padding: 2rem;
    margin: 2rem 0;
    grid-column: 1 / -1;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Notification System */
.notification-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 400px;
    width: 100%;
    pointer-events: none;
}

.notification {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    pointer-events: auto;
    border-left: 4px solid var(--primary-color);
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    width: 100%;
}

.notification-icon {
    font-size: 1.25rem;
    font-weight: bold;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.1);
    color: var(--primary-color);
}

.notification-message {
    flex: 1;
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
    line-height: 1;
}

.notification-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-color);
}

/* Notification Types */
.notification-success {
    border-left-color: var(--success-color);
}

.notification-success .notification-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.notification-error {
    border-left-color: var(--danger-color);
}

.notification-error .notification-icon {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.notification-warning {
    border-left-color: var(--warning-color);
}

.notification-warning .notification-icon {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.notification-info {
    border-left-color: var(--secondary-color);
}

.notification-info .notification-icon {
    background: rgba(100, 116, 139, 0.1);
    color: var(--secondary-color);
}

/* Responsive notifications */
@media (max-width: 768px) {
    .notification-container {
        top: 0.5rem;
        right: 0.5rem;
        left: 0.5rem;
        max-width: 100%;
    }

    .notification {
        padding: 0.875rem 1rem;
    }

    .notification-message {
        font-size: 0.9rem;
    }
}

/* Cart Popup */
.cart-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cart-popup.active {
    display: flex;
}

.cart-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.cart-popup-content {
    position: relative;
    background: white;
    border-radius: 1rem;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 100001;
    animation: cartPopupSlideIn 0.3s ease-out;
}

@keyframes cartPopupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cart-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-color);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.cart-popup-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--primary-color);
}

.cart-popup-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.cart-popup-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
}

.cart-popup-product {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.cart-popup-product-left {
    flex-shrink: 0;
}

.cart-popup-product-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.cart-popup-product-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-popup-product-right h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0 0 0.5rem 0;
}

.cart-popup-product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 1rem 0;
}

.cart-popup-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cart-popup-buttons .btn {
    flex: 1;
    min-width: 150px;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.cart-popup-buttons .btn-secondary {
    background: white;
    color: var(--dark-color);
    border: 2px solid var(--border-color);
}

.cart-popup-buttons .btn-secondary:hover {
    background: var(--light-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.cart-popup-buttons .btn-primary {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.cart-popup-buttons .btn-primary:hover {
    background: #8d0e13;
    border-color: #8d0e13;
}

.cart-popup-related {
    padding: 2rem;
}

.cart-popup-related h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0 0 1.5rem 0;
}

.cart-popup-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.cart-popup-related-item {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.cart-popup-related-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

/* Mobile Cart Popup Styles */
@media (max-width: 768px) {
    .cart-popup {
        padding: 0.5rem;
    }
    
    .cart-popup-content {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 0.75rem;
        padding: 0;
    }
    
    .cart-popup-header {
        padding: 1.5rem 1rem 1rem;
    }
    
    .cart-popup-header h3 {
        font-size: 1.25rem;
    }
    
    .cart-popup-product {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem 1rem;
    }
    
    .cart-popup-product-left {
        align-self: center;
    }
    
    .cart-popup-product-img {
        width: 100px;
        height: 100px;
    }
    
    .cart-popup-product-right {
        text-align: center;
    }
    
    .cart-popup-product-right h4 {
        font-size: 1.125rem;
        text-align: center;
    }
    
    .cart-popup-product-price {
        font-size: 1.25rem;
        text-align: center;
    }
    
    .cart-popup-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .cart-popup-buttons .btn {
        width: 100%;
        min-width: auto;
    }
    
    .cart-popup-related {
        padding: 1.5rem 1rem;
    }
    
    .cart-popup-related h4 {
        font-size: 1.125rem;
    }
    
    .cart-popup-related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .cart-popup-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 36px;
        height: 36px;
        font-size: 1.75rem;
    }
}

.cart-popup-related-item-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 120px;
    object-fit: cover;
    background: var(--light-color);
}

.cart-popup-related-item-info {
    padding: 0.75rem;
}

.cart-popup-related-item-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0 0 0.5rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-popup-related-item-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

@media (max-width: 768px) {
    .cart-popup-content {
        max-width: 100%;
        max-height: 95vh;
    }

    .cart-popup-product {
        flex-direction: column;
        gap: 1rem;
    }

    .cart-popup-product-img {
        width: 100%;
        height: 200px;
    }

    .cart-popup-buttons {
        flex-direction: column;
    }

    .cart-popup-buttons .btn {
        width: 100%;
    }

    .cart-popup-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top:hover {
    background: #c82333;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top span {
    line-height: 1;
    font-weight: bold;
}

/* Responsive scroll to top button */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-brand {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    height: 60px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    display: inline-block;
    aspect-ratio: 4 / 1;
    filter: brightness(0) invert(1); /* Makes the logo white */
    transition: opacity 0.3s ease;
}

.footer-brand a:hover .footer-logo {
    opacity: 0.8;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.contact-info {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.8;
}

.contact-info p {
    margin-bottom: 1rem;
}

.contact-info strong {
    color: white;
    display: block;
    margin-bottom: 0.25rem;
}

.contact-info a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    /* Prevent horizontal overflow on mobile */
    body, html {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    main.product-detail-page {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    .product-detail-page {
        padding: 1rem 0;
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    .product-detail-page .container {
        padding: 0 !important;
        max-width: 100vw !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        text-align: left !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Mobile Product Detail - Nested structure safe */
    .product-detail-page #product-detail,
    #product-detail {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        position: relative !important;
        left: 0 !important;
        right: auto !important;
        transform: translateX(0) !important;
        text-align: left !important;
        float: none !important;
        display: block !important;
    }


    .carousel-btn {
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
    }

    .carousel-prev {
        left: 0.5rem;
    }

    .carousel-next {
        right: 0.5rem;
    }

    .carousel-indicators {
        bottom: 0.5rem;
    }

    .carousel-indicators .indicator {
        width: 10px;
        height: 10px;
    }

    .carousel-indicators .indicator.active {
        width: 12px;
        height: 12px;
    }

    .image-thumbnails {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
        gap: 0.5rem;
    }

    .image-thumbnails-slider-container {
        max-width: 316px; /* 4 images: (70px * 4) + (12px * 3 gaps) = 316px */
    }

    .image-thumbnails img,
    .image-thumbnails-slider .thumbnail-slider-item {
        width: 70px;
        height: 70px;
    }

    .thumbnail-slider-btn {
        width: 35px;
        height: 35px;
        font-size: 1.25rem;
    }

    .image-thumbnails img,
    .image-thumbnails-slider .thumbnail-slider-item {
        width: 70px;
        height: 70px;
    }

    .thumbnail-slider-btn {
        width: 35px;
        height: 35px;
        font-size: 1.25rem;
    }

    .product-description-full {
        padding: 1.5rem;
    }

    .image-thumbnails img {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .filters {
        flex-direction: column;
    }

    .header-top {
        font-size: 0.75rem;
        padding: 0.4rem 0;
    }

    .navbar .container {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .navbar .container > .nav-brand {
        order: 1 !important;
        flex-shrink: 0 !important;
        margin-right: auto !important;
    }

    .navbar .container > .nav-brand .logo-image {
        width: 330px !important;
        height: auto !important;
        max-width: 150px !important;
    }

    .navbar .container > .nav-actions {
        order: 2 !important;
        margin-left: 0 !important;
        flex-shrink: 0 !important;
    }

    .navbar .container > .nav-search {
        order: 3 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0.5rem 0 0 0 !important;
        flex-basis: 100% !important;
    }

    .categories-menu {
        position: sticky;
        top: 0;
    }

    .categories-list {
        flex-direction: column;
    }

    .category-link {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .category-item:last-child .category-link {
        border-bottom: none;
    }

    .subcategories-menu {
        position: relative;
        box-shadow: none;
        background: rgba(220, 53, 69, 0.05);
        margin-left: 1rem;
    }

    .account-dropdown {
        right: auto;
        left: 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-section {
        text-align: center;
    }

    /* Content Pages */
    .content-page {
        padding: 1.5rem !important;
    }

    .content-page h1 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    .content-page h2 {
        font-size: 1.25rem;
        margin-top: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .content-page ul,
    .content-page ol {
        padding-left: 1.5rem;
    }
}

/* Campaign Styles */
.campaign-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--danger-color) 0%, #dc2626 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.campaign-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, #dc2626 100%);
    color: white;
    padding: 2rem;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.campaign-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

.campaign-banner h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.campaign-banner p {
    margin: 0;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.discounted-price {
    color: var(--danger-color);
    font-weight: 700;
    font-size: 1.25rem;
}

.original-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.campaign-slider {
    position: relative;
    margin: 2rem 0;
}

.campaign-slider-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.campaign-slider-container::-webkit-scrollbar {
    display: none;
}

.campaign-slide {
    min-width: 100%;
    scroll-snap-align: start;
    flex-shrink: 0;
}

.campaign-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 10;
}

.campaign-slider-nav:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.campaign-slider-nav.prev {
    left: 1rem;
}

.campaign-slider-nav.next {
    right: 1rem;
}

.campaign-slider-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.campaign-slider-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.campaign-slider-indicator.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 5px;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

/* Banner Slider Styles */
.banner-slider {
    position: relative;
    margin: 2rem 0;
}

.banner-slider-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    min-height: 200px; /* Prevent layout shift */
}

.banner-slider-container::-webkit-scrollbar {
    display: none;
}

.banner-slide {
    min-width: 100%;
    scroll-snap-align: start;
    flex-shrink: 0;
    display: none;
}

.banner-slide.active {
    display: block;
}

.banner-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0.75rem;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.banner-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 10;
}

.banner-slider-nav:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.banner-slider-nav.prev {
    left: 1rem;
}

.banner-slider-nav.next {
    right: 1rem;
}

.banner-slider-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.banner-slider-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-slider-indicator.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 5px;
}

/* ============================================
   PRODUCT DETAIL PAGE - CLEAN VERSION (Mobile First)
   ============================================ */

/* Mobile First - Base Styles */
/* Mobile First - Base Styles */
.product-detail-page .product {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
    padding: 1rem;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.product-detail-page .gallery {
    width: 100%;
    max-width: 100%;
}

.product-detail-page .gallery {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    min-width: 0;
}

/* Desktop Product Detail Page - Gallery Main (Mobile First - Base Styles) */
.product-detail-page .gallery__main {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1;
    min-height: 300px;
    max-height: 500px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #f5f5f5;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.product-detail-page .gallery__main img {
    display: none !important;
    visibility: hidden !important;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: cover;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1;
}

.product-detail-page .gallery__main img.active {
    display: block !important;
    visibility: visible !important;
    z-index: 2;
    opacity: 1;
}

/* Carousel Buttons - Desktop Page */
.product-detail-page .gallery__main .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(220, 53, 69, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.75rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: var(--primary-color);
}

.product-detail-page .gallery__main .carousel-btn:hover {
    background: white;
    box-shadow: 0 8px 24px rgba(220, 53, 69, 0.5);
    transform: translateY(-50%) scale(1.15);
    border-color: var(--primary-color);
}

.product-detail-page .gallery__main .carousel-prev {
    left: 1rem;
}

.product-detail-page .gallery__main .carousel-next {
    right: 1rem;
}

/* Carousel Indicators - Desktop Page */
.product-detail-page .gallery__main .carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 15;
}

.product-detail-page .gallery__main .carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-detail-page .gallery__main .carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.3);
}

.product-detail-page .gallery__main .carousel-indicator.active {
    background: rgba(255, 255, 255, 1);
    width: 24px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.5);
}

.product-detail-page .buybox {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.product-detail-page .buybox__sticky {
    position: static;
}

/* Thumbnails - Desktop Page */
.product-detail-page .gallery__thumbs {
    width: 100%;
    margin-top: 1rem;
    overflow: hidden;
}

.product-detail-page .thumbs-slider {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.product-detail-page .thumbs-slider__container {
    flex: 1;
    overflow: hidden;
}

.product-detail-page .thumbs-slider__track {
    display: flex;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.product-detail-page .thumb {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #f5f5f5;
    padding: 0;
    transition: all 0.3s ease;
}

.product-detail-page .thumb:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.product-detail-page .thumb.is-active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
}

.product-detail-page .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-detail-page .thumb-nav {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.product-detail-page .thumb-nav:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.product-detail-page .thumb-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Desktop - Media Query */
@media (min-width: 769px) {
    /* Fix: Move max-width constraint to main instead of wrapper */
    main.product-detail-page {
        max-width: 1200px;
        margin: 0 auto;
        padding: 2rem 1rem;
        box-sizing: border-box;
    }
    
    /* Remove padding from wrapper to allow grid to use full width */
    .product-detail-page .product-detail-wrapper {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .product-detail-page .product {
        display: grid !important; /* Açıkça belirt - zorunlu */
        grid-template-columns: 1fr 1fr !important; /* 50-50 split - zorunlu */
        gap: 2rem !important;
        padding: 2rem 0 !important;
        min-width: 0 !important; /* Grid container'ın shrink olabilmesi için */
        max-width: none !important; /* Container constraint'lerini kaldır */
        width: 100% !important; /* Container genişliğini kullan */
        box-sizing: border-box !important; /* Padding dahil hesapla */
        /* Force grid to use available width - prevent shrinking */
        overflow: visible !important;
    }
    
    /* Ensure product section uses full available width */
    .product-detail-page #product-section.product {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .product-detail-page .gallery {
        min-width: 0;
        max-width: 100%;
        width: 100%;
    }

    /* Desktop Media Query - Width tabanlı height (aspect-ratio override) */
    .product-detail-page .gallery__main {
        aspect-ratio: 1;
        min-height: 0;
        height: auto;
        max-height: none;
        position: relative !important; /* Ensure parent is relative for absolute children */
        overflow: hidden !important; /* Hide images outside container */
    }
    
    /* Force all carousel images to be absolutely positioned and hidden by default */
    .product-detail-page .gallery__main img {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: cover !important;
        display: none !important;
        visibility: hidden !important;
        z-index: 1 !important;
    }
    
    /* Only active image should be visible */
    .product-detail-page .gallery__main img.active {
        display: block !important;
        visibility: visible !important;
        z-index: 2 !important;
        opacity: 1 !important;
    }

    .product-detail-page .gallery__main .carousel-btn {
        z-index: 20;
        position: absolute;
    }

    .product-detail-page .gallery__main .carousel-indicators {
        z-index: 15;
        position: absolute;
    }

    .product-detail-page .buybox {
        min-width: 0;
        max-width: 100%;
        width: 100%;
    }

    .product-detail-page .buybox__sticky {
        position: sticky;
        top: 86px;
    }
}
