/* ========================================
   GLOBAL STYLES
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    overflow-x: hidden;
}

body.seed-rtl {
    direction: rtl;
    text-align: right;
}

/* Translation Overlay */
.seed-translation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    flex-direction: column;
}

.seed-translation-overlay.active {
    display: flex;
}

.seed-translation-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.seed-translation-text {
    color: #fff;
    margin-top: 1rem;
    font-size: 1.1rem;
}

/* ========================================
   NAVBAR STYLES
======================================== */
.seed-navbar {
    background: #ffffff;
    padding: 1rem 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.seed-navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.seed-logo {
    font-size: 1.2rem;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.seed-logo-icon {
    font-weight: bold;
    font-size: 1.4rem;
    letter-spacing: -2px;
}

.seed-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.seed-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #000;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.seed-nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.seed-nav-links li a {
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.seed-nav-links li a:hover {
    color: #000;
    background-color: #e8e8e8;
}

.seed-lang-dropdown {
    display: flex;
    gap: 0.5rem;
}

.seed-lang-btn {
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.seed-lang-btn:hover {
    color: #000;
}

.seed-lang-btn.seed-lang-active {
    color: #000;
    font-weight: 500;
    background-color: #f0f0f0;
}

/* ========================================
   MODELS SECTION
======================================== */
.seed-models-section {
    padding: 4rem 2rem;
    background: #f5f5f5;
    min-height: calc(100vh - 80px);
}

.seed-models-container {
    max-width: 1400px;
    margin: 0 auto;
}

.seed-models-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 3rem;
}

/* Tabs Navigation */
.seed-tabs-nav {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0.5rem;
}

.seed-tab-item {
    font-size: 1.1rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    position: relative;
    padding-bottom: 1rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.seed-tab-item:hover {
    color: #4a90e2;
}

.seed-tab-item.seed-tab-active {
    color: #4a90e2;
    font-weight: 600;
}

.seed-tab-item.seed-tab-active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #4a90e2;
    border-radius: 2px 2px 0 0;
}

/* Tab Content */
.seed-tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.seed-tab-content-active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   CAROUSEL WITH NAVIGATION BUTTONS
======================================== */

/* Carousel Wrapper with Navigation Buttons */
.products-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Navigation Buttons */
.carousel-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #4a90e2;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.carousel-nav-btn:hover {
    background: #357abd;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(74, 144, 226, 0.4);
}

.carousel-nav-btn:active {
    transform: scale(0.95);
}

.carousel-nav-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
    box-shadow: none;
}

.carousel-nav-btn svg {
    width: 24px;
    height: 24px;
}

