/* CLAUTEC Modern Professional CSS - Enhanced Design */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* Enhanced Color Palette */
    --teal: #00adc6;
    --teal-dark: #0090a2;
    --teal-light: #4DD0E1;
    --teal-deeper: #007786;
    --teal-bg: #E0F7FA;
    
    /* Professional Dark Theme */
    --dark: #1a202c;
    --dark-light: #2d3748;
    --dark-deeper: #171923;
    
    /* Enhanced Grays */
    --white: #FFFFFF;
    --gray-50: #F7FAFC;
    --gray-100: #EDF2F7;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E0;
    --gray-400: #A0AEC0;
    --gray-500: #718096;
    --gray-600: #4A5568;
    --gray-700: #2D3748;
    --gray-800: #1A202C;
    
    /* Typography Colors */
    --text-primary: #1A202C;
    --text-secondary: #4A5568;
    --text-muted: #718096;
    --text-light: #A0AEC0;
    
    /* Enhanced Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.15), 0 10px 10px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.25);
    --shadow-teal: 0 4px 14px rgba(0, 173, 198, 0.35);
    --shadow-purple: 0 8px 16px rgba(99, 102, 241, 0.2);
    
    /* Enhanced Border Radius */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    
    /* Enhanced Transitions */
    --transition-fast: 0.15s ease;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Status Colors */
    --success: #10B981;
    --success-light: #34D399;
    --warning: #F59E0B;
    --warning-light: #FBBF24;
    --danger: #EF4444;
    --danger-light: #F87171;
    --info: #3B82F6;
    --purple: #6366F1;
    --purple-light: #818CF8;
    --pink: #EC4899;
}

html { 
    scroll-behavior: smooth; 
    font-size: 16px;
}

body { 
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; 
    color: var(--text-primary); 
    line-height: 1.6; 
    background: var(--gray-50); 
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container { 
    width: 100%; 
    max-width: 1320px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

.accent { color: var(--teal); }

img { max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; transition: var(--transition-fast); }

/* Enhanced Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-primary);
}

.section-title { 
    font-size: clamp(1.75rem, 4vw, 2.5rem); 
    font-weight: 800; 
    text-align: center; 
    margin-bottom: 1rem; 
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin: 0 auto 2rem;
    max-width: 600px;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Enhanced Buttons */
.btn { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
    padding: 14px 32px; 
    border-radius: 50px; 
    font-weight: 600; 
    font-size: 0.95rem; 
    text-decoration: none; 
    cursor: pointer; 
    border: 2px solid transparent; 
    transition: all var(--transition); 
    background: none; 
    font-family: inherit; 
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.btn:hover::before {
    transform: translateX(100%);
}

.btn-primary { background: linear-gradient(135deg, var(--teal) 0%, color-mix(in srgb, var(--teal) 80%, black) 100%); color: var(--white); border: none; box-shadow: 0 4px 12px color-mix(in srgb, var(--teal) 40%, transparent); font-weight: 600; }
.btn-primary:hover { background: color-mix(in srgb, var(--teal) 80%, black); transform: translateY(-2px); box-shadow: 0 6px 16px color-mix(in srgb, var(--teal) 50%, transparent); }

.newsletter-form .btn-primary { background: linear-gradient(135deg, var(--secondary, #3b82f6) 0%, #1d4ed8 100%); box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4); }
.newsletter-form .btn-primary:hover { background: #1d4ed8; box-shadow: 0 6px 16px rgba(59, 130, 246, 0.5); }

.btn-outline { 
    background: transparent; 
    color: var(--white); 
    border-color: var(--white); 
}

.btn-outline:hover { 
    background: var(--white); 
    color: var(--teal-dark); 
    transform: translateY(-2px);
}

.btn-outline-dark { 
    background: transparent; 
    color: var(--teal); 
    border-color: var(--teal); 
}

.btn-outline-dark:hover { 
    background: var(--teal); 
    color: var(--white);
    transform: translateY(-2px);
}

.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-lg { padding: 18px 40px; font-size: 1.1rem; }
.btn-block { width: 100%; }
.btn-danger { 
    background: linear-gradient(135deg, var(--danger) 0%, #DC2626 100%); 
    color: var(--white); 
    border-color: transparent;
}
.btn-danger:hover { 
    background: #DC2626; 
    transform: translateY(-2px);
}

/* Premium Product Cards */
.promo-card { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; display: flex; align-items: center; justify-content: space-between; box-shadow: var(--shadow); border: 1px solid var(--gray-100); transition: var(--transition); overflow: hidden; position: relative; }
.product-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    border: 1px solid var(--gray-100);
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
    min-height: 400px;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--teal), var(--purple), var(--teal));
    transform: scaleX(0);
    transition: transform var(--transition);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--teal);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-image-wrap {
    position: relative;
    overflow: hidden;
    background: var(--white);
    aspect-ratio: 1;
    flex-shrink: 0;
}

.product-link {
    display: block;
    color: inherit;
}

.product-image {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.08) translateY(-4px);
}

.product-hover-actions {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(26, 32, 44, 0.3) 0%, rgba(26, 32, 44, 0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
    backdrop-filter: blur(2px);
}

.product-card:hover .product-hover-actions {
    opacity: 1;
    pointer-events: auto;
}

.product-hover-actions .btn {
    transform: translateY(20px);
    opacity: 0;
    transition: all var(--transition);
}

.product-card:hover .product-hover-actions .btn {
    transform: translateY(0);
    opacity: 1;
}

.product-card:hover .product-hover-actions .btn:nth-child(2) {
    transition-delay: 0.1s;
}

.product-info-link {
    color: inherit;
    display: block;
}

.product-info-link:hover h3 {
    color: var(--teal);
}

.product-info {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--white);
    min-height: 0;
}

.product-info-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.product-category {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--teal);
    margin-bottom: 0.5rem;
}

.product-info h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    transition: color var(--transition-fast);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.8rem;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 0.75rem;
}

.product-rating svg {
    width: 16px;
    height: 16px;
    color: #FFC107;
}

.product-rating span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-left: 6px;
    font-weight: 500;
}

.product-price-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--teal);
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-old-price {
    font-size: 0.9rem;
    color: var(--text-light);
    text-decoration: line-through;
    font-weight: 500;
}

