/* ============ BASIC RESET & BODY ============ */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #F0E6D2;
    color: #111;
    max-width: 1600px; 
    margin-left: auto;
    margin-right: auto;
    overflow-x: hidden;
}

/* ============ NAVBAR (PREMIUM STYLE) ============ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px; 
    background: #141515;
    color: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

/* ============ LOGO FIX (CRITICAL) ============ */
/* Targets the <a> tag */
.logo, .logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
}

/* Targets the <img> inside the logo link */
.logo img, .logo-link img, .logo-img {
    height: 50px !important;  /* !important ensures nothing overrides this */
    width: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

/* Tablet Responsiveness */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }
    /* Smaller logo on tablets */
    .logo img, .logo-link img {
        height: 40px !important;
    }
    .nav-left {
        gap: 20px;
    }
    .search-container input {
        width: 150px;
    }
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    /* Smaller logo on mobile */
    .logo img, .logo-link img {
        height: 35px !important;
    }
    .nav-left, .nav-right {
        width: 100%;
        justify-content: center;
        gap: 15px;
    }
    .nav-links {
        display: flex;
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ===== NAVIGATION LINKS ===== */
.nav-left {
    display: flex;
    align-items: center;
    gap: 40px; 
}

.nav-links {
    display: flex;
    gap: 25px;
}

.navbar a, .navbar select, .navbar input {
    font-size: 19px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
}

.nav-links a {
    position: relative;
    color: #e0e0e0;
    text-decoration: none;
    transition: 0.3s;
    letter-spacing: 0.5px;
}

.nav-links a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    left: 0;
    bottom: -4px;
    background-color: #d4af37;
    transition: 0.3s ease;
}

.nav-links a:hover {
    color: #fff;
}

.nav-links a:hover::after {
    width: 100%;
}

/* RIGHT SIDE NAV */
.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-right a {
    color: #f5f5f5;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-right a:hover {
    color: #d4af37;
}

/* ================= SEARCH BAR ================= */
.search-container {
    background: rgba(255,255,255,0.08); 
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px; 
    padding: 4px 4px;
    display: flex;
    align-items: center;
    transition: 0.3s ease;
}

.search-container:hover,
.search-container:focus-within {
    background: rgba(255,255,255,0.15);
    border-color: #D4AF37; 
}

.search-container input {
    padding: 8px 15px;
    width: 300px; 
    border: none;
    outline: none;
    font-size: 15px;
    background: transparent;
    color: white;
}

.search-container button {
    background-color: #d4af37;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-container button:hover {
    background-color: #fff;
}

.language {
    font-size: 13px;
    background-color: transparent;
    color: #ccc;
    border: 1px solid #555;
    padding: 1px 5px;
    border-radius: 6px;
    cursor: pointer;
}

.language:hover {
    border-color: #d4af37;
    color: #d4af37;
}

/* ================= PAGE TITLE ================= */
.page-title {
    padding: 40px 5% 10px;
    text-align: center;
}

/* ================= CATEGORY CARDS ================= */
.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    padding: 20px 5%;
    margin-top: 20px;
}

.category-box {
    position: relative;
    aspect-ratio: 1 / 1; 
    overflow: hidden;
    text-decoration: none;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.category-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-box::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 40%);
}

.category-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    font-size: 22px;
    font-weight: 700;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.category-box:hover img {
    transform: scale(1.08);
}

/* ================= PRODUCT GRID ================= */
.trending-section, .product-grid {
    padding: 20px 5%;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.product-card h3 {
    margin: 10px 0 5px;
    font-size: 18px;
    color: #333;
}

.product-card p {
    font-weight: bold;
    color: #d4af37;
    margin-bottom: 12px;
}

.product-card a {
    padding: 8px 20px;
    background-color: #141515;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    transition: 0.3s;
}

.product-card a:hover {
    background-color: #d4af37;
}

/* ================= SLIDER SECTION ================= */
.slider-section {
    padding: 40px 5% 80px;
    overflow: hidden;
}

.slider-section h2 {
    margin-bottom: 25px;
    font-size: 28px;
}

.slider {
    overflow: hidden; 
    width: 100%;
}

.slides {
    display: flex;
    gap: 20px;
    animation: slideMove 25s linear infinite;
    width: max-content;
}

.slide {
    width: 300px;
    flex-shrink: 0;
}

.slide img {
    width: 100%;
    height: 400px; /* Taller for fashion */
    object-fit: cover;
    border-radius: 10px;
}

@keyframes slideMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Adjust based on duplicated content */
}

/* ================= LOGIN & CART ================= */
.login-section, .cart-section {
    min-height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.login-box, .cart-box {
    width: 100%;
    max-width: 400px;
    padding: 40px;
    border-radius: 15px;
    background: #f7f3e8;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    text-align: center;
}

.login-box input {
    width: 100%;
    box-sizing: border-box; 
    padding: 12px;
    margin-top: 8px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(to right, #d4af37, #c49b2f);
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
}
/* ================= BACK TO TOP ================= */

.pg-back-to-top {
    background: #4f5560;
    text-align: center;
}

.pg-back-to-top a {
    display: block;
    padding: 14px;
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.pg-back-to-top a:hover {
    background: #3C4452;
}

/* ================= FOOTER ================= */
.pg-footer-cta {
    background: #e8ded0; 
    padding: 40px 20px;
    text-align: center;
}

.pg-signin-btn {
    display: inline-block;
    background: #141515;
    color: #d4af37;
    padding: 10px 40px;
    border-radius: 25px;
    text-decoration: none;
    margin: 15px 0;
    font-weight: 600;
}

.pg-footer {
    background: #141515;
    color: #ffffff;
    padding: 50px 5%;
}

.pg-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
}

.pg-footer h4 {
    color: #d4af37;
    margin-bottom: 20px;
}

.pg-footer a {
    display: block;
    color: #b0b0b0;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 10px;
}

.pg-footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #333;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* ============ FOOTER UPDATES ============ */

/* Middle Footer (Logo + Selectors) */
.pg-footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    padding-bottom: 20px;
    border-top: 1px solid #333;
    display: flex;
    justify-content: center;
    align-items: center; /* Vertically aligns logo and boxes */
    gap: 20px;
    flex-wrap: wrap;
}

/* Footer Logo Size - Professional & Responsive */
.footer-logo {
    height: 35px; /* Smaller than header logo for a clean look */
    width: auto;
    display: block;
}

/* Footer Selectors (Language/Country) */
.pg-footer-bottom select {
    background: #141515;
    color: #ccc;
    border: 1px solid #555;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
}

/* New Legal Footer Section (Amazon Style) */
.pg-legal-footer {
    background-color: #141515;
    padding: 10px 20px 40px; /* Extra bottom padding */
    text-align: center;
    font-size: 11px; /* Smaller font for legal text */
    color: #999;
}

.pg-legal-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.pg-legal-links a {
    color: #ddd;
    text-decoration: none;
    transition: 0.2s;
}

.pg-legal-links a:hover {
    text-decoration: underline;
    color: #d4af37; /* Gold hover effect */
}

.pg-copyright {
    color: #777;
    margin-top: 5px;
}