/**
 * Rumvee Shop - Minimalist E-commerce Styles
 * Optimized for conversions and clean UX
 */

/* =====================================================
   CSS Variables
   ===================================================== */
:root {
    /* Colors */
    --primary: #40E0D0;
    --primary-dark: #2BB5A7;
    --secondary: #1a2e44;
    --accent: #FF6B6B;
    --text-dark: #1a1a1a;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border: #e5e7eb;
    --success: #10B981;
    --warning: #F59E0B;
    
    /* Typography */
    --font-primary: 'Montserrat', sans-serif;
    --font-display: 'Playfair Display', serif;
    
    /* Spacing */
    --container-max: 1200px;
    --section-padding: 80px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.1);
    
    /* Transitions */
    --transition: all 0.3s ease;
}

/* =====================================================
   Base Styles
   ===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* =====================================================
   Header
   ===================================================== */
.shop-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.header-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img,
.logo .logo-image {
    height: 40px;
    width: auto;
}

.shop-nav {
    display: flex;
    gap: 35px;
}

.shop-nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
}

.shop-nav a:hover,
.shop-nav a.active {
    color: var(--text-dark);
}

.shop-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.cart-btn:hover {
    background: var(--primary);
    color: white;
}

.cart-btn i {
    font-size: 18px;
}

.cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =====================================================
   Hero Section
   ===================================================== */
.shop-hero {
    padding: 140px 30px 80px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #e0f7f5 100%);
    text-align: center;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary);
    color: white;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.shop-hero h1 {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: 15px;
}

.shop-hero p {
    font-size: 18px;
    color: var(--text-muted);
}

/* =====================================================
   Filters
   ===================================================== */
.shop-filters {
    position: sticky;
    top: 71px;
    z-index: 50;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 0 30px;
}

.filters-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.filter-tabs {
    display: flex;
    gap: 5px;
}

.filter-tab {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    background: transparent;
    border-radius: 25px;
    transition: var(--transition);
}

.filter-tab:hover {
    color: var(--text-dark);
    background: var(--bg-light);
}

.filter-tab.active {
    color: white;
    background: var(--secondary);
}

.filter-sort select {
    padding: 10px 35px 10px 15px;
    font-size: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-white);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
}

/* =====================================================
   Products Grid
   ===================================================== */
.shop-main {
    padding: 50px 30px var(--section-padding);
    min-height: 50vh;
}

.products-container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Product Card */
.product-card {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--border);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    background: var(--bg-light);
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-image .product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
}

.product-badge.addon {
    background: var(--primary);
    color: white;
}

.product-badge.merchandise {
    background: var(--secondary);
    color: white;
}

.product-badge.bundle {
    background: var(--accent);
    color: white;
}

.product-quick-add {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    padding: 12px;
    background: var(--bg-white);
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.product-card:hover .product-quick-add {
    opacity: 1;
    transform: translateY(0);
}

.product-quick-add:hover {
    background: var(--primary);
    color: white;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.product-info .price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-dark);
}

.product-info .original-price {
    font-size: 14px;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 8px;
}

/* Product placeholder icon */
.product-icon-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-light) 0%, #e8f4f3 100%);
}

.product-icon-placeholder i {
    font-size: 60px;
    color: var(--primary);
    opacity: 0.5;
}

/* =====================================================
   Featured Collection
   ===================================================== */
.featured-collection {
    background: var(--secondary);
    padding: var(--section-padding) 30px;
    overflow: hidden;
}

.collection-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.collection-content {
    color: white;
}

.collection-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(64, 224, 208, 0.2);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.collection-content h2 {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.2;
}

.collection-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
    line-height: 1.7;
}