.product-installment {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    line-height: 1.3;
    background: var(--gray-50);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.product-shipping-tag {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
    padding: 3px 8px;
    border-radius: 12px;
}

.btn-add-cart {
    width: 100%;
    gap: 8px;
    margin-top: auto;
    flex-shrink: 0;
}

.product-placeholder {
    color: var(--teal);
    opacity: 0.4;
}

.product-placeholder svg {
    width: 100px;
    height: 75px;
}

/* Enhanced Badges */
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 3;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(4px);
}

.product-badge.sale {
    background: linear-gradient(135deg, var(--danger) 0%, #DC2626 100%);
    color: var(--white);
}

.product-badge.low-stock {
    background: linear-gradient(135deg, var(--warning) 0%, #D97706 100%);
    color: var(--white);
}

.product-badge.out-of-stock {
    background: var(--text-light);
    color: var(--white);
}

.product-badge.new {
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
    color: var(--white);
}

/* Enhanced Wishlist Button */
.product-wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    border: none;
    box-shadow: var(--shadow);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    z-index: 3;
    color: var(--text-light);
}

.product-wishlist-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.product-wishlist-btn:hover, .product-wishlist-btn.active {
    color: var(--danger);
}

.product-wishlist-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-wishlist-btn.active svg {
    transform: scale(1.2);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    align-items: stretch;
}

.products-grid .product-card:nth-child(3n+1) {
    animation: fade-in-up 0.6s ease backwards;
}

.products-grid .product-card:nth-child(3n+2) {
    animation: fade-in-up 0.6s ease 0.1s backwards;
}

.products-grid .product-card:nth-child(3n+3) {
    animation: fade-in-up 0.6s ease 0.2s backwards;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Form Elements */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition-fast);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(0, 173, 198, 0.1);
}

.form-group input::placeholder {
    color: var(--text-light);
}

/* Enhanced Header */
.header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--gray-100);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 32px 20px;
}

.trust-bar-inner {
    padding: 15px 20px !important;
}

/* Enhanced Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-text {
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo-text small {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    opacity: 0.7;
    text-transform: uppercase;
}

/* Enhanced Search */
.header-search {
    flex: 1;
    max-width: 600px;
}

.header-search form {
    display: flex;
    background: var(--white);
    border-radius: 50px;
    overflow: hidden;
    padding: 4px 4px 4px 20px;
    align-items: center;
    border: 2px solid var(--gray-200);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.header-search form:focus-within {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(0, 173, 198, 0.1);
}

.header-search input {
    flex: 1;
    padding: 10px 12px;
    border: none;
    font-size: 0.95rem;
    color: var(--text-primary);
    outline: none;
    font-family: inherit;
    background: none;
}

.header-search input::placeholder {
    color: var(--text-light);
}

.header-search button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
    color: var(--white);
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.header-search button:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-teal);
}

.header-search button svg {
    width: 20px;
    height: 20px;
}

/* Enhanced Sections */
.featured-products, .products, .category-page, .search-page { padding: 80px 0; }
.featured-products { background: linear-gradient(180deg, var(--teal-bg) 0%, #f4f6f8 100%); }

/* Enhanced Categories Section */
.categories {
    padding: 80px 0;
    background: linear-gradient(180deg, #f4f6f8 0%, var(--teal-bg) 100%);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    background: var(--white);
    border: 2px solid var(--gray-100);
    border-radius: var(--radius-xl);
    text-decoration: none;
    transition: all var(--transition);
    text-align: center;
    box-shadow: var(--shadow);
}

.category-card:hover {
    background: var(--white);
    border-color: var(--teal);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.category-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--teal-bg) 0%, rgba(0, 173, 198, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal);
    transition: all var(--transition);
}

.category-card:hover .category-icon {
    background: var(--teal);
    color: var(--white);
    transform: scale(1.1);
}

.category-icon svg {
    width: 28px;
    height: 28px;
}

.category-custom-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 50%;
}

.category-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* Enhanced Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    margin-bottom: 1.5rem;
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1rem;
    max-width: 300px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all var(--transition);
}

.footer-social a:hover {
    background: var(--teal);
    border-color: var(--teal);
    transform: translateY(-4px);
    box-shadow: var(--shadow-teal);
}

.footer-social svg {
    width: 20px;
    height: 20px;
}

.footer h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-links ul {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--teal);
    padding-left: 6px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .header-inner {
        padding: 10px 16px;
        gap: 1rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 16px;
    }
    
    .category-card {
        padding: 20px;
    }
    
    .product-info {
        padding: 1.25rem;
    }
    
    .product-price {
        font-size: 1.25rem;
    }
}