/* Products Scroll Container */
.products-scroll-wrapper {
    display: flex;
    gap: 1.5rem;
    overflow-x: hidden;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 1rem 0;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

/* Custom Scrollbar - Hidden on Desktop */
.products-scroll-wrapper::-webkit-scrollbar {
    height: 0px;
}

/* Product Card */
.product-card {
    flex: 0 0 350px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    scroll-snap-align: start;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
}

/* Gradient Backgrounds */
.seed-model-gradient-1 {
    background: linear-gradient(135deg, #a8e6e1 0%, #c8f7dc 50%, #e8f5f0 100%);
}

.seed-model-gradient-2 {
    background: linear-gradient(135deg, #e8e8f0 0%, #d0d0e8 50%, #c8c8e0 100%);
    position: relative;
}

.seed-model-gradient-2::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(100, 100, 200, 0.3), transparent);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.seed-model-gradient-3 {
    background: linear-gradient(135deg, #e3f2fd 0%, #90caf9 50%, #64b5f6 100%);
}

.seed-model-gradient-4 {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 50%, #f48fb1 100%);
}

.seed-model-gradient-5 {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 50%, #ffcc80 100%);
}

.seed-model-gradient-6 {
    background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 50%, #80cbc4 100%);
}

.seed-model-gradient-7 {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 50%, #ce93d8 100%);
}

.seed-model-gradient-8 {
    background: linear-gradient(135deg, #e8eaf6 0%, #c5cae9 50%, #9fa8da 100%);
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4a90e2;
    margin-bottom: 0.75rem;
}

.product-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    min-height: 60px;
}

.product-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #4a90e2;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: transparent;
    border: 2px solid #4a90e2;
}

.product-btn:hover {
    background: #4a90e2;
    color: #fff;
    transform: translateY(-2px);
}

/* ========================================
   FOOTER STYLES
======================================== */
.seed-footer {
    background: linear-gradient(135deg, #e8f5f0 0%, #a8dcc8 100%);
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
}

.seed-footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr 200px;
    gap: 3rem;
    margin-bottom: 3rem;
}

.seed-footer-logo {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #000;
}

.seed-footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.seed-footer-column h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 1rem;
}

.seed-footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.seed-footer-column ul li {
    margin-bottom: 0.7rem;
}

.seed-footer-column ul li a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.seed-footer-column ul li a:hover {
    color: #000;
}

.seed-footer-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.seed-qr-code {
    width: 120px;
    height: 120px;
    background: #fff;
    border-radius: 8px;
    padding: 5px;
    margin-bottom: 0.5rem;
}

.seed-qr-text {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

.seed-footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    font-size: 0.9rem;
}

.seed-footer-legal {
    display: flex;
    gap: 2rem;
}

.seed-footer-legal a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.seed-footer-legal a:hover {
    color: #000;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 992px) {
    .seed-menu-toggle {
        display: flex;
    }

    .seed-nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        gap: 0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .seed-nav-links.seed-menu-open {
        max-height: 400px;
    }

    .seed-nav-links li {
        border-bottom: 1px solid #f0f0f0;
    }

    .seed-nav-links li a {
        display: block;
        padding: 1rem 2rem;
    }

    .seed-models-title {
        font-size: 2.5rem;
    }

    .seed-tabs-nav {
        gap: 1.5rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .seed-tabs-nav::-webkit-scrollbar {
        display: none;
    }

    .seed-footer-container {
        grid-template-columns: 1fr;
    }

    .seed-footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-card {
        flex: 0 0 300px;
    }
}

@media (max-width: 768px) {
    .seed-models-section {
        padding: 2rem 1rem;
    }

    .seed-models-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    /* Hide navigation buttons on mobile */
    .carousel-nav-btn {
        display: none;
    }

    .products-carousel-wrapper {
        gap: 0;
    }

    /* Enable horizontal scrolling with touch */
    .products-scroll-wrapper {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 1rem;
    }

    /* Show scrollbar on mobile */
    .products-scroll-wrapper::-webkit-scrollbar {
        height: 4px;
    }

    .products-scroll-wrapper::-webkit-scrollbar-track {
        background: #e0e0e0;
        border-radius: 10px;
    }

    .products-scroll-wrapper::-webkit-scrollbar-thumb {
        background: #4a90e2;
        border-radius: 10px;
    }

    .products-scroll-wrapper::-webkit-scrollbar-thumb:hover {
        background: #357abd;
    }

    .product-card {
        flex: 0 0 280px;
    }

    .product-image {
        height: 180px;
    }

    .product-info {
        padding: 1.25rem;
    }

    .product-name {
        font-size: 1.2rem;
    }

    .product-desc {
        font-size: 0.85rem;
        min-height: 50px;
    }

    .seed-footer-links {
        grid-template-columns: 1fr;
    }

    .seed-footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .seed-models-title {
        font-size: 1.6rem;
    }

    .product-card {
        flex: 0 0 260px;
    }

    .product-info {
        padding: 1rem;
    }

    .product-name {
        font-size: 1.1rem;
    }

    .product-price {
        font-size: 1rem;
    }

    .product-desc {
        font-size: 0.8rem;
    }

    .product-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}


/* ==================== PURCHASE MODAL POPUP ==================== */

.purchase-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

.purchase-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.purchase-modal {
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
    border-radius: 24px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(30px);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.purchase-modal-overlay.active .purchase-modal {
    transform: scale(1) translateY(0);
}

.purchase-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.purchase-modal-close:hover {
    background: #fff;
    transform: rotate(90deg);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.purchase-modal-close svg {
    width: 20px;
    height: 20px;
    color: #333;
}

.purchase-modal-content {
    padding: 3rem 2.5rem;
}

.purchase-modal-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000;
    text-align: center;
    margin-bottom: 0.5rem;
}

.purchase-modal-subtitle {
    font-size: 1rem;
    color: #666;
    text-align: center;
    margin-bottom: 2rem;
}

.purchase-form-progress {
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4a90e2 0%, #357abd 100%);
    width: 25%;
    transition: width 0.4s ease;
    border-radius: 10px;
}

.progress-text {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

/* Form Steps */
.purchase-form {
    position: relative;
}

.form-step {
    display: none;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.4s ease;
}

.form-step.form-step-active {
    display: block;
    opacity: 1;
    transform: translateX(0);
    animation: slideInForm 0.4s ease;
}

@keyframes slideInForm {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-label {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 1rem;
}

.input-group {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.form-input {
    flex: 1;
    padding: 1rem 1.25rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    color: #000;
    background: #ffffff;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: #4a90e2;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-arrow-btn {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.form-arrow-btn svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.form-arrow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.4);
}

.form-arrow-btn:hover svg {
    transform: translateX(4px);
}

.form-arrow-btn:active {
    transform: translateY(0);
}

.form-submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.form-submit-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.form-submit-btn:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.form-submit-btn:hover svg {
    transform: rotate(45deg);
}

.form-back-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0;
    margin-top: 1rem;
    transition: color 0.3s ease;
}

.form-back-btn:hover {
    color: #4a90e2;
}

.form-error {
    display: block;
    color: #ff4444;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    min-height: 20px;
}

.form-success {
    display: none;
    text-align: center;
    padding: 2rem;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.4s ease;
}

.form-success.form-success-active {
    display: block;
    opacity: 1;
    transform: scale(1);
    animation: successPopIn 0.5s ease;
}

@keyframes successPopIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #fff;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3);
}

.form-success h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 0.5rem;
}

.form-success p {
    font-size: 1rem;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .purchase-modal-overlay {
        padding: 1rem;
    }

    .purchase-modal {
        max-height: 85vh;
        border-radius: 16px;
    }

    .purchase-modal-content {
        padding: 2rem 1.5rem;
    }

    .purchase-modal-title {
        font-size: 1.8rem;
    }

    .purchase-modal-close {
        top: 1rem;
        right: 1rem;
        width: 36px;
        height: 36px;
    }

    .form-label {
        font-size: 1rem;
    }

    .form-input {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }

    .form-arrow-btn {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .purchase-modal-overlay {
        padding: 0.5rem;
    }

    .purchase-modal-title {
        font-size: 1.5rem;
    }

    .purchase-modal-content {
        padding: 1.5rem 1rem;
    }

    .input-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .form-arrow-btn {
        width: 100%;
        height: 50px;
    }

    .form-submit-btn {
        padding: 0.875rem 1.5rem;
    }
}