/**
 * Professional E-commerce Store Frontend Styles
 * RTL-optimized CSS with modern design (Jude-inspired)
 */

/* ============================================
   ROOT VARIABLES & BASE STYLES
   ============================================ */

:root {
    --primary-color: #4F46E5;
    --primary-dark: #3F3DB5;
    --primary-light: #6D5FFF;
    --secondary-color: #8B5CF6;
    --background: #FFFFFF;
    --surface-light: #F8F9FA;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --border-color: #E5E7EB;
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    direction: rtl;
    text-align: right;
}

/* RTL Support */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .text-left {
    text-align: right !important;
}

[dir="rtl"] .text-right {
    text-align: left !important;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    padding: 10px 0;
    background: #1F2937;
    /* Dark background for accessibility */
    color: white;
    /* Ensure text is white */
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: white;
    /* Explicitly set text color */
}

/* ... existing code ... */

.discount-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #DC2626;
    /* Darker Red for better contrast */
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: pulse 2s infinite;
}

/* ... existing code ... */

.product-rating {
    color: #D97706 !important;
    /* Amber-600 for contrast (replaces #FFD700) */
    font-size: 14px;
    margin: 5px 0;
}

/* ... existing code ... */

.product-price-current {
    font-size: 1.4rem;
    font-weight: 700;
    color: #059669;
    /* Darker Green (Emerald-600) for contrast */
}

.product-price-original {
    font-size: 0.9rem;
    color: #4B5563;
    /* Darker Gray (Gray-600) for contrast */
    text-decoration: line-through;
}

.header-contact strong {
    font-weight: 600;
}

.header-contact a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.header-contact a:hover {
    opacity: 0.85;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    opacity: 0.9;
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.3rem;
}

.logo-image {
    max-height: 40px;
    max-width: 120px;
    object-fit: contain;
    border-radius: 4px;
}

nav.main-nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

nav.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
    padding-bottom: 3px;
}

nav.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: 0;
    width: 0;
    height: 2.5px;
    background: white;
    transition: var(--transition);
}

nav.main-nav a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-icon,
.cart-icon {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1.1rem;
}

.search-icon:hover,
.cart-icon:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.05);
}

.search-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: none !important;
    flex-direction: column;
    padding: 20px;
    align-items: center;
    backdrop-filter: blur(5px);
}

.search-bar-container.active {
    display: flex !important;
    animation: fadeIn 0.3s ease-out;
}

.search-bar-content {
    width: 100%;
    max-width: 600px;
    position: relative;
    margin-top: 100px;
}

.search-input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    /* Adjusted for RTL: 50px on Left for button */
    border-radius: 30px;
    border: none;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.close-search {
    position: absolute;
    left: 15px;
    /* Moved to Left for RTL */
    right: auto;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
}

@media (max-width: 768px) {
    .search-bar-content {
        margin-top: 80px;
        padding: 0 20px;
    }

    .search-input {
        font-size: 1rem;
        padding: 12px 20px 12px 45px;
    }
}

.search-results-container {
    width: 100%;
    max-width: 600px;
    margin-top: 20px;
    background: white;
    border-radius: 10px;
    overflow-y: auto;
    max-height: 60vh;
}

.search-result-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.search-result-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
}

.search-result-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.search-result-info h5 {
    margin: 0 0 5px;
    font-size: 1rem;
}

.search-result-price {
    font-weight: bold;
    color: var(--primary-color);
    margin: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -100px;
    left: -100px;
}

.hero-section::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    bottom: -50px;
    right: -50px;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.feature-item i {
    font-size: 1.8rem;
}

.feature-item-text h5 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 3px;
}

.feature-item-text small {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* ============================================
   PRODUCT GRID & CARDS
   ============================================ */

.section {
    padding: 60px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
    z-index: 2;
}

.product-link {
    display: block;
    outline: none;
}

.product-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    background: var(--surface-light);
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px 16px 0 0;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .product-image {
    transform: scale(1.08);
    opacity: 0.95;
}

.discount-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #DC2626;
    /* Dark Red for Accessibility */
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
    flex-grow: 0;
}

.product-title-link {
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.product-title-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.product-title-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

.product-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.4;
    flex-grow: 1;
}

.product-category {
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.product-price-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-grow: 0;
}

.product-price-current {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-price-original {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(79, 70, 229, 0.3);
}

/* ============================================
   FEATURED VS SPECIAL OFFERS
   ============================================ */

.featured-products-section {
    background: white;
}

.special-offers-section {
    background: var(--surface-light);
}

/* ============================================
   CATEGORY SECTION
   ============================================ */

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.category-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    background: var(--surface-light);
}

