/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1d1d1f;
    background-color: #fafafa;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: 44px;
    position: relative;
}

.nav-brand h1 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #007aff;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: #1d1d1f;
    font-weight: 400;
    font-size: 0.875rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #007aff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -3px;
    left: 50%;
    background-color: #007aff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Navigation Actions (Cart + Mobile Menu) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    color: #1d1d1f;
}

.cart-icon:hover {
    background-color: rgba(0, 122, 255, 0.1);
    color: #007aff;
}

.cart-icon svg {
    width: 18px;
    height: 18px;
}

.cart-count {
    position: absolute;
    top: -1px;
    right: -1px;
    background: #ff3b30;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 600;
    min-width: 16px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.375rem;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 20px;
    height: 2px;
    background: #1d1d1f;
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
}

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

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

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

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    z-index: 1000;
}

.mobile-menu a {
    display: block;
    padding: 1rem 2rem;
    color: #1d1d1f;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-menu a:hover {
    background: rgba(0, 122, 255, 0.1);
    color: #007aff;
}

.mobile-menu.active {
    display: block;
    animation: slideDown 0.3s ease;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 2rem 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.4) 0%, rgba(118, 75, 162, 0.4) 100%), url('https://maivita.store/hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
    position: relative;
    text-align: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.2s both;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.cta-button {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    animation: fadeInUp 1s ease-out 0.4s both;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-image {
    display: none;
}

.product-showcase {
    position: relative;
    width: 300px;
    height: 300px;
}

/* Products Section */
.products-section {
    padding: 6rem 2rem;
    background: #fafafa;
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: #1d1d1f;
}

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

.product-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card.out-of-stock {
    opacity: 0.7;
    filter: grayscale(0.3);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(0, 122, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover:not(.out-of-stock) {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.product-card > * {
    position: relative;
    z-index: 2;
}

.product-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

/* Stock Management Styles */
.stock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
    border-radius: 15px;
}

.low-stock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff9500;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    animation: pulse 2s infinite;
}

.stock-info {
    margin-bottom: 1rem;
    text-align: center;
}

.stock-count {
    font-size: 0.9rem;
    font-weight: 500;
    color: #34c759;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    background: rgba(52, 199, 89, 0.1);
}

.stock-count.low-stock {
    color: #ff9500;
    background: rgba(255, 149, 0, 0.1);
}

.stock-count.out-of-stock {
    color: #ff3b30;
    background: rgba(255, 59, 48, 0.1);
}

.stock-warning {
    font-size: 0.8rem;
    color: #ff9500;
    margin-top: 0.3rem;
    font-weight: 500;
}

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

.product-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1d1d1f;
}

.product-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #007aff;
    margin-bottom: 1rem;
}

.add-to-cart {
    width: 100%;
    background: #007aff;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.add-to-cart:hover:not(.disabled) {
    background: #0056b3;
    transform: translateY(-2px);
}

.add-to-cart.disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* About Section */
.about-section {
    padding: 6rem 2rem;
    background: white;
}

.about-content h2 {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    color: #1d1d1f;
}

.about-content p {
    font-size: 1.2rem;
    text-align: center;
    color: #666;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 0.5rem;
}

/* Video Container */
.video-container {
    max-width: 800px;
    margin: 0 auto 4rem;
    padding: 0 1rem;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    background: #000;
    transition: all 0.3s ease;
}

.video-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 20px;
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 20px;
    object-fit: cover;
    background: #000;
}

.video-wrapper video::-webkit-media-controls-fullscreen-button {
    display: none !important;
}

.video-wrapper video::-moz-media-controls-fullscreen-button {
    display: none !important;
}

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

.feature {
    text-align: center;
    padding: 2rem;
    border-radius: 20px;
    background: #fafafa;
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1d1d1f;
}

