/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4A90E2;
    --primary-dark: #357ABD;
    --secondary-color: #4CAF50;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #F8F9FA;
    --border-color: #E0E0E0;
    --price-old: #999999;
    --price-current: #E53935;
    --white: #FFFFFF;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

/* Offset for fixed header when scrolling to anchors */
h2[id] {
    scroll-margin-top: 120px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--bg-light);
    padding: 8px 0;
    font-size: 14px;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.header-phone,
.header-email {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.header-phone:hover,
.header-email:hover {
    color: var(--primary-color);
}

.header-shipping {
    color: var(--text-light);
    font-weight: 500;
}

.header-main {
    padding: 15px 0;
}

.header-main-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    max-width: 200px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-btn,
.cart-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-dark);
    transition: color 0.3s;
    position: relative;
}

.search-btn:hover,
.cart-btn:hover {
    color: var(--primary-color);
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--price-current);
    color: var(--white);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Breadcrumbs */
.breadcrumbs {
    background: var(--bg-light);
    padding: 15px 0;
    font-size: 14px;
}

.breadcrumbs a {
    color: var(--text-light);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.breadcrumbs span {
    color: var(--text-light);
    margin: 0 8px;
}

/* Main Content */
.main-content {
    padding: 40px 0;
}

.product-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

/* Product Gallery */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-image-main {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
}

.product-image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image-thumbnails {
    display: flex;
    gap: 15px;
}

.thumbnail {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
    object-fit: cover;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-color);
}

/* Product Info */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.product-badge {
    display: inline-block;
    background: var(--price-current);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    width: fit-content;
}

.product-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

.product-price {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.price-old {
    font-size: 18px;
    color: var(--price-old);
    text-decoration: line-through;
}

.price-current {
    font-size: 36px;
    font-weight: 700;
    color: var(--price-current);
}

.price-note {
    font-size: 14px;
    color: var(--text-light);
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 8px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.feature-item svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-item span {
    color: var(--text-dark);
    font-size: 15px;
}

.product-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 8px;
    font-size: 14px;
}

.meta-item {
    color: var(--text-light);
}

.meta-item strong {
    color: var(--text-dark);
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    background: var(--bg-light);
    border: none;
    width: 40px;
    height: 48px;
    cursor: pointer;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    transition: background 0.3s;
}

.qty-btn:hover {
    background: var(--border-color);
}

#quantity {
    width: 60px;
    height: 48px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    -moz-appearance: textfield;
}

#quantity::-webkit-outer-spin-button,
#quantity::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn-add-to-cart {
    flex: 1;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.btn-add-to-cart:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-add-to-cart:active {
    transform: translateY(0);
}

.btn-favorite {
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    width: 48px;
    height: 48px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.btn-favorite:hover {
    background: var(--white);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Product Tabs */
.product-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border-color);
    margin-top: 30px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
    padding: 30px 0;
    line-height: 1.8;
}

.tab-content.active {
    display: block;
}

.tab-content h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.tab-content h3 {
    font-size: 20px;
    margin: 25px 0 15px;
    color: var(--text-dark);
}

.tab-content p {
    margin-bottom: 15px;
    color: var(--text-light);
}

.tab-content ul,
.tab-content ol {
    margin: 20px 0;
    padding-left: 30px;
    color: var(--text-light);
}

.tab-content ul {
    list-style-type: disc;
}

.tab-content ol {
    list-style-type: decimal;
    padding-left: 35px;
}

.tab-content li {
    margin-bottom: 12px;
    line-height: 1.7;
    padding-left: 8px;
}

.tab-content ul li {
    list-style-position: outside;
}

.tab-content ol li {
    list-style-position: outside;
    padding-left: 10px;
}

.tab-content ul ul,
.tab-content ol ol,
.tab-content ul ol,
.tab-content ol ul {
    margin-top: 8px;
    margin-bottom: 8px;
    padding-left: 25px;
}

.tab-content ul ul {
    list-style-type: circle;
}

.tab-content ul ul ul {
    list-style-type: square;
}

.benefits-list {
    list-style: none;
    padding-left: 0;
}

.benefits-list li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    color: var(--text-light);
}

.benefits-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 700;
}

.ingredients-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.ingredient-item {
    padding: 20px;
    background: var(--bg-light);
    border-radius: 8px;
}

.ingredient-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.ingredient-item p {
    margin: 0;
}

/* Composition Table */
.composition-table-wrapper {
    margin: 30px 0;
    overflow-x: auto;
}

.composition-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.composition-table thead {
    background: var(--primary-color);
    color: var(--white);
}

.composition-table th {
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
}

.composition-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

.composition-table tbody tr:hover {
    background: var(--bg-light);
}

