:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --accent-color: #c5a992; /* Gold/Beige for premium feel */
    --text-color: #333333;
    --light-gray: #f4f4f4;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box_sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--secondary-color);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header */
header {
    background: var(--secondary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
    display: inline-block;
}

.logo-img {
    height: 55px;
    width: 55px;
    display: block;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.logo:hover .logo-img {
    opacity: 0.85;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-icons i {
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.nav-icons i:hover {
    color: var(--accent-color);
}

/* Hero Slider */
.lt-hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    transition: transform 6s ease;
}

.slide.active .slide-bg {
    transform: scale(1);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.slide-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 2rem;
}

.slide-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.3s;
}

.slide.active .slide-title {
    opacity: 1;
    transform: translateY(0);
}

.slide-subtitle {
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.5s;
}

.slide.active .slide-subtitle {
    opacity: 1;
    transform: translateY(0);
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #000; /* changed to black for better contrast on white pages */
    color: #fff; /* changed to white */
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slide .btn-primary {
    background: var(--secondary-color);
    color: var(--primary-color);
    margin-top: 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.7s;
}

.slide.active .btn-primary {
    opacity: 1;
    transform: translateY(0);
}

.btn-primary:hover {
    background: var(--accent-color);
    color: #fff;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: #fff;
    padding: 4rem 5% 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-section h3 {
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.footer-section p, .footer-section a {
    color: #ccc;
    margin-bottom: 0.8rem;
    display: block;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #888;
}

/* Responsive */
@media (max-width: 768px) {
    .slide-title {
        font-size: 2.5rem;
    }
    
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }
}

/* Advanced Product Card Styles */
.advanced-product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
    display: flex;
    flex-direction: column;
}

.advanced-product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.card-image-container {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: #f9f9f9;
}

.card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.advanced-product-card:hover .card-image-container img {
    transform: scale(1.1);
}

.card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-color);
    color: #fff;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.card-quick-view {
    position: absolute;
    bottom: -50px; /* Hidden initially */
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #000;
    border: none;
    padding: 10px 25px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: bottom 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    width: 80%;
    text-align: center;
    opacity: 0;
}

.advanced-product-card:hover .card-quick-view {
    bottom: 20px;
    opacity: 1;
}

.card-details {
    padding: 1.5rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-details h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.card-price {
    display: block;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.card-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: auto;
}

.btn-action-cart {
    background: #000;
    color: #fff;
    border: 1px solid #000;
    padding: 10px 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-action-cart:hover {
    background: #fff;
    color: #000;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff;
    color: #333;
    padding: 15px 25px;
    border-left: 5px solid var(--accent-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 4px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: slideInRight 0.5s ease forwards;
}

.toast-notification.success { border-left-color: #4caf50; }
.toast-notification.error { border-left-color: #f44336; }

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* User Dropdown Menu */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-btn {
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 10px;
    border: 1px solid #f0f0f0;
    animation: fadeIn 0.2s ease;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.dropdown-content a:hover {
    background-color: #f9f9f9;
    color: var(--accent-color);
}

.dropdown-content.show {
    display: block;
}

/* ========== MODAL STYLES ========== */
#productModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(12px);
    animation: fadeIn 0.3s ease;
}

#productModal > div {
    background: #fff;
    width: 90%;
    max-width: 1100px;
    height: 700px;
    display: flex;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    animation: modalAppear 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 35px 70px -12px rgba(0, 0, 0, 0.4);
}

#productModal > div > div:first-child {
    flex: 1.2;
    background: #fff;
    position: relative;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

#modalImg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#productModal > div > div:last-child {
    flex: 1;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: #fff;
}

/* Carousel Navigation Button Hover Effects */
#carouselPrev:hover, #carouselNext:hover {
    background: rgba(255,255,255,1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}


/* Thumbnail Strip Styling */
#thumbnailStrip {
    display: flex !important;
    gap: 12px;
    padding: 15px;
    overflow-x: auto;
    max-width: 100%;
    background: #fff;
    border-radius: 8px;
    min-height: 110px; /* Ensure strip is always visible */
}

#thumbnailStrip img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid #e0e0e0;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

#thumbnailStrip img:hover {
    border-color: #666;
    transform: scale(1.05);
}

#thumbnailStrip img.active {
    border-color: #000;
}

#thumbnailStrip::-webkit-scrollbar {
    height: 8px;
}

#thumbnailStrip::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#thumbnailStrip::-webkit-scrollbar-thumb {
    background: #c5a992;
    border-radius: 10px;
}

#thumbnailStrip::-webkit-scrollbar-thumb:hover {
    background: #b39882;
}

#productModal button[onclick="closeModal()"] {
    position: absolute;
    top: 25px;
    right: 25px;
    background: #fff;
    color: #000;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

#productModal button[onclick="closeModal()"]:hover {
    background: #000;
    color: #fff;
    transform: rotate(90deg);
}

#modalCategory {
    color: #999;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2.5px;
    font-weight: 600;
    display: block;
    margin-bottom: 0.8rem;
}

#modalName {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    margin: 0 0 1.2rem;
    color: #1a1a1a;
    line-height: 1.1;
}

.modal-rating {
    color: #ffc107;
    font-size: 1rem;
    margin-bottom: 1.8rem;
}

#modalPrice {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--accent-color);
}

#modalDesc {
    color: #555;
    line-height: 1.8;
    font-size: 1.05rem;
    margin: 0 0 2rem;
    padding: 2rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.modal-extra-info {
    display: flex;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.modal-quantity-container {
    display: flex;
    gap: 1.5rem;
    height: 60px;
    margin-bottom: 1rem;
}

.modal-quantity {
    width: 120px;
}

.modal-quantity input {
    width: 100%;
    height: 100%;
    text-align: center;
    font-size: 1.3rem;
    border: 2px solid #eee;
}

#productModal .btn-primary {
    flex: 1;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #000;
    color: #fff;
    height: 60px;
}

#productModal .btn-primary:hover {
    background: #fff;
    color: #000;
    border: 2px solid #000;
}

/* Animations included in style.css */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes modalAppear {
    from { opacity: 0; transform: scale(0.9) translateY(30px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Modal Responsive */
@media (max-width: 768px) {
    #productModal > div { flex-direction: column; height: auto; max-height: 90vh; overflow-y: auto; }
    #productModal > div > div:first-child { height: 250px; flex: none; }
    #productModal > div > div:last-child { padding: 2rem; }
}

/* ========== CENTERED NAVBAR SEARCH STYLES ========== */
.navbar-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.navbar-search {
    position: absolute;
    width: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    pointer-events: none;
}

.navbar-search.active {
    width: 400px;
    opacity: 1;
    pointer-events: auto;
}

.nav-links.hidden {
    opacity: 0;
    pointer-events: none;
}

.navbar-search-form {
    display: flex;
    background: var(--light-gray);
    border-radius: 25px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    height: 40px;
}

.navbar-search-form:focus-within {
    border-color: var(--accent-color);
    background: #fff;
}

.navbar-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-family: var(--font-main);
    background: transparent;
    color: var(--text-color);
}

.navbar-search-input::placeholder {
    color: #999;
}

.navbar-search-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.navbar-search-btn:hover {
    background: var(--accent-color);
}

/* Navbar Search Responsive */
@media (max-width: 768px) {
    .navbar-search.active {
        width: 250px;
    }
    
    .navbar {
        flex-wrap: wrap;
    }
    
    .navbar-center {
        order: 3;
        width: 100%;
        margin-top: 1rem;
    }
}
