/* BarenShine Cosmetics E-Commerce - Main Stylesheet */

/* ========== CSS Variables ========== */
:root {
    --primary-color: #F7838D;
    --primary-light: #FFECF2;
    --primary-dark: #C1777E;
    --secondary-color: #FAC2C4;
    --accent-color: #955649;
    --text-dark: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --bg-white: #FFFFFF;
    --bg-light: #FFF5F7;
    --bg-pink: #FFECF2;
    --border-color: #FFD9E0;
    --success-color: #4CAF50;
    --error-color: #f44336;
    --warning-color: #ff9800;
}

/* ========== Reset & Base Styles ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== Typography ========== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-dark);
}

.logo-text {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    text-transform: lowercase;
}

.logo-subtitle {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--primary-dark);
    text-transform: uppercase;
}

.brand-name {
    color: var(--primary-color);
    font-weight: bold;
}

/* ========== Header ========== */
.main-header {
    background: var(--bg-white);
    border-bottom: 2px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1.2;
}

.main-nav {
    display: flex;
    gap: 2rem;
    flex: 1;
    justify-content: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.main-nav a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-name {
    color: var(--text-light);
    font-size: 0.9rem;
}

.cart-count {
    background: var(--primary-color);
    color: white;
    padding: 0.1rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-left: 0.3rem;
}

/* ========== Buttons ========== */
.btn {
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(247, 131, 141, 0.3);
}

.btn-secondary {
    background: var(--text-light);
    color: white;
}

.btn-secondary:hover {
    background: var(--text-dark);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-danger {
    background: var(--error-color);
    color: white;
}

.btn-danger:hover {
    background: #d32f2f;
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
    display: block;
}

/* ========== Hero Section ========== */
.hero {
    background: linear-gradient(135deg, var(--bg-pink) 0%, var(--primary-light) 100%);
    padding: 6rem 2rem;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: 1rem;
    letter-spacing: 3px;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* ========== Sections ========== */
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.categories-section,
.products-section {
    padding: 4rem 0;
}

.bg-light {
    background: var(--bg-light);
}

/* ========== Categories Grid ========== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.category-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s;
    border: 2px solid var(--border-color);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(247, 131, 141, 0.2);
    border-color: var(--primary-color);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-pink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: bold;
}

.category-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.category-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ========== Featured Carousel ========== */
.featured-carousel-wrapper {
    overflow: hidden;
    position: relative;
    margin-top: 2rem;
    padding: 1rem 0;
    cursor: grab;
}

.featured-carousel-wrapper:active {
    cursor: grabbing;
}

.featured-carousel {
    display: flex;
    gap: 1.5rem;
    animation: scroll-left 30s linear infinite;
    width: fit-content;
    will-change: transform;
}

.featured-carousel.paused {
    animation-play-state: paused;
}

.featured-carousel .carousel-item {
    flex: 0 0 300px;
    width: 300px;
    user-select: none;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% / 3));
    }
}

/* ========== Products Grid ========== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s;
    border: 2px solid var(--border-color);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(247, 131, 141, 0.2);
    border-color: var(--primary-color);
}

.product-image {
    position: relative;
    height: 250px;
    background: var(--bg-pink);
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary-color);
    font-weight: bold;
}

.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.badge-featured {
    background: var(--primary-color);
}

.badge-low {
    background: var(--warning-color);
}

.badge-out {
    background: var(--error-color);
}

.badge-success {
    background: var(--success-color);
}

.product-info {
    padding: 1.5rem;
}

.product-category {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-name {
    font-size: 1.2rem;
    margin: 0.5rem 0;
    color: var(--text-dark);
}

.product-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* ========== Page Header ========== */
.page-header {
    background: var(--bg-pink);
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ========== Products Page ========== */
.products-page {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    margin: 3rem 0;
}

.filters-sidebar {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    height: fit-content;
    border: 2px solid var(--border-color);
}

.filter-section {
    margin-bottom: 2rem;
}

.filter-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-form input {
    padding: 0.6rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
}

.category-filter-list {
    list-style: none;
}

.category-filter-list li {
    margin-bottom: 0.5rem;
}

.category-filter-list a {
    display: block;
    padding: 0.6rem;
    text-decoration: none;
    color: var(--text-dark);
    border-radius: 8px;
    transition: all 0.3s;
}

.category-filter-list a:hover,
.category-filter-list a.active {
    background: var(--bg-pink);
    color: var(--primary-color);
}

.no-results {
    text-align: center;
    padding: 3rem;
}

/* ========== Empty State ========== */
.no-products-message {
    padding: 4rem 2rem;
}

.empty-state {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem;
    background: white;
    border-radius: 20px;
    border: 2px solid var(--border-color);
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-state h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* ========== Cart Page ========== */
.cart-page {
    margin: 3rem 0;
}

.cart-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
}

.cart-items {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    border: 2px solid var(--border-color);
}

.cart-header {
    padding: 1rem 0;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-left: 35px;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 22px;
    width: 22px;
    background-color: white;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    transition: all 0.3s;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: var(--bg-pink);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.cart-item {
    display: grid;
    grid-template-columns: auto 100px 1fr auto auto;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-pink);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.cart-item-stock {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.qty-btn:hover {
    background: var(--primary-color);
    color: white;
}

.cart-item-quantity input {
    width: 50px;
    text-align: center;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.3rem;
}

.cart-item-total {
    text-align: right;
}

.item-total {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.cart-summary {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    height: fit-content;
    border: 2px solid var(--border-color);
}

.cart-summary h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.summary-divider {
    border-top: 2px solid var(--border-color);
    margin: 1.5rem 0;
}

.summary-total {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
}

.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-cart p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* ========== Checkout Page ========== */
.checkout-page {
    margin: 3rem 0;
}

.checkout-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
}

.shipping-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    border: 2px solid var(--border-color);
}

.shipping-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.payment-section {
    margin-top: 2rem;
}

.payment-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
}

.payment-option input[type="radio"] {
    width: 20px;
    height: 20px;
}

.order-summary-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    height: fit-content;
    border: 2px solid var(--border-color);
}

