/* ============================================
   Beteck Shop - Custom Styles
   Author: Beteck Team
   Description: Custom CSS for personalized necklace landing page
   ============================================ */

/* ============================================
   1. Root Variables & Base Styles
   ============================================ */
:root {
    --primary-red: #DC143C;
    --dark-red: #B91327;
    --gold: #D4AF37;
    --black: #1a1a1a;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --border-color: #e0e0e0;
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-primary);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    color: var(--black);
}

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

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

/* ============================================
   2. Navigation
   ============================================ */
.navbar {
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar .logo {
    height: 50px;
    transition: var(--transition);
}

.language-switcher .btn {
    border-radius: 25px;
    font-size: 0.9rem;
}

.language-switcher .dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-switcher .dropdown-item:hover {
    background-color: var(--primary-red);
    color: var(--white);
}

/* ============================================
   3. Hero Section
   ============================================ */
.hero-section {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
}

.hero-content {
    padding: 20px 0;
}

.hero-content .badge {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-content h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--black);
}

.hero-content .lead {
    font-size: 1.1rem;
    color: #555;
}

/* Product Carousel */
#productCarousel {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    position: relative;
}

#productCarousel .carousel-item img {
    border-radius: 15px;
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(220, 20, 60, 0.8);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: var(--transition);
}

#productCarousel:hover .carousel-control-prev,
#productCarousel:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-red);
}

.limited-offer-badge {
    position: absolute;
    top: 20px;
    right: 30px;
    background: var(--primary-red);
    color: var(--white);
    padding: 12px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
    animation: pulse 2s infinite;
    z-index: 10;
}

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

/* Price Section */
.price-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.original-price {
    font-size: 1.5rem;
    color: #999;
    text-decoration: line-through;
}

.current-price {
    font-size: 2.5rem;
    color: var(--primary-red);
    font-weight: 700;
}

.discount-badge {
    background: var(--gold);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Features */
.features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.feature-item i {
    font-size: 1.2rem;
}

.btn-order-now {
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(220, 20, 60, 0.3);
    transition: var(--transition);
}

.btn-order-now:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.4);
}

/* ============================================
   4. Order Form Section
   ============================================ */
.order-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.order-form-card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.order-form-card h2 {
    color: var(--black);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.form-label {
    font-weight: 600;
    color: var(--black);
    margin-bottom: 8px;
}

.form-control,
.form-select {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 0.2rem rgba(220, 20, 60, 0.25);
}

/* Engraving Fields */
.engraving-item {
    background: var(--light-gray);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-red);
}

.engraving-item h5 {
    color: var(--primary-red);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

/* Customer Info Section */
.customer-info-section {
    background: #fff9f0;
    padding: 25px;
    border-radius: 10px;
    border: 2px dashed var(--gold);
}

.customer-info-section h4 {
    color: var(--black);
    margin-bottom: 1.5rem;
}

/* Price Summary */
.price-summary {
    background: var(--light-gray);
    padding: 25px;
    border-radius: 10px;
    border: 2px solid var(--border-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 1rem;
}

.summary-row:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

.total-row {
    font-size: 1.3rem;
    font-weight: 700;
    padding-top: 15px;
}

.savings-row {
    background: #d4edda;
    margin: 15px -25px -25px;
    padding: 15px 25px;
    border-radius: 0 0 10px 10px;
}

/* Buttons */
.btn-danger {
    background: var(--primary-red);
    border: none;
    border-radius: 50px;
    padding: 15px 30px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-danger:hover {
    background: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.3);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-whatsapp:hover {
    background: #1EBE57;
    color: var(--white);
    transform: translateY(-2px);
}

/* ============================================
   5. Why Choose Us Section
   ============================================ */
.why-choose-section {
    padding: 80px 0;
    background: var(--white);
}

.why-choose-section h2 {
    font-size: 2.5rem;
    color: var(--black);
}

.feature-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: var(--transition);
    height: 100%;
}

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

.icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.icon-wrapper i {
    font-size: 2rem;
    color: var(--white);
}

.feature-card h5 {
    font-size: 1.2rem;
    margin: 15px 0;
    color: var(--black);
}

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

/* ============================================
   6. Footer
   ============================================ */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 20px;
}

.footer h5 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer p,
.footer li {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer a {
    color: #ccc;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--primary-red);
}

.footer ul li {
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--gold);
    transform: scale(1.1);
}

.footer hr {
    border-color: #444;
    opacity: 0.3;
}

/* ============================================
   7. Modal Styles
   ============================================ */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    border-radius: 15px 15px 0 0;
    border-bottom: none;
    padding: 20px 25px;
}

.modal-body {
    padding: 25px;
}

.modal-body ul {
    list-style: none;
    padding-left: 0;
}

.modal-body ul li {
    padding: 8px 0;
    font-size: 0.95rem;
}

.modal-footer {
    border-top: none;
    padding: 20px 25px;
}

/* ============================================
   8. Responsive Design
   ============================================ */
@media (max-width: 991px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 100px 0 60px;
    }
    
    #productCarousel .carousel-item img {
        height: 400px;
    }
    
    .order-form-card {
        padding: 30px 20px;
    }
    
    .why-choose-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .current-price {
        font-size: 2rem;
    }
    
    .original-price {
        font-size: 1.2rem;
    }
    
    #productCarousel .carousel-item img {
        height: 300px;
    }
    
    .limited-offer-badge {
        top: 10px;
        right: 10px;
        padding: 8px 15px;
        font-size: 0.8rem;
    }
    
    .order-form-card {
        padding: 25px 15px;
    }
    
    .order-form-card h2 {
        font-size: 1.5rem;
    }
    
    .feature-card {
        margin-bottom: 20px;
    }
    
    .price-summary {
        padding: 20px 15px;
    }
    
    .savings-row {
        margin: 15px -15px -15px;
        padding: 12px 15px;
    }
}