.btn-collection {
    display: inline-block;
    padding: 14px 32px;
    background: var(--primary);
    color: var(--secondary);
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-collection:hover {
    background: white;
    transform: translateY(-2px);
}

.collection-images {
    position: relative;
    height: 400px;
}

.collection-img {
    position: absolute;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.collection-img.img-1 {
    width: 60%;
    top: 0;
    left: 0;
    z-index: 2;
}

.collection-img.img-2 {
    width: 55%;
    bottom: 0;
    right: 0;
    z-index: 1;
}

/* =====================================================
   Trust Section
   ===================================================== */
.trust-section {
    padding: 50px 30px;
    background: var(--bg-light);
}

.trust-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
}

.trust-badge i {
    font-size: 24px;
    color: var(--primary);
}

.trust-badge span {
    font-size: 14px;
    font-weight: 500;
}

/* =====================================================
   Product Modal
   ===================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.product-modal {
    background: var(--bg-white);
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    transform: scale(0.9);
    transition: var(--transition);
}

.modal-overlay.active .product-modal {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--text-dark);
    color: white;
}

.modal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.modal-gallery {
    background: var(--bg-light);
    padding: 30px;
}

.gallery-main {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
}

.gallery-thumb {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.gallery-thumb.active,
.gallery-thumb:hover {
    border-color: var(--primary);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-details {
    padding: 40px;
    overflow-y: auto;
    max-height: 90vh;
}

.modal-details .product-badge {
    display: inline-block;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 15px;
}

.modal-details h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
}

.modal-details .product-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.modal-details .product-description {
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.7;
}

.modal-details .product-features {
    list-style: none;
    margin-bottom: 30px;
}

.modal-details .product-features li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
    color: var(--text-muted);
}

.modal-details .product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

.product-options {
    margin-bottom: 25px;
}

.quantity-selector label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 0;
    width: fit-content;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    width: 44px;
    height: 44px;
    font-size: 18px;
    color: var(--text-muted);
    background: var(--bg-light);
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--primary);
    color: white;
}

.qty-controls input {
    width: 60px;
    height: 44px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

.qty-controls input:focus {
    outline: none;
}

.btn-add-cart {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: white;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-add-cart:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.stock-info {
    margin-top: 15px;
    font-size: 13px;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 6px;
}

.stock-info::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
}

/* =====================================================
   Cart Drawer
   ===================================================== */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 100%;
    height: 100vh;
    background: var(--bg-white);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    display: flex;
    flex-direction: column;
}

.cart-drawer.active {
    transform: translateX(0);
}

.cart-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-header h3 {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.cart-close:hover {
    background: var(--text-dark);
    color: white;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px 25px;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.cart-empty i {
    font-size: 50px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.cart-empty p {
    margin-bottom: 20px;
}

.btn-continue {
    display: inline-block;
    padding: 12px 24px;
    background: var(--secondary);
    color: white;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-continue:hover {
    background: var(--primary);
}

/* Cart Item */
.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-light);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-details .price {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-dark);
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.cart-item-qty button {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    background: var(--bg-light);
    font-size: 14px;
    transition: var(--transition);
}

.cart-item-qty button:hover {
    background: var(--primary);
    color: white;
}

.cart-item-qty span {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.cart-item-remove {
    color: var(--text-light);
    transition: var(--transition);
}

.cart-item-remove:hover {
    color: var(--accent);
}

.cart-footer {
    padding: 25px;
    border-top: 1px solid var(--border);
    background: var(--bg-light);
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.cart-note {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.btn-checkout {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: white;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: var(--transition);
}

.btn-checkout:hover {
    background: var(--primary-dark);
}

.cart-continue {
    display: block;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

.cart-continue:hover {
    color: var(--primary);
}

/* =====================================================
   Footer
   ===================================================== */
.shop-footer {
    background: var(--secondary);
    color: white;
    padding: 60px 30px 30px;
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h4 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.footer-brand p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
}

.footer-bottom {
    max-width: var(--container-max);
    margin: 0 auto;
    padding-top: 25px;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* =====================================================
   Loading State
   ===================================================== */
.loading-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.loading-card {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.loading-image {
    aspect-ratio: 1;
    background: linear-gradient(90deg, var(--bg-light) 25%, #e5e7eb 50%, var(--bg-light) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.loading-text {
    padding: 20px;
}

.loading-line {
    height: 16px;
    background: linear-gradient(90deg, var(--bg-light) 25%, #e5e7eb 50%, var(--bg-light) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 10px;
}

.loading-line.short {
    width: 60%;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* =====================================================
   Responsive Styles
   ===================================================== */
@media (max-width: 1024px) {
    .collection-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .collection-images {
        height: 300px;
    }
    
    .modal-content {
        grid-template-columns: 1fr;
    }
    
    .modal-gallery {
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 12px 20px;
    }
    
    .shop-nav {
        display: none;
    }
    
    .shop-hero {
        padding: 120px 20px 60px;
    }
    
    .shop-hero h1 {
        font-size: 32px;
    }
    
    .shop-filters {
        padding: 0 20px;
    }
    
    .filters-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-tabs {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 5px;
    }
    
    .filter-tab {
        padding: 8px 16px;
        white-space: nowrap;
        font-size: 13px;
    }
    
    .shop-main {
        padding: 30px 20px 60px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .product-info h3 {
        font-size: 14px;
    }
    
    .product-info .price {
        font-size: 16px;
    }
    
    .product-quick-add {
        display: none;
    }
    
    .featured-collection {
        padding: 60px 20px;
    }
    
    .collection-content h2 {
        font-size: 28px;
    }
    
    .trust-container {
        gap: 30px;
    }
    
    .trust-badge {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .cart-drawer {
        width: 100%;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .product-modal {
        max-height: 100vh;
        border-radius: 0;
    }
    
    .modal-details {
        padding: 25px;
    }
    
    .modal-details h2 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .collection-images {
        height: 250px;
    }
    
    .collection-img.img-1 {
        width: 70%;
    }
    
    .collection-img.img-2 {
        width: 60%;
    }
}
