/**
 * Cable Protector eCommerce - Main Stylesheet
 * Mobile-first responsive design with Bangla font support
 */

/* ==================== CSS Variables ==================== */
:root {
    --primary-color: #e91e63;
    --primary-dark: #c2185b;
    --primary-light: #f8bbd9;
    --secondary-color: #2196f3;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --danger-color: #f44336;
    --text-color: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a2e;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50px;
    --transition: all 0.3s ease;
    --font-family: 'Noto Sans Bengali', sans-serif;
}

/* ==================== Reset & Base ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    outline: none;
}

input, select, textarea {
    font-family: inherit;
    font-size: 16px;
}

/* ==================== Container ==================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ==================== Header ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-color);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 12px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    font-size: 1.5rem;
}

.header-cta {
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
}

.header-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ==================== Hero Section ==================== */
.hero {
    padding-top: 60px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
}

/* Product Showcase Section */
.product-showcase {
    background: linear-gradient(135deg, #4a1942 0%, #2d1b3d 100%);
    padding: 25px 0 35px;
    position: relative;
}

.showcase-carousel .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.showcase-carousel .carousel-btn.prev {
    left: 5px;
}

.showcase-carousel .carousel-btn.next {
    right: 5px;
}

.showcase-header {
    text-align: center;
    margin-bottom: 24px;
}

.showcase-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.showcase-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.showcase-carousel {
    display: flex;
    align-items: center;
    padding: 0 40px;
    position: relative;
}

.showcase-track {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 10px 10px 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    scroll-snap-type: x mandatory;
}

.showcase-track .product-card:first-child {
    margin-left: 5px;
}

.showcase-track .product-card:last-child {
    margin-right: 5px;
}

.showcase-track::-webkit-scrollbar {
    display: none;
}

.product-card {
    min-width: 220px;
    max-width: 220px;
    background: #f5f5f5;
    scroll-snap-align: center;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
}

.product-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    background: #e0e0e0;
}

/* Desktop styles for product showcase */
@media (min-width: 768px) {
    .product-showcase {
        padding: 40px 20px 50px;
    }
    
    .showcase-title {
        font-size: 2rem;
    }
    
    .showcase-carousel {
        max-width: 1100px;
        margin: 0 auto;
        justify-content: center;
    }
    
    .showcase-track {
        justify-content: center;
        gap: 20px;
        overflow: visible;
    }
    
    .product-card {
        min-width: 180px;
        max-width: 180px;
    }
    
    .product-card img {
        height: 170px;
    }
    
    .carousel-btn {
        display: none;
    }
    
    .carousel-dots {
        display: none;
    }
}

/* Large desktop */
@media (min-width: 1024px) {
    .product-card {
        min-width: 190px;
        max-width: 190px;
    }
    
    .product-card img {
        height: 180px;
    }
}

.color-label {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 5;
}

.color-label.white {
    background: #4CAF50;
    color: white;
}

.color-label.black {
    background: #333;
    color: white;
}

.color-label.multicolor {
    background: #9C27B0;
    color: white;
}

.color-label.blue {
    background: #2196F3;
    color: white;
}

.color-label.pink {
    background: #FFB6C1;
    color: #333;
}

.card-footer {
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}

.gift-badge {
    font-size: 0.7rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-tag {
    background: var(--primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    z-index: 10;
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: white;
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    transition: var(--transition);
}

.carousel-dots .dot.active {
    background: #ffffff;
    transform: scale(1.2);
}

/* Hero Content */
.hero-content {
    padding: 32px 0 48px;
    text-align: center;
}

.hero-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 12px;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 24px;
}

/* Price Card */
.price-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.price-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.price-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.price-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    position: relative;
}