@media (max-width: 575px) {
    .navbar .logo {
        height: 40px;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .hero-content .lead {
        font-size: 1rem;
    }
    
    .btn-order-now {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    #productCarousel .carousel-item img {
        height: 250px;
    }
}

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

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* ============================================
   10. Utility Classes
   ============================================ */
.text-gold {
    color: var(--gold) !important;
}

.bg-gold {
    background-color: var(--gold) !important;
}

.border-gold {
    border-color: var(--gold) !important;
}

/* Loading State */
.loading {
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border: 3px solid var(--white);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Live Viewers Badge */
.live-viewers-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    animation: pulse 2s infinite;
}

.live-viewers-badge i {
    font-size: 1.1rem;
}

#viewer-count {
    font-weight: 700;
    font-size: 1rem;
}

/* Timeline Info */
.timeline-info {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    border-left: 4px solid var(--primary-red);
}

.timeline-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.timeline-badge i {
    font-size: 2rem;
    color: var(--primary-red);
}

.timeline-badge strong {
    color: var(--black);
    font-size: 1.1rem;
}

.timeline-badge small {
    color: #555;
    font-size: 0.95rem;
}

.express-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(220, 20, 60, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(220, 20, 60, 0.2);
}

.express-info i {
    font-size: 1.5rem;
}

.express-info small {
    color: var(--black);
    line-height: 1.5;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 15px rgba(37, 211, 102, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: white;
    transform: scale(1.1);
    box-shadow: 2px 2px 25px rgba(37, 211, 102, 0.8);
    text-decoration: none;
}

.whatsapp-float i {
    line-height: 60px;
}

/* Social Share Buttons */
.share-section {
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    border: 2px dashed var(--gold);
}

.share-text {
    font-weight: 600;
    color: var(--black);
    font-size: 1.1rem;
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-share {
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    color: white;
}

.btn-share i {
    margin-right: 5px;
}

.btn-share-facebook {
    background: linear-gradient(135deg, #1877f2 0%, #0d5dbf 100%);
}

.btn-share-facebook:hover {
    background: linear-gradient(135deg, #0d5dbf 0%, #1877f2 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.4);
}

.btn-share-twitter {
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
}

.btn-share-twitter:hover {
    background: linear-gradient(135deg, #0d8bd9 0%, #1da1f2 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(29, 161, 242, 0.4);
}

.btn-share-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.btn-share-whatsapp:hover {
    background: linear-gradient(135deg, #128c7e 0%, #25d366 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.btn-share-copy {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.btn-share-copy:hover {
    background: linear-gradient(135deg, #495057 0%, #6c757d 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.4);
}

/* Facebook Reviews Section */
.reviews-section {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    padding: 4rem 0;
    margin: 3rem 0;
}

.section-title-reviews {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.rating-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
}

.rating-stars {
    display: flex;
    gap: 0.25rem;
}

.rating-stars i {
    color: #FFD700;
    font-size: 1.5rem;
}

.rating-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--black);
}

.rating-count {
    color: #666;
    font-size: 1rem;
}

.review-card {
    background: white;
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.review-card iframe {
    border: none;
    width: 100%;
    height: 500px;
    border-radius: 10px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: var(--primary-red);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.carousel-control-prev {
    left: -70px;
}

.carousel-control-next {
    right: -70px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.btn-facebook-reviews {
    background: #1877f2;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-facebook-reviews:hover {
    background: #145dbf;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.3);
}

@media (max-width: 991px) {
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .carousel-control-prev {
        left: 10px;
    }
    
    .carousel-control-next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .section-title-reviews {
        font-size: 2rem;
    }
    
    .review-card iframe {
        height: 400px;
    }
}

/* Referral Modal */
.referral-modal .modal-content {
    border-radius: 20px;
    border: none;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.referral-icon {
    font-size: 5rem;
    color: var(--primary-red);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.referral-title {
    color: var(--black);
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 2rem;
}

.referral-subtitle {
    color: #555;
    font-size: 1.1rem;
}

.referral-offer-box {
    background: linear-gradient(135deg, var(--primary-red) 0%, #a00 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.3);
}

.referral-number {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    border-right: 3px solid white;
    padding-right: 20px;
}

.referral-text h4 {
    margin-bottom: 5px;
    font-weight: 600;
}

.referral-text p {
    font-size: 1.1rem;
}

.referral-steps {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.referral-step {
    position: relative;
    padding: 15px;
}

.step-number {
    position: absolute;
    top: -10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: var(--gold);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.step-icon {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 10px;
}

.referral-step p {
    margin: 0;
    font-weight: 500;
    color: var(--black);
}

.referral-note {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    text-align: left;
}

.referral-note i {
    color: #ff9800;
    margin-right: 8px;
}

.referral-valid {
    font-style: italic;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: var(--primary-red);
    color: var(--white);
}

::-moz-selection {
    background: var(--primary-red);
    color: var(--white);
}

/* Responsive adjustments for new elements */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float i {
        line-height: 50px;
    }
    
    .live-viewers-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .timeline-badge {
        flex-direction: column;
        text-align: center;
    }
    
    .express-info {
        flex-direction: column;
        text-align: center;
    }
}