.feature p {
    color: #666;
    font-size: 1rem;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.cart-items {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    gap: 1rem;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    color: #007aff;
    font-weight: 600;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.quantity-btn:hover:not(.disabled) {
    background: #f0f0f0;
}

.quantity-btn.disabled {
    background: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
}

.quantity {
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid #eee;
    background: white;
}

.cart-total {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 600;
}

.checkout-btn {
    width: 100%;
    background: #007aff;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout-btn:hover {
    background: #0056b3;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

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

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

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

.form-group label {
    font-weight: 600;
    color: #1d1d1f;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007aff;
}

.order-summary {
    background: #fafafa;
    padding: 1.5rem;
    border-radius: 15px;
    margin: 1rem 0;
}

.order-summary h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: #666;
}

.total-amount {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #e0e0e0;
    font-size: 1.2rem;
}

.place-order-btn {
    background: #007aff;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.place-order-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.success-modal {
    text-align: center;
    max-width: 400px;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.success-modal h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1d1d1f;
}

.success-modal p {
    color: #666;
    margin-bottom: 2rem;
}

.ok-btn {
    background: #007aff;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ok-btn:hover {
    background: #0056b3;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-actions {
        gap: 0.5rem;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .cart-icon {
        padding: 0.3rem;
    }
    
    .cart-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 3.5rem 1rem 2rem;
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.4) 0%, rgba(118, 75, 162, 0.4) 100%), url('https://maivita.store/hero.jpg');
        background-size: cover;
        background-position: center;
        background-attachment: scroll;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 0.5rem;
    }
    
    /* Mobile Video Styles */
    .video-container {
        max-width: 100%;
        margin: 0 auto 3rem;
        padding: 0 0.25rem;
    }
    
    .about-section {
        padding: 4rem 0.5rem;
    }
    
    .about-content p {
        margin-bottom: 3rem;
        padding: 0 0.25rem;
    }
    
    /* Mobile Safe Area Adjustments for Cart */
    .cart-footer {
        padding: 1.5rem 1rem;
        padding-bottom: calc(2.5rem + env(safe-area-inset-bottom, 40px));
    }
    
    .checkout-btn {
        padding: 1.2rem;
        font-size: 1.1rem;
        margin-bottom: calc(1rem + env(safe-area-inset-bottom, 20px));
    }
    
    .cart-total {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    
    /* Additional Safari Mobile Fixes */
    .cart-sidebar {
        height: 100vh;
        height: 100dvh; /* Dynamic viewport height for Safari */
    }
    
    .cart-items {
        padding-bottom: calc(2rem + env(safe-area-inset-bottom, 40px));
    }
    
    /* Mobile Product Styles */
    .products-section {
        padding: 4rem 0.5rem;
    }
    
    .product-card {
        padding: 1rem;
        cursor: pointer;
    }
    
    .product-image {
        height: 120px;
        margin-bottom: 0.8rem;
        font-size: 2rem;
    }
    
    .product-name {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
        line-height: 1.3;
    }
    
    .product-description {
        font-size: 0.8rem;
        color: #666;
        margin-bottom: 0.8rem;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .product-price {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .add-to-cart {
        padding: 0.7rem;
        font-size: 0.85rem;
        font-weight: 600;
    }
}

/* Custom Play Button */
.play-button-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    pointer-events: auto;
    -webkit-user-select: none;
    user-select: none;
}

.play-button-overlay:hover {
    background: rgba(0, 0, 0, 0.4);
}

.play-button {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.play-button:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.play-button svg {
    width: 20px;
    height: 20px;
    margin-left: 2px;
    pointer-events: none;
    fill: #1d1d1f;
    opacity: 0.8;
}

.play-button-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Safari-specific fixes */
@supports (-webkit-appearance: none) {
    .video-wrapper {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    .play-button-overlay {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        will-change: opacity, visibility;
    }
}

/* Product Detail Modal */
.product-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1003;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

.product-detail-modal.active {
    opacity: 1;
    visibility: visible;
}

.product-detail-content {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    position: relative;
}

.product-detail-modal.active .product-detail-content {
    transform: scale(1);
}

.product-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.close-product-detail {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-product-detail:hover {
    background: #f0f0f0;
}

.product-detail-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.product-detail-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1d1d1f;
}

.product-detail-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1rem;
}

.product-detail-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #007aff;
    margin-bottom: 1.5rem;
}

.product-detail-actions {
    display: flex;
    gap: 1rem;
}

.product-detail-add-to-cart {
    flex: 1;
    background: #007aff;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-detail-add-to-cart:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.product-detail-add-to-cart.disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Mobile Product Detail Modal */
@media (max-width: 768px) {
    .product-detail-modal {
        padding: 0.5rem;
    }
    
    .product-detail-content {
        padding: 1.5rem;
        max-height: 90vh;
    }
    
    .product-detail-image {
        height: 150px;
        font-size: 3rem;
    }
    
    .product-detail-title {
        font-size: 1.5rem;
    }
    
    .product-detail-price {
        font-size: 1.5rem;
    }
} 