.price-option.highlight {
    background: linear-gradient(135deg, var(--primary-light) 0%, #fce4ec 100%);
    border: 2px solid var(--primary-color);
}

.set-name {
    font-weight: 600;
}

.set-price {
    font-weight: 700;
    color: var(--primary-color);
}

.free-badge {
    position: absolute;
    top: -10px;
    right: 10px;
    background: var(--success-color);
    color: white;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
}

.delivery-info {
    background: #e3f2fd;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.delivery-info p {
    margin-bottom: 4px;
}

.free-delivery-note {
    color: var(--success-color);
    font-weight: 600;
}

/* CTA Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 16px 40px;
    border-radius: var(--radius-full);
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.cta-button .arrow {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.cta-button:hover .arrow {
    transform: translateX(5px);
}

/* Pulse Animation */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* ==================== Features Section ==================== */
.features {
    padding: 60px 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.feature-card {
    background: var(--bg-light);
    padding: 24px 16px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ==================== Problem & Solution Section ==================== */
.problem-solution {
    padding: 60px 0;
    background: var(--bg-light);
}

.problem-solution .container {
    display: grid;
    gap: 24px;
}

.problem-box, .solution-box {
    padding: 24px;
    border-radius: var(--radius-lg);
}

.problem-box {
    background: #ffebee;
    border-left: 4px solid var(--danger-color);
}

.solution-box {
    background: #e8f5e9;
    border-left: 4px solid var(--success-color);
}

.problem-box h2, .solution-box h2 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.problem-box ul li, .solution-box ul li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    font-size: 0.95rem;
}

.problem-box ul li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: var(--danger-color);
    font-weight: bold;
}

.solution-box ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* ==================== Trust Section ==================== */
.trust-section {
    padding: 60px 0;
    background: white;
}

.trust-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.trust-badge {
    text-align: center;
    padding: 24px 16px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.trust-badge:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.badge-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.trust-badge h4 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.trust-badge p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ==================== Testimonials Section ==================== */
.testimonials {
    padding: 60px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.testimonials .section-title {
    color: white;
}

.testimonials-grid {
    display: grid;
    gap: 20px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.testimonial-stars {
    margin-bottom: 12px;
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.testimonial-author {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.author-name {
    font-weight: 600;
}

.author-location {
    opacity: 0.8;
}

/* ==================== Order Form Section ==================== */
.order-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.order-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.order-form {
    background: white;
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Set Selections */
.set-selections {
    margin-bottom: 20px;
}

.set-selection {
    background: var(--bg-light);
    padding: 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.set-selection h4 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.set-selection .form-group {
    margin-bottom: 8px;
}

.hidden {
    display: none !important;
}

/* Order Summary */
.order-summary {
    background: #faf3e0;
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    border: 2px dashed #d4a574;
}

.order-summary h4 {
    margin-bottom: 16px;
    color: var(--text-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.summary-row.total {
    border-bottom: none;
    padding-top: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--success-color) 0%, #388e3c 100%);
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form Errors */
.form-errors {
    margin-top: 16px;
    padding: 16px;
    background: #ffebee;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--danger-color);
}

.form-errors p {
    color: var(--danger-color);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

/* ==================== Footer ==================== */
.footer {
    padding: 40px 0;
    background: var(--bg-dark);
    color: white;
    text-align: center;
}

.footer-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 8px;
}

.copyright {
    margin-top: 20px;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* ==================== Responsive Design ==================== */
@media (min-width: 768px) {
    .carousel {
        height: 450px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .problem-solution .container {
        grid-template-columns: 1fr 1fr;
    }
    
    .trust-badges {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .order-form {
        padding: 40px;
    }
}

@media (min-width: 1024px) {
    .carousel {
        height: 500px;
    }
    
    .hero-content {
        padding: 48px 0 80px;
    }
    
    .price-card {
        max-width: 450px;
    }
}

/* ==================== Utility Classes ==================== */
.text-center { text-align: center; }
.text-primary { color: var(--primary-color); }
.text-success { color: var(--success-color); }
.text-danger { color: var(--danger-color); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }

/* ==================== Sticky Call Button ==================== */
.sticky-call-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    padding: 12px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    text-decoration: none;
}

.sticky-call-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.sticky-call-btn .call-icon {
    font-size: 1.1rem;
    animation: ring 1.5s ease-in-out infinite;
}

@keyframes ring {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-10deg); }
    20%, 40% { transform: rotate(10deg); }
    50% { transform: rotate(0deg); }
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .sticky-call-btn {
        bottom: 15px;
        right: 15px;
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}