.composition-table tbody tr:last-child {
    border-bottom: none;
}

.composition-table td {
    padding: 16px 20px;
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.6;
}

.composition-table td strong {
    color: var(--text-dark);
    font-weight: 600;
}

.composition-table td em {
    color: var(--text-light);
    font-style: italic;
    font-size: 13px;
}

.composition-table .table-footer-row {
    background: var(--bg-light);
}

.composition-table .table-footer-row td {
    padding: 20px;
    color: var(--text-light);
    font-size: 13px;
}

.composition-info {
    margin: 40px 0;
    padding: 25px;
    background: var(--bg-light);
    border-radius: 12px;
}

.composition-info h3 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.composition-details {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.composition-details li {
    color: var(--text-light);
    font-size: 15px;
    padding-left: 25px;
    position: relative;
}

.composition-details li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 20px;
    line-height: 1;
}

.composition-details li strong {
    color: var(--text-dark);
}

.composition-note {
    margin-top: 30px;
    padding: 20px;
    background: #FFF9E6;
    border-left: 4px solid #FFA726;
    border-radius: 8px;
}

.composition-note p {
    margin: 0;
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.7;
}

.composition-note strong {
    color: var(--text-dark);
}

/* Reviews Section */
.reviews-header {
    margin-bottom: 40px;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 12px;
}

.reviews-summary {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.rating-overview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 200px;
}

.rating-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-dark);
}

.rating-stars-large {
    display: flex;
    gap: 4px;
    font-size: 28px;
}

.rating-stars-large .star {
    color: #FFD700;
}

.rating-stars-large .star.half {
    background: linear-gradient(90deg, #FFD700 50%, #E0E0E0 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rating-count {
    color: var(--text-light);
    font-size: 14px;
}

.rating-breakdown {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
}

.rating-bar span:first-child {
    min-width: 40px;
    color: var(--text-dark);
}

.bar-container {
    flex: 1;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
    transition: width 0.3s;
}

.rating-bar span:last-child {
    min-width: 30px;
    text-align: right;
    color: var(--text-light);
}

.reviews-section {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.review-item {
    padding: 25px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: box-shadow 0.3s;
}

.review-item:hover {
    box-shadow: var(--shadow);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.reviewer-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reviewer-info strong {
    font-size: 16px;
    color: var(--text-dark);
}

.review-rating {
    display: flex;
    gap: 2px;
}

.review-rating .star {
    font-size: 16px;
    color: #E0E0E0;
}

.review-rating .star.filled {
    color: #FFD700;
}

.review-date {
    color: var(--text-light);
    font-size: 14px;
}

.review-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.review-text {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 15px;
}

.review-helpful {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-light);
}

.helpful-btn {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-dark);
    transition: all 0.3s;
}

.helpful-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.no-reviews {
    color: var(--text-light);
    font-style: italic;
    text-align: center;
    padding: 40px 0;
}

/* Review Form */
.review-form-container {
    margin-top: 50px;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 12px;
    border: 2px solid var(--border-color);
}

.review-form-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.review-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
}

.form-group input[type="text"],
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s;
    background: var(--white);
    color: var(--text-dark);
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.char-count {
    font-size: 12px;
    color: var(--text-light);
    text-align: right;
}

.char-count span {
    font-weight: 600;
}

/* Rating Input */
.rating-input {
    display: flex;
    gap: 5px;
    margin-bottom: 5px;
}

.rating-star {
    font-size: 32px;
    color: #E0E0E0;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    user-select: none;
}

.rating-star:hover {
    transform: scale(1.1);
}

.rating-star.active {
    color: #FFD700;
}

.rating-star.filled {
    color: #FFD700;
}

.rating-text {
    font-size: 14px;
    color: var(--text-light);
    font-style: italic;
}

/* Checkbox */
.checkbox-group {
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

.checkbox-label span {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Submit Button */
.btn-submit-review {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    margin-top: 10px;
}

.btn-submit-review:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-submit-review:active {
    transform: translateY(0);
}

.btn-submit-review:disabled {
    background: var(--text-light);
    cursor: not-allowed;
    transform: none;
}

/* Related Products */
.related-products {
    padding: 60px 0;
    background: var(--bg-light);
}

.related-products h2 {
    font-size: 28px;
    margin-bottom: 40px;
    text-align: center;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-card-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-light);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-info {
    padding: 20px;
}

.product-card-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.product-card-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.btn-add-to-cart-small {
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-add-to-cart-small:hover {
    background: var(--primary-dark);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--white);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
}

.cart-sidebar.open {
    right: 0;
}

.cart-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-sidebar-header h2 {
    font-size: 24px;
    margin: 0;
}

.cart-close {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
    transition: color 0.3s;
}

.cart-close:hover {
    color: var(--text-dark);
}

.cart-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-empty {
    text-align: center;
    color: var(--text-light);
    padding: 40px 0;
}

.cart-sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.cart-total {
    font-size: 20px;
    margin-bottom: 15px;
    text-align: center;
}

.btn-checkout {
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-checkout:hover {
    background: var(--primary-dark);
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.cart-overlay.active {
    display: block;
    opacity: 1;
}

/* Scroll Popup */
.scroll-popup {
    position: fixed;
    bottom: -150px;
    right: 20px;
    width: 320px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    transition: bottom 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0;
    visibility: hidden;
}

.scroll-popup.show {
    bottom: 20px;
    opacity: 1;
    visibility: visible;
}

.scroll-popup-content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
}

.scroll-popup-close {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    background: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--white);
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.3s, transform 0.2s;
    z-index: 10;
}

.scroll-popup-close:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.scroll-popup-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-light);
}