.category-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.category-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.category-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ============================================
   FEATURES SECTION (WHY CHOOSE US)
   ============================================ */

.why-choose-us {
    background: var(--surface-light);
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ============================================
   SIMPLE FOOTER
   ============================================ */

.simple-footer {
    background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
    color: #F3F4F6;
    padding: 40px 0 20px;
    margin-top: 60px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    direction: rtl;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0 0 8px 0;
}

.footer-brand p {
    font-size: 0.9rem;
    color: #D1D5DB;
    margin: 0;
    max-width: 350px;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.footer-links a {
    color: #D1D5DB;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    padding: 6px 0;
}

.footer-links a:hover {
    color: white;
    transform: translateY(-2px);
}

.footer-links a i {
    font-size: 0.85rem;
    opacity: 0.8;
}

.footer-bottom {
    padding-top: 20px;
    text-align: center;
    direction: rtl;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
    color: #9CA3AF;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-image-wrapper {
        height: 150px;
    }

    .product-info {
        padding: 10px;
    }

    .product-title {
        font-size: 0.95rem;
        margin-bottom: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .product-description {
        display: none;
        /* Hide description on mobile */
    }

    .product-rating {
        font-size: 11px !important;
        margin: 2px 0 !important;
    }

    .product-price-section {
        margin-bottom: 8px;
        gap: 5px;
    }

    .product-price-current {
        font-size: 1.1rem;
    }

    .btn-primary {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .discount-badge {
        font-size: 0.7rem;
        padding: 4px 8px;
        top: 8px;
        right: 8px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    nav.main-nav {
        display: none;
    }

    nav.main-nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
        padding: 20px;
        z-index: 1000;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        animation: slideDown 0.3s ease-out forwards;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .hamburger {
        display: flex;
    }

    .header-main {
        padding: 12px 15px;
    }

    .header-contact {
        font-size: 0.75rem;
        gap: 10px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .feature-cards {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }

    /* Footer responsive */
    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }

    .footer-links {
        width: 100%;
        justify-content: flex-start;
    }

    .footer-brand {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }

    .product-card {
        box-shadow: var(--shadow-sm);
    }

    .product-card:hover {
        transform: translateY(-4px);
    }

    .section {
        padding: 40px 15px;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .product-title {
        font-size: 0.95rem;
    }

    .btn-primary {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .hero-features {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .feature-cards {
        grid-template-columns: 1fr;
    }

    /* Footer mobile */
    .footer-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .footer-links a {
        font-size: 0.85rem;
    }

    .footer-brand h3 {
        font-size: 1.3rem;
    }

    .footer-brand p {
        font-size: 0.85rem;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.product-card {
    animation: slideInUp 0.5s ease-out;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

/* ============================================
   FORM STYLES
   ============================================ */

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* ============================================
   PRODUCT PAGE STYLES (Jude-inspired)
   ============================================ */

/* Breadcrumb */
.breadcrumb-section {
    background: var(--surface-light);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
}

.breadcrumb-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-link:hover {
    opacity: 0.8;
}

.breadcrumb-separator {
    color: var(--text-secondary);
}

.breadcrumb-current {
    color: var(--text-secondary);
}

/* Main Product Page */
.product-page {
    background: white;
}

.product-section {
    padding: 40px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

/* Product Gallery Column */
.product-gallery-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-image-wrapper {
    background: var(--surface-light);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.main-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-main-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 600px;
    object-fit: contain;
}

.image-placeholder {
    text-align: center;
    color: var(--text-secondary);
    padding: 60px 20px;
}

.image-placeholder i {
    font-size: 4rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.thumbnail-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid var(--border-color);
    transition: var(--transition);
    background: var(--surface-light);
}

.thumbnail-image:hover,
.thumbnail-image.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}

/* Product Info Column */
.product-info-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.product-header {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.3;
}

.product-category {
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-light);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.product-pricing {
    display: flex;
    align-items: center;
    gap: 15px;
}

.price-block {
    display: flex;
    align-items: center;
    gap: 12px;
}

.original-price {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.current-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.discount-badge {
    background: var(--error);
    color: white;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
}

.product-short-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.stock-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.stock-available {
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 6px;
}

.stock-unavailable {
    color: var(--error);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Variants Section */
.variants-section {
    padding: 20px;
    background: var(--surface-light);
    border-radius: 10px;
}

.variant-group {
    margin-bottom: 20px;
}

.variant-group:last-child {
    margin-bottom: 0;
}

.variant-label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.selected-value {
    color: var(--primary-color);
    margin-right: 5px;
}

.variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Color Swatches */
.color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.color-swatch {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    background-color: #f0f0f0;
}

.color-swatch:hover {
    transform: scale(1.1);
}

.color-swatch.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px white, 0 0 0 4px var(--primary-color);
}

/* Size Buttons */
.size-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.size-btn {
    padding: 10px 16px;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--text-primary);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.9rem;
}

.size-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.size-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Order Summary Box */
.order-summary-box {
    background: var(--surface-light);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
}

.summary-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.summary-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 0.9rem;
}

.summary-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.summary-value {
    color: var(--text-primary);
    font-weight: 600;
}

.summary-divider {
    height: 1px;
    background: var(--border-color);
    margin: 10px 0;
}

.summary-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.summary-total {
    font-size: 1.3rem;
}

/* ============================================
   ENHANCED FORM STYLES FOR ORDER PAGE
   ============================================ */

.form-header-box {
    background: linear-gradient(135deg, #4F46E5 0%, #8B5CF6 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.15);
}

.form-header-title {
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.form-header-title i {
    font-size: 1.5rem;
}

/* Form Input Wrapper with Icons */
.form-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input-icon {
    padding-right: 40px;
}

.form-field-icon {
    position: absolute;
    right: 12px;
    color: var(--primary-color);
    pointer-events: none;
    font-size: 1.1rem;
}

.form-label-floating {
    position: absolute;
    right: 12px;
    top: -20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    display: none;
}

.form-input-icon:focus~.form-label-floating,
.form-input-icon:not(:placeholder-shown)~.form-label-floating {
    display: block;
}

/* Modern Form Groups */
.form-group-inline {
    display: inline-block;
    width: 48%;
    margin-right: 2%;
    margin-bottom: 15px;
}

.form-group-inline:nth-child(even) {
    margin-right: 0;
}

.form-group-full {
    width: 100%;
}

/* Quantity Selector Modern */
.quantity-selector-modern {
    display: flex;
    align-items: center;
    gap: 15px;
}

.form-label-inline {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 80px;
}

.quantity-input-group-modern {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    flex: 1;
    max-width: 150px;
}

.quantity-input-group-modern .qty-btn {
    width: 45px;
    height: 45px;
    border: none;
    background: var(--surface-light);
    color: var(--primary-color);
    cursor: pointer;
    font-weight: 700;
    font-size: 1.2rem;
    transition: var(--transition);
}

.quantity-input-group-modern .qty-btn:hover {
    background: var(--primary-color);
    color: white;
}

.quantity-input-group-modern .qty-input {
    flex: 1;
    border: none;
    text-align: center;
    font-weight: 700;
    background: white;
    outline: none;
    font-size: 1.1rem;
}

/* Address Type Options Modern */
.address-type-options-modern {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.radio-option-modern {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    flex: 1;
    min-width: 140px;
}

.radio-option-modern input[type="radio"] {
    cursor: pointer;
    accent-color: var(--primary-color);
    width: 18px;
    height: 18px;
}

.radio-label {
    color: var(--text-primary);
}

/* Enhanced Order Summary Section */
.order-summary-section {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    margin: 25px 0;
    overflow: hidden;
}

.summary-header {
    background: var(--surface-light);
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.summary-header:hover {
    background: #f0f0f5;
}

.summary-header .summary-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.summary-toggle-icon {
    transition: var(--transition);
    color: var(--primary-color);
    font-size: 1.2rem;
}

.summary-toggle-icon.rotated {
    transform: rotate(180deg);
}

.summary-content-modern {
    padding: 20px;
    background: white;
    max-height: 500px;
    overflow-y: auto;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.summary-content-modern.collapsed {
    max-height: 0;
    padding: 0;
    overflow: hidden;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.summary-item:last-of-type {
    border-bottom: none;
}

.summary-product-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.summary-product-name {
    font-weight: 600;
    color: var(--text-primary);
}

.summary-qty-badge {
    background: var(--primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
}

.summary-product-price {
    font-weight: 700;
    color: var(--primary-color);
}

.summary-variant-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.summary-variant-text {
    color: var(--text-primary);
    font-weight: 600;
}

.summary-shipping-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-top: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
    margin: 15px 0;
    font-weight: 600;
}

.summary-shipping-label {
    color: var(--text-secondary);
}

.summary-shipping-value {
    color: var(--primary-color);
    font-size: 1rem;
}

.summary-total-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    font-size: 1.1rem;
}

.summary-total-label {
    font-weight: 700;
    color: var(--text-primary);
}

.summary-total-value {
    font-weight: 800;
    color: var(--primary-color);
    font-size: 1.4rem;
}

/* Form Actions */
.form-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
}

.btn-confirm-order,
.btn-whatsapp-order {
    padding: 16px 20px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    width: 100%;
}

.btn-confirm-order {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-confirm-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(79, 70, 229, 0.4);
}

.btn-confirm-order:active {
    transform: translateY(0);
}

.btn-confirm-order:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-whatsapp-order {
    background: linear-gradient(135deg, #25D366 0%, #20BA58 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp-order:active {
    transform: translateY(0);
}

/* Responsive Form */
@media (max-width: 768px) {
    .form-group-inline {
        display: block;
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .quantity-selector-modern {
        flex-direction: column;
        align-items: flex-start;
    }

    .quantity-input-group-modern {
        max-width: 100%;
    }

    .address-type-options-modern {
        flex-direction: column;
    }

    .radio-option-modern {
        min-width: 100%;
    }

    .form-header-title {
        font-size: 1.1rem;
    }
}

.form-section {
    padding: 20px;
    background: var(--surface-light);
    border-radius: 10px;
}

.form-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 15px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.required {
    color: var(--error);
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: var(--transition);
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-input:disabled {
    background: var(--surface-light);
    cursor: not-allowed;
}

.form-hint {
    display: block;
    margin-top: 4px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.error-message {
    display: block;
    font-size: 0.8rem;
    color: var(--error);
    margin-top: 4px;
}

.address-type-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
}

.radio-option input[type="radio"] {
    cursor: pointer;
    accent-color: var(--primary-color);
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Security Message */
.security-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: var(--success);
    color: white;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 10px;
}

/* Description Section */
.description-section {
    padding: 60px 0;
    background: white;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.description-wrapper {
    background: var(--surface-light);
    padding: 40px;
    border-radius: 12px;
}

.description-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.description-content {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
}

.description-content h3,
.description-content h4,
.description-content h5 {
    color: var(--text-primary);
    margin-top: 20px;
    margin-bottom: 10px;
}

.description-content ul,
.description-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.description-content li {
    margin-bottom: 8px;
}

.description-content strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* Related Products Section */
.related-section {
    padding: 60px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
    z-index: 2;
}

.product-link {
    display: block;
    outline: none;
}

.product-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.product-image-box {
    position: relative;
    overflow: hidden;
    background: var(--surface-light);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px 16px 0 0;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .card-image {
    transform: scale(1.08);
    opacity: 0.95;
}

.card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--error);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
}

.card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    min-height: 40px;
}

.card-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.card-original-price {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.card-current-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.card-link {
    display: block;
    text-align: center;
    padding: 8px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition);
}

.card-link:hover {
    background: var(--primary-dark);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .product-grid {
        gap: 30px;
    }

    .main-image-wrapper {
        min-height: 400px;
    }

    .product-title {
        font-size: 1.6rem;
    }

    .current-price {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .main-image-wrapper {
        min-height: 300px;
    }

    .product-title {
        font-size: 1.3rem;
    }

    .current-price {
        font-size: 1.4rem;
    }

    .product-section {
        padding: 25px 0;
    }

    .description-section {
        padding: 40px 0;
    }

    .description-wrapper {
        padding: 20px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .order-summary-box {
        order: -1;
    }
}

@media (max-width: 480px) {
    .product-grid {
        gap: 20px;
    }

    .product-title {
        font-size: 1.1rem;
    }

    .current-price {
        font-size: 1.2rem;
    }

    .breadcrumb-nav {
        font-size: 0.8rem;
    }

    .gallery-thumbnails {
        gap: 8px;
    }

    .thumbnail-image {
        width: 60px;
        height: 60px;
    }

    .variant-options {
        gap: 8px;
    }

    .color-swatch {
        width: 40px;
        height: 40px;
    }

    .form-input {
        font-size: 16px;
    }

    .submit-btn {
        padding: 12px;
        font-size: 0.9rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }
}

/* Footer Social Links */
.footer-social-wrapper h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.footer-social-links {
    display: flex;
    gap: 12px;
}

.footer-social-links a {
    width: 38px;
    height: 38px;
    background: var(--surface-light);
    color: var(--text-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

.footer-social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}