.order-summary-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.summary-items {
    margin-bottom: 1.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.item-name {
    color: var(--text-dark);
}

.item-price {
    color: var(--primary-color);
    font-weight: 600;
}

/* ========== Order Success Page ========== */
.success-page {
    max-width: 600px;
    margin: 3rem auto;
    text-align: center;
    background: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    border: 2px solid var(--border-color);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--success-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 1.5rem;
}

.success-page h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.order-details-box {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
    text-align: left;
}

.order-details-box h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.order-details-box p {
    margin-bottom: 0.5rem;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* ========== Orders Page ========== */
.orders-page {
    margin: 3rem 0;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.order-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    border: 2px solid var(--border-color);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.order-info h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.order-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}

.status-pending {
    background: var(--warning-color);
}

.status-processing {
    background: #2196F3;
}

.status-completed {
    background: var(--success-color);
}

.status-cancelled {
    background: var(--error-color);
}

.order-items {
    margin: 1.5rem 0;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
}

.order-item:last-child {
    border-bottom: none;
}

.order-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
}

.order-total {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.order-details p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.order-actions {
    margin-top: 1rem;
}

.no-orders {
    text-align: center;
    padding: 4rem 2rem;
}

/* ========== Forms ========== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ========== Auth Pages ========== */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-pink) 0%, var(--primary-light) 100%);
    padding: 2rem;
}

.auth-box {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 10px 40px rgba(247, 131, 141, 0.2);
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-box h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.auth-description {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.auth-box-large {
    max-width: 600px;
}

.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    background: white;
    padding: 0 1rem;
    color: var(--text-muted);
    position: relative;
    font-size: 0.85rem;
}

.auth-form {
    margin-top: 2rem;
}

.auth-link {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* ========== Alerts ========== */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

/* ========== Footer ========== */
.main-footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: #aaa;
}

/* ========== Utilities ========== */
.text-center {
    text-align: center;
}

/* ========== Modal ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    width: 100%;
    max-width: 600px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-large {
    max-width: 900px;
}

/* Image Modal */
#imageModal {
    z-index: 2500;
    display: none;
    align-items: center;
    justify-content: center;
}

#imageModal.show {
    display: flex;
}

.modal-image-content {
    position: relative;
    max-width: 80vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 1rem;
    border-radius: 8px;
}

.modal-image-content img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 8px;
}

.modal-image-content .modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 2rem;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 10;
}

.modal-image-content .modal-close:hover {
    background: rgba(247, 131, 141, 0.9);
}

.modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10;
}

.modal-close:hover {
    color: var(--error-color);
}

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* Product Detail Modal */
.product-detail-container {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

.product-detail-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-carousel {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
    background: var(--bg-light);
    border-radius: 15px;
}

.carousel-images {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-images img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-images img.active {
    opacity: 1;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.carousel-dot:hover {
    transform: scale(1.2);
}

.carousel-dot.active {
    background: var(--primary-color);
}

.product-detail-image {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 15px;
    overflow: hidden;
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-price-large {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.product-stock-info {
    margin: 0.5rem 0;
}

.product-description-full {
    color: var(--text-light);
    line-height: 1.8;
    margin: 1rem 0;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.product-actions {
    margin-top: auto;
    padding-top: 1rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    width: 100%;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .product-detail-container {
        grid-template-columns: 1fr;
    }
    
    .product-detail-image {
        height: 300px;
    }
    
    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .modal-large {
        max-width: 100%;
    }
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.form-actions button {
    flex: 1;
}

/* ========== Burger Menu ========== */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-only {
    display: none;
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }
    
    .header-content {
        position: relative;
    }
    
    .header-actions {
        display: none;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 5rem 0 2rem;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav a {
        padding: 1rem 2rem;
        border-bottom: 1px solid var(--border-color);
        color: var(--text-dark);
    }
    
    .main-nav a:hover {
        background: var(--bg-pink);
        color: var(--primary-color);
    }
    
    .main-nav a.active {
        background: var(--bg-pink);
        color: var(--primary-color);
        font-weight: 600;
        border-left: 3px solid var(--primary-color);
    }
    
    .main-nav a.active::after {
        display: none;
    }
    
    .mobile-only {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 2rem;
        border-top: 2px solid var(--border-color);
        margin-top: 1rem;
    }
    
    .user-info-mobile {
        padding-bottom: 1rem;
    }
    
    .user-info-mobile .user-name {
        color: var(--primary-color);
        font-weight: 600;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .products-page {
        grid-template-columns: 1fr;
    }
    
    .cart-content,
    .checkout-content {
        grid-template-columns: 1fr;
    }
    
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 1rem;
    }
    
    .cart-item-quantity,
    .cart-item-total {
        grid-column: 2;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
}