.scroll-popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scroll-popup-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.scroll-popup-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.scroll-popup-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.scroll-popup-price-old {
    font-size: 14px;
    color: var(--price-old);
    text-decoration: line-through;
}

.scroll-popup-price-current {
    font-size: 20px;
    font-weight: 700;
    color: var(--price-current);
}

.scroll-popup-btn {
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: background 0.3s, transform 0.2s;
    display: block;
}

.scroll-popup-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.scroll-popup-btn:active {
    transform: translateY(0);
}

/* Language Switcher */
.language-switcher {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

.language-btn:hover {
    background: var(--white);
    border-color: var(--primary-color);
}

.language-btn .flag-icon {
    font-size: 18px;
    line-height: 1;
}

.language-btn .lang-text {
    font-weight: 600;
}

.language-btn .chevron-icon {
    transition: transform 0.3s;
    margin-left: 2px;
}

.language-btn.active .chevron-icon {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1000;
    overflow: hidden;
}

.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-dark);
    transition: background 0.2s;
    border-bottom: 1px solid var(--border-color);
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background: var(--bg-light);
}

.language-option.active {
    background: var(--bg-light);
    pointer-events: none;
}

.language-option.active::after {
    content: "✓";
    margin-left: auto;
    color: var(--secondary-color);
    font-weight: 700;
}

.language-option .flag-icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
}

.language-option .lang-name {
    font-weight: 600;
    font-size: 15px;
}

.language-option .lang-country {
    font-size: 13px;
    color: var(--text-light);
    margin-left: auto;
}

.language-option.active .lang-country {
    margin-left: 0;
}

/* Responsive Design */
@media (max-width: 968px) {
    .product-page {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .main-nav {
        display: none;
    }

    .header-main-content {
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .logo-img {
        height: 40px;
        max-width: 150px;
    }

    .header-top-content {
        flex-direction: column;
        text-align: center;
    }

    .language-btn .lang-text {
        display: none;
    }

    .language-btn {
        padding: 8px 10px;
    }

    .language-dropdown {
        right: -10px;
        min-width: 200px;
    }

    .product-title {
        font-size: 24px;
    }

    .price-current {
        font-size: 28px;
    }

    .product-actions {
        flex-wrap: wrap;
    }

    .btn-add-to-cart {
        width: 100%;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .reviews-summary {
        flex-direction: column;
        gap: 30px;
    }

    .rating-overview {
        width: 100%;
    }

    .rating-breakdown {
        width: 100%;
    }

    .review-header {
        flex-direction: column;
    }

    .review-date {
        align-self: flex-start;
    }

    .review-form-container {
        padding: 20px;
    }

    .review-form-title {
        font-size: 20px;
    }

    .rating-star {
        font-size: 28px;
    }

    .composition-table {
        font-size: 13px;
    }

    .composition-table th,
    .composition-table td {
        padding: 12px 15px;
    }

    .composition-info {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .composition-table-wrapper {
        overflow-x: scroll;
    }

    .composition-table {
        min-width: 600px;
        font-size: 12px;
    }

    .composition-table th,
    .composition-table td {
        padding: 10px 12px;
    }

    .composition-table th {
        font-size: 13px;
    }

    .scroll-popup {
        width: 280px;
        right: 10px;
        bottom: -150px;
    }

    .scroll-popup.show {
        bottom: 10px;
    }

    .scroll-popup-content {
        padding: 12px;
        gap: 12px;
    }

    .scroll-popup-image {
        width: 60px;
        height: 60px;
    }

    .scroll-popup-title {
        font-size: 16px;
    }

    .scroll-popup-price-current {
        font-size: 18px;
    }

    .scroll-popup-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .product-image-thumbnails {
        flex-wrap: wrap;
    }

    .thumbnail {
        width: 80px;
        height: 80px;
    }
}
