:root {
    --primary-color: #000000;
    --bg-color: #f4f4f4;
    --card-bg: #ffffff;
    --accent-yellow: #FFD100;
    --accent-blue: #00E0FF;
    --accent-pink: #FF007A;
    --accent-green: #00FF94;
    --shadow-color: #000000;
    --text-color: #000000;
    --brutal-border: 4px solid #000000;
    --brutal-shadow: 6px 6px 0px #000000;
    --container-max-width: 1400px;
    --section-padding: 40px 40px; /* Reduced from 80px */
}

[data-theme="dark"] {
    --bg-color: #121212;
    --card-bg: #1E1E1E;
    --text-color: #ffffff;
    --shadow-color: var(--accent-yellow);
    --brutal-shadow: 8px 8px 0px var(--accent-yellow);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

img, video, canvas, svg {
    max-width: 100%;
    height: auto;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.4;
    overflow-x: hidden;
    /* transition removed for better performance */
}

/* --- Typography --- */
h1, h2, h3, h4 {
    text-transform: uppercase;
    font-weight: 900;
    line-height: 1.1;
}

/* --- Layout --- */
.header {
    background: var(--card-bg);
    border-bottom: var(--brutal-border);
    padding: 10px 0; /* Adjusted padding */
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 90px; /* Increased height for better clearance */
    display: flex;
    align-items: center;
}

.header-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    gap: 30px;
    width: 100%;
}

.logo {
    margin: 0 10px 0 0;
    display: flex;
    align-items: center;
}

.logo h1 {
    margin: 0;
    line-height: 1;
}

.logo h1 a {
    font-size: 1.6rem; /* Slightly smaller for better fit */
    color: inherit;
    text-decoration: none;
    background: var(--accent-yellow);
    padding: 6px 12px;
    border: 3px solid #000;
    box-shadow: 4px 4px 0px #000;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    transform: translateY(0); /* Reset transform */
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
    align-items: center;
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 10px 15px;
    border: 3px solid transparent; /* Match border thickness for alignment */
    transition: all 0.2s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.nav-links a:hover {
    background: var(--accent-blue);
    color: #000;
    border: 3px solid #000;
    box-shadow: 3px 3px 0px #000;
}

.header-search-container {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0;
    flex: 1; /* Reduced from 3 to take less priority */
    min-width: 150px; /* Reduced min-width */
    max-width: 250px; /* Significantly reduced max-width to eliminate empty space */
    height: 48px;
}

.header-search-icon {
    position: absolute;
    left: 15px;
    font-size: 1.1rem;
    color: #000;
    z-index: 2;
    pointer-events: none; /* Icon shouldn't interfere with clicks */
}

.header-search-input {
    width: 100%;
    height: 100%;
    padding: 0 15px 0 50px; /* Slightly more left padding for the icon */
    border: 3px solid #000;
    font-weight: 700;
    font-size: 1rem; /* Slightly larger font */
    outline: none;
    box-shadow: 4px 4px 0px #000;
    background: var(--card-bg);
    color: var(--text-color);
    display: block; /* Ensure it behaves as a block element */
}

.header-search-input::placeholder {
    color: #666;
    opacity: 1;
    font-weight: 600;
}

.header-search-input:focus {
    background: var(--accent-yellow);
    box-shadow: 5px 5px 0px #000;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* --- Buttons --- */
.btn {
    padding: 12px 24px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    border: var(--brutal-border);
    box-shadow: 4px 4px 0px var(--shadow-color);
    transition: all 0.1s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    gap: 8px;
    color: #000;
}

.btn:active {
    box-shadow: 0px 0px 0px var(--shadow-color);
    transform: translate(4px, 4px);
}

.btn-primary { background: var(--accent-yellow); }
.btn-secondary { background: var(--accent-blue); }

.icon-btn {
    background: var(--card-bg);
    border: 3px solid #000;
    width: 45px; /* Increased size for better alignment */
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-color);
    transition: all 0.2s;
    position: relative;
    box-shadow: 3px 3px 0px #000;
}

.icon-btn:hover {
    background: var(--accent-green);
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0px #000;
}

.menu-btn {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    height: auto;
    padding: 8px 12px;
}

.menu-text {
    font-size: 0.6rem;
    font-weight: 900;
    margin-top: 4px;
}

.cart-badge {
    position: absolute;
    top: -5px; /* Adjusted position */
    right: -5px;
    background: var(--accent-pink);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 900;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #000;
    border-radius: 50%;
    padding: 2px;
    z-index: 5;
}

/* --- Hero Section --- */
.hero {
    display: flex;
    padding: var(--section-padding);
    gap: 40px; /* Reduced from 60px */
    align-items: center;
    max-width: var(--container-max-width);
    margin: 0 auto;
    min-height: 50vh; /* Reduced from 70vh */
}

.hero-content {
    flex: 1.2;
}

.hero-tag {
    background: var(--accent-pink);
    color: #fff;
    padding: 4px 12px;
    border: 3px solid #000;
    font-weight: 900;
    margin-bottom: 16px;
    display: inline-block;
    box-shadow: 2px 2px 0px #000;
    font-size: 0.8rem;
}

.hero h1 {
    font-size: 4rem; /* Reduced from 5.5rem */
    margin-bottom: 20px;
    color: var(--text-color);
}

.hero p {
    font-size: 1.1rem; /* Reduced from 1.4rem */
    font-weight: 600;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 12px;
}

.hero-image {
    flex: 1;
    border: 6px solid #000;
    box-shadow: 12px 12px 0px var(--accent-blue);
    overflow: hidden;
    height: 450px; /* Adjusted height for better aspect ratio */
}

.hero-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover; /* Fill the entire container */
    object-position: center 30%; /* Focus on the top/middle of the bottle to keep it visible */
}

/* --- Preloader & Loading System --- */
html.is-loading body {
    overflow: hidden;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-yellow);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.45s ease, visibility 0.45s;
    overflow: hidden;
}

#preloader::before,
#preloader::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border: 6px solid #000;
    opacity: 0.08;
    animation: loaderSpin 12s linear infinite;
}

#preloader::before {
    top: -80px;
    right: -80px;
    background: var(--accent-pink);
}

#preloader::after {
    bottom: -100px;
    left: -100px;
    background: var(--accent-blue);
    animation-direction: reverse;
    animation-duration: 16s;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-scene {
    position: relative;
    margin-bottom: 28px;
    z-index: 2;
}

.loader-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140px;
    height: 140px;
    margin: -70px 0 0 -70px;
    animation: loaderSpin 3s linear infinite;
}

.loader-orbit span {
    position: absolute;
    width: 18px;
    height: 18px;
    background: #000;
    border: 3px solid #000;
    box-shadow: 3px 3px 0 var(--accent-pink);
}

.loader-orbit span:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); background: var(--accent-pink); }
.loader-orbit span:nth-child(2) { bottom: 10px; left: 10px; background: var(--accent-blue); }
.loader-orbit span:nth-child(3) { bottom: 10px; right: 10px; background: var(--accent-green); }

.loader-logo {
    position: relative;
    font-size: 2.4rem;
    font-weight: 900;
    background: #000;
    color: #fff;
    padding: 12px 28px;
    border: 5px solid #000;
    box-shadow: 10px 10px 0px #000;
    animation: loaderBounce 0.7s ease-in-out infinite alternate;
    z-index: 2;
}

.loader-bar-container {
    width: min(280px, 80vw);
    height: 28px;
    background: #fff;
    border: 4px solid #000;
    position: relative;
    overflow: hidden;
    z-index: 2;
    box-shadow: 5px 5px 0 #000;
}

.loader-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-pink), var(--accent-green));
    background-size: 200% 100%;
    animation: loaderShimmer 1.2s linear infinite;
    transition: width 0.25s ease-out;
}

.loader-percent {
    margin-top: 10px;
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: 1px;
    z-index: 2;
}

.loader-text {
    margin-top: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    opacity: 0.85;
    z-index: 2;
    min-height: 1.2em;
}

/* Page transition overlay */
#page-transition {
    position: fixed;
    inset: 0;
    background: var(--accent-yellow);
    z-index: 99998;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s;
}

#page-transition.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.page-transition-logo {
    font-size: 1.8rem;
    font-weight: 900;
    background: #000;
    color: #fff;
    padding: 8px 20px;
    border: 4px solid #000;
    box-shadow: 6px 6px 0 #000;
    animation: loaderBounce 0.5s ease-in-out infinite alternate;
}

.page-transition-text {
    margin-top: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
}

/* Lazy-loaded media */
.lazy-loading,
img[data-src],
video[data-src] {
    background: linear-gradient(110deg, #e8e8e8 8%, #f5f5f5 18%, #e8e8e8 33%);
    background-size: 200% 100%;
    animation: lazyShimmer 1.4s ease-in-out infinite;
}

[data-theme="dark"] .lazy-loading,
[data-theme="dark"] img[data-src],
[data-theme="dark"] video[data-src] {
    background: linear-gradient(110deg, #2a2a2a 8%, #333 18%, #2a2a2a 33%);
    background-size: 200% 100%;
}

img.lazy-loaded,
video.lazy-loaded {
    animation: lazyFadeIn 0.4s ease forwards;
}

.product-img img.lazy-loading {
    filter: blur(8px);
    transform: scale(1.02);
}

.product-img img.lazy-loaded {
    filter: none;
    transform: none;
}

.gallery-item.lazy-loading {
    filter: blur(12px);
}

.gallery-item.lazy-loaded {
    filter: none;
}

.video-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    color: #fff;
    cursor: pointer;
    position: absolute;
    inset: 0;
    z-index: 3;
}

.video-placeholder i {
    font-size: 3rem;
    background: var(--accent-yellow);
    color: #000;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #000;
    box-shadow: 6px 6px 0 #000;
    transition: transform 0.2s;
}

.video-placeholder:hover i {
    transform: scale(1.08);
}

@keyframes loaderBounce {
    from { transform: scale(1) rotate(-1deg); }
    to { transform: scale(1.06) rotate(1deg); }
}

@keyframes loaderSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes loaderShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes lazyShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes lazyFadeIn {
    from { opacity: 0.6; }
    to { opacity: 1; }
}

/* --- End Preloader --- */

/* --- Category Cards Optimization --- */

/* --- Mobile Category Scroll --- */
/* Removed as per user request (fig two) */

/* --- Sections --- */
.products-section, .categories {
    padding: 30px 40px; /* More compact */
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 4px solid #000;
}

.section-header h2 {
    font-size: 2.2rem; /* Reduced from 2.8rem */
}

.view-all {
    font-weight: 900;
    text-decoration: none;
    color: #000;
    background: var(--accent-blue);
    padding: 8px 16px;
    border: 3px solid #000;
    box-shadow: 4px 4px 0px #000;
    font-size: 0.9rem;
}

.view-all:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #000;
}

/* --- Categories --- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.category-card {
    height: 350px;
    position: relative;
    border: var(--brutal-border);
    box-shadow: var(--brutal-shadow);
    text-decoration: none;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 30px;
    transition: all 0.2s;
}

.category-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0px var(--shadow-color);
}

.saree-cat { background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1610030469983-98e550d6193c?w=600&q=60'); background-size: cover; background-position: center; }
.kurtis-cat { background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1609357605129-26f69add5d6e?w=600&q=60'); background-size: cover; background-position: center; }
.ethnic-cat { background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1610030470200-a616238b6d49?w=600&q=60'); background-size: cover; background-position: center; }
.party-cat { background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1595777457583-95e059d581b8?w=600&q=60'); background-size: cover; background-position: center; }
.casual-cat { background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1539109136881-3be0616acf4b?w=600&q=60'); background-size: cover; background-position: center; }

/* Banners Section */
.banners-section {
    padding: var(--section-padding);
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.banners-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.banner-card {
    position: relative;
    height: 280px;
    border: var(--brutal-border);
    box-shadow: var(--brutal-shadow);
    overflow: hidden;
    transition: all 0.1s;
}

.banner-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0px var(--shadow-color);
}

.banner-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.banner-title {
    font-size: 1.4rem;
    font-weight: 900;
    color: white;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.banner-subtitle {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    margin-bottom: 12px;
}

.banner-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--accent-yellow);
    color: #000;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.8rem;
    border: 3px solid #000;
    box-shadow: 3px 3px 0px #000;
    text-decoration: none;
    width: fit-content;
}

.banner-cta:hover {
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0px #000;
}

.cat-info {
    color: #fff;
    z-index: 2;
}

.cat-info h3 {
    font-size: 1.8rem; /* Slightly reduced for 3-column layout */
    margin-bottom: 10px;
    text-shadow: 2px 2px 0px #000;
}

.cat-info span {
    font-weight: 900;
    background: #fff;
    color: #000;
    padding: 6px 16px;
    border: 3px solid #000;
    box-shadow: 3px 3px 0px #000;
}

/* --- Shop Layout --- */
.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

.shop-sidebar {
    position: sticky;
    top: 100px;
}

.filter-group {
    background: var(--card-bg);
    border: 4px solid #000;
    padding: 24px;
    box-shadow: 6px 6px 0px #000;
    margin-bottom: 30px;
}

.filter-group h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    border-bottom: 3px solid #000;
    padding-bottom: 8px;
    color: var(--text-color);
}

/* Ensure links in filter groups aren't plain blue */
.filter-group a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
}

.filter-group a:hover {
    color: var(--accent-pink);
}

.custom-radio {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-color);
}

.custom-radio input[type="radio"] {
    width: 20px;
    height: 20px;
    border: 3px solid #000;
    appearance: none;
    cursor: pointer;
    background: var(--card-bg);
    transition: all 0.2s;
}

.custom-radio input[type="radio"]:checked {
    background: var(--accent-yellow);
    box-shadow: inset 0 0 0 3px var(--card-bg);
}

.brutal-select {
    width: 100%;
    padding: 10px;
    border: 3px solid #000;
    font-weight: 800;
    background: var(--card-bg);
    color: var(--text-color);
    cursor: pointer;
    outline: none;
}

.brutal-select:focus {
    background: var(--accent-blue);
}

/* --- Product Cards --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
}

.product-card {
    background: var(--card-bg);
    border: var(--brutal-border);
    box-shadow: var(--brutal-shadow);
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 11px 11px 0px var(--shadow-color);
}

.product-img {
    position: relative;
    background: #eee; /* Placeholder color to prevent layout shift */
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-bottom: var(--brutal-border);
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.add-to-cart-overlay {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translate(-50%, 20px);
    width: 85%;
    padding: 12px;
    background: var(--accent-yellow);
    border: 3px solid #000;
    font-weight: 900;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s;
}

.product-card:hover .add-to-cart-overlay {
    opacity: 1;
    transform: translate(-50%, 0);
}

.product-wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border: 4px solid #000;
    background: #fff;
    box-shadow: 4px 4px 0px #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.1s;
}

.product-wishlist-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #000;
}

.product-wishlist-btn:active {
    transform: translate(0, 0);
    box-shadow: 2px 2px 0px #000;
}

.product-wishlist-btn i {
    font-size: 1rem;
}

.product-info {
    padding: 20px;
    flex: 1;
}

.product-info h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.product-info p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--accent-pink);
}

/* --- Cart Drawer --- */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.cart-drawer-overlay.active { display: block; }

.cart-drawer {
    position: fixed;
    top: 0;
    right: -500px;
    width: 450px;
    max-width: 100%;
    height: 100vh;
    background: var(--card-bg);
    border-left: 8px solid #000;
    z-index: 2500;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-header {
    padding: 24px;
    border-bottom: 6px solid #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--accent-yellow);
    color: #000;
}

.close-cart-btn {
    background: var(--card-bg);
    border: 3px solid #000;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-color);
    transition: all 0.2s;
    box-shadow: 4px 4px 0px #000;
    font-weight: 900;
}

.close-cart-btn:hover {
    background: var(--accent-pink);
    color: #fff;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #000;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.cart-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 3px solid rgba(0,0,0,0.1);
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 3px solid #000;
}

.cart-item-info h4 { font-size: 1.1rem; margin-bottom: 5px; color: var(--text-color); }

.cart-footer {
    padding: 24px;
    border-top: 6px solid #000;
    background: var(--card-bg);
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.cart-item-qty button {
    width: 32px;
    height: 32px;
    background: var(--card-bg);
    border: 3px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--text-color);
    transition: all 0.1s;
    box-shadow: 2px 2px 0px #000;
}

.cart-item-qty button:hover {
    background: var(--accent-yellow);
    color: #000;
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px #000;
}

.cart-item-qty button:active {
    transform: translate(1px, 1px);
    box-shadow: 0px 0px 0px #000;
}

.cart-item-qty span {
    font-weight: 900;
    font-size: 1.1rem;
    min-width: 25px;
    text-align: center;
    color: var(--text-color);
}

.remove-item {
    background: var(--card-bg);
    border: 3px solid #000;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-color);
    transition: all 0.2s;
    box-shadow: 3px 3px 0px #000;
    margin-left: auto;
    align-self: flex-start;
}

.remove-item:hover {
    background: var(--accent-pink);
    color: #fff;
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px #000;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--text-color);
}

/* --- Footer --- */
.footer {
    background: #000;
    color: #fff;
    padding: 60px 40px 30px;
    margin-top: 60px;
}

.footer-grid {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand h3 { font-size: 2rem; margin-bottom: 15px; }
.footer-links h4 { font-size: 1.1rem; margin-bottom: 15px; color: var(--accent-yellow); }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #ccc; text-decoration: none; font-size: 0.9rem; font-weight: 600; }
.footer-links a:hover { color: var(--accent-yellow); }

.footer-bottom {
    max-width: var(--container-max-width);
    margin: 40px auto 0;
    padding-top: 30px;
    border-top: 1px solid #333;
    text-align: center;
    color: #666;
    font-size: 0.85rem;
    font-weight: 700;
}

/* --- Mobile Menu --- */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 320px;
    max-width: 85%;
    height: 100vh;
    background: var(--card-bg);
    border-right: 8px solid #000;
    z-index: 5000; /* Increased to ensure it is above bottom-nav */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 60px 0; 
    box-shadow: 20px 0px 0px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.mobile-menu.active {
    left: 0;
}

.mobile-nav-links {
    list-style: none;
    margin-top: 40px;
}

.mobile-nav-links li {
    margin: 0;
}

.mobile-nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.9rem; /* Further reduced for luxury feel */
    font-weight: 700; 
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 25px; /* More compact */
    border-bottom: 1px solid rgba(0,0,0,0.1); /* Subtle border */
    transition: all 0.2s;
}

.mobile-nav-links a i {
    width: 20px;
    font-size: 0.85rem;
    text-align: center;
    opacity: 0.8;
}

.mobile-nav-links a:hover {
    background: var(--accent-yellow);
    color: #000;
    padding-left: 30px;
}

.mobile-nav-links .section-title {
    background: var(--bg-color);
    padding: 12px 25px;
    font-size: 0.7rem;
    font-weight: 900;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 2px solid #000;
    margin-top: 10px;
}

/* Settings Sub-options */
.settings-sub {
    background: var(--card-bg);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.mobile-nav-links li.active .settings-sub,
.mobile-nav-links li:focus-within .settings-sub {
    max-height: 1000px;
}

.settings-sub a {
    font-size: 1.1rem;
    padding: 15px 40px 15px 70px;
    border-bottom: 2px solid rgba(0,0,0,0.1);
    font-weight: 700;
    text-transform: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color);
}

.settings-sub a::after {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #ccc;
}

.settings-sub a:hover {
    background: var(--bg-color);
    padding-left: 75px;
}

.settings-sub a:hover::after {
    color: var(--text-color);
}

.logout-btn-container {
    padding: 30px 40px;
    border-top: 4px solid #000;
    margin-top: 20px;
}

.logout-btn {
    width: 100%;
    padding: 15px;
    background: var(--card-bg);
    border: 3px solid #000;
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--accent-pink);
    cursor: pointer;
    box-shadow: 4px 4px 0px #000;
    transition: all 0.1s;
}

.logout-btn:active {
    box-shadow: 0px 0px 0px #000;
    transform: translate(4px, 4px);
}

.close-menu-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    background: var(--card-bg);
    border: 3px solid #000;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 900;
    color: var(--text-color);
    box-shadow: 4px 4px 0px #000;
    transition: all 0.2s;
    z-index: 10;
}

.close-menu-btn:hover {
    background: var(--accent-pink);
    color: #fff;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #000;
}

/* --- Modals --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    z-index: 2000;
}

.modal-overlay.active { display: block; }

.auth-modal, .checkout-modal, .success-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--card-bg);
    border: 6px solid #000;
    box-shadow: 15px 15px 0px rgba(0,0,0,0.4);
    z-index: 2100;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    display: none;
    color: var(--text-color);
}

.pdp-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-color);
    z-index: 9999;
    overflow-y: auto;
    display: none;
    color: var(--text-color);
}


.auth-modal {
    max-width: 450px;
    padding: 40px;
    text-align: center;
}

.auth-modal h2 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.auth-modal p {
    font-weight: 600;
    color: #888;
    margin-bottom: 25px;
}

/* Custom Google Button Styling for Brutalism */
.google-auth-btn {
    width: 100%;
    background: #fff;
    color: #000;
    border: 3px solid #000;
    padding: 12px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    box-shadow: 4px 4px 0px #000;
    transition: all 0.1s;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.google-auth-btn:hover {
    background: #f4f4f4;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #000;
}

.google-auth-btn:active {
    box-shadow: 0px 0px 0px #000;
    transform: translate(4px, 4px);
}

.google-auth-btn img {
    width: 20px;
    height: 20px;
}

.admin-link-container {
    margin-top: 15px;
    text-align: center;
}

.admin-link-container a {
    color: var(--text-color);
    font-weight: 800;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.6;
}

.admin-link-container a:hover {
    opacity: 1;
    text-decoration: underline;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    font-weight: 900;
    font-size: 0.8rem;
    color: #888;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 2px solid #000;
}

.auth-divider:not(:empty)::before { margin-right: 15px; }
.auth-divider:not(:empty)::after { margin-left: 15px; }

.auth-form {
    text-align: left;
}

.auth-form .form-group label {
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    color: var(--text-color);
}

.auth-form .btn {
    width: 100%;
    margin-top: 10px;
}

.checkout-modal { max-width: 900px; padding: 25px; }
.checkout-content h2 { margin-bottom: 20px !important; font-size: 2rem !important; }
.checkout-grid { gap: 20px !important; }
.checkout-form .card, .checkout-summary .card { 
    padding: 20px !important; 
    background: var(--bg-color);
    border: 3px solid #000;
}
.checkout-form h3, .checkout-summary h3 { margin-bottom: 15px !important; color: var(--text-color); }
.form-group { margin-bottom: 15px !important; }
.checkout-summary .TOTAL { 
    font-size: 1.4rem !important; 
    padding: 10px !important; 
    background: var(--accent-yellow);
    color: #000;
    border: 3px solid #000;
}

/* --- Close Modal Buttons (Universal Theme) --- */
.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--card-bg);
    border: 3px solid #000;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-color);
    transition: all 0.2s;
    box-shadow: 3px 3px 0px #000;
    z-index: 100;
}

.pdp-modal .close-modal-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
    background: var(--accent-yellow);
    box-shadow: 6px 6px 0px #000;
}

.close-modal-btn:hover {
    background: var(--accent-pink);
    color: #fff;
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0px #000;
}

.close-modal-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 0px 0px 0px #000;
}

.auth-modal.active, .checkout-modal.active, .success-modal.active, .pdp-modal.active, .settings-modal.active { display: block; }

/* Settings Modal */
.settings-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--card-bg);
    border: 6px solid #000;
    box-shadow: 15px 15px 0px rgba(0,0,0,0.4);
    z-index: 2100;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    display: none;
    color: var(--text-color);
}

.settings-header {
    padding: 20px 30px;
    border-bottom: 4px solid #000;
    background: var(--accent-yellow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-header h2 {
    font-size: 1.5rem;
    color: #000;
}

.settings-content {
    padding: 30px;
}

.settings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 2px solid rgba(0,0,0,0.1);
}

.settings-row:last-child { border-bottom: none; }

.settings-row h4 { margin-bottom: 4px; }
.settings-row p { font-size: 0.85rem; color: #888; }

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border: 2px solid #000;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px; width: 16px;
    left: 2px; bottom: 2px;
    background-color: white;
    transition: .4s;
    border: 2px solid #000;
}

input:checked + .slider { background-color: var(--accent-green); }
input:checked + .slider:before { transform: translateX(26px); }

.brutal-input {
    width: 100%;
    padding: 12px 15px;
    border: 3px solid #000;
    font-weight: 700;
    margin-bottom: 15px;
    outline: none;
    box-shadow: 4px 4px 0px #000;
    background: var(--card-bg);
    color: var(--text-color);
}

.brutal-input:focus {
    background: var(--accent-yellow);
    color: #000;
}

/* --- Bottom Navigation (Mobile Only) --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--card-bg);
    border-top: 4px solid #000;
    display: none;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    z-index: 2500;
    box-shadow: 0 -10px 20px rgba(0,0,0,0.1);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    gap: 4px;
    position: relative;
}

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

.bottom-nav-item.active {
    color: var(--accent-yellow);
}

.bottom-nav-item .badge {
    position: absolute;
    top: -5px;
    right: 5px;
    background: var(--accent-pink);
    color: #fff;
    font-size: 0.6rem;
    padding: 2px 6px;
    border: 2px solid #000;
    font-weight: 900;
}

/* --- Responsive Adaptability System --- */

/* Mobile & Tablet Optimizations */
@media (max-width: 768px) {
    :root {
        --section-padding: 20px 15px;
    }

    body {
        padding-bottom: 80px; /* Space for bottom nav */
    }

    .header-container {
        padding: 0 15px;
        height: 70px;
    }

    .logo h1 a {
        font-size: 1.1rem; /* Slightly smaller to fit search bar */
        padding: 5px 8px;
    }

    .nav {
        display: none;
    }

    .header-search-container {
        display: flex !important;
        flex: 1.5; /* Give more space to search bar */
        min-width: 0;
        max-width: none;
        height: 42px;
        margin-left: 15px;
    }

    .header-search-input {
        padding: 0 10px 0 40px;
        font-size: 0.9rem;
        box-shadow: 4px 4px 0px #000;
        border-width: 3px;
    }

    .header-search-icon {
        left: 10px;
        font-size: 0.9rem;
    }

    .header-actions {
        display: none !important; /* Remove all icons from header on mobile */
    }

    /* Shop Layout Mobile */
    .shop-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .shop-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 20px;
    }

    .filter-group {
        padding: 15px;
        margin-bottom: 15px;
    }

    /* 2x2 Product Grid for Mobile */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-card {
        border-width: 3px;
        box-shadow: 4px 4px 0px #000;
    }

    .product-info {
        padding: 10px;
    }

    .product-info h3 {
        font-size: 0.85rem;
        margin-bottom: 5px;
        height: 2.4em;
        overflow: hidden;
    }

    .product-info p {
        display: none; /* Hide description on mobile grid */
    }

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

    .add-to-cart-overlay {
        padding: 8px;
        font-size: 0.7rem;
    }

    /* Bottom Nav refinement */
    .bottom-nav {
        display: flex;
        height: 70px;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .bottom-nav-item {
        font-size: 0.65rem;
    }

    .bottom-nav-item i {
        font-size: 1.4rem;
    }

    /* Hero Mobile */
    .hero {
        flex-direction: column !important;
        padding: 40px 20px;
        text-align: left; /* Changed from center to match screenshot preference */
        gap: 30px;
        min-height: auto;
    }

    .hero-content {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero h1 {
        font-size: 2.8rem; /* Adjusted for mobile */
        word-wrap: break-word;
        text-align: left;
    }

    .hero p {
        margin: 0 0 25px 0;
        font-size: 1rem;
        text-align: left;
    }

    .hero-btns {
        justify-content: flex-start;
        flex-wrap: wrap;
        width: 100%;
    }

    .hero-btns .btn {
        width: 100%; /* Full width buttons on mobile */
        max-width: none;
    }

    .hero-image {
        width: 100%;
        height: 300px;
        box-shadow: 8px 8px 0px var(--accent-blue);
    }
    
    /* Category Grid Mobile */
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .category-card {
        height: 180px;
        padding: 15px;
    }

    .category-card:last-child {
        grid-column: span 2; /* Make the 3rd card span full width for balance */
        height: 150px;
    }

    .cat-info h3 {
        font-size: 1.2rem;
        margin-bottom: 5px;
    }

    .cat-info span {
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    /* Section Header Mobile */
    .section-header {
        flex-direction: row !important; /* Force single row */
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        flex-wrap: nowrap; /* Prevent wrapping to two rows */
    }

    .section-header h2 {
        font-size: 1.2rem; /* Smaller font to fit in one row */
        white-space: nowrap;
    }

    .view-all {
        padding: 6px 12px;
        font-size: 0.75rem;
        white-space: nowrap;
        min-width: fit-content;
    }

    /* Preloader Mobile */
    .loader-logo {
        font-size: 1.5rem;
        padding: 8px 18px;
        box-shadow: 6px 6px 0px #000;
        max-width: 90vw;
        text-align: center;
    }

    .loader-orbit {
        width: 110px;
        height: 110px;
        margin: -55px 0 0 -55px;
    }

    .loader-bar-container {
        width: 200px;
        height: 22px;
    }

    /* Footer Mobile */
    .footer {
        padding: 40px 20px;
        text-align: left;
    }

    .footer-grid {
        grid-template-columns: 1fr; /* Stack everything for perfect alignment */
        gap: 40px;
    }

    .footer-brand h3 {
        font-size: 2.5rem;
    }

    .footer-brand p {
        font-size: 1.1rem;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .footer-links h4 {
        font-size: 1.2rem;
        margin-bottom: 15px;
        border-bottom: 2px solid var(--accent-yellow);
        display: inline-block;
        padding-bottom: 4px;
    }

    .footer-links ul {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .footer-links a {
        font-size: 1rem;
    }

    .footer-bottom {
        margin-top: 40px;
        padding-top: 20px;
    }
}

/* Very Small Devices */
@media (max-width: 360px) {
    .products-grid {
        gap: 8px;
    }
    .product-info h3 {
        font-size: 0.75rem;
    }
}

/* Tablets & Small Laptops */
@media (min-width: 769px) and (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .shop-layout {
        grid-template-columns: 240px 1fr;
        gap: 30px;
    }
}

/* Large Screens */
@media (min-width: 1441px) {
    .header-container, .main-container {
        max-width: 1600px;
        margin: 0 auto;
    }
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --- Product Details Page (PDP) Premium & Clean Theme --- */
.pdp-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 60px 40px;
    max-width: 1400px;
    margin: 0 auto;
    background: var(--bg-color);
}

.pdp-media-section {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.pdp-main-media {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    overflow: hidden;
    position: relative;
    aspect-ratio: 1/1;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.pdp-main-media:hover {
    transform: translateY(-5px);
}

.gallery-item {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    z-index: 1;
}

.gallery-item.active {
    opacity: 1;
    z-index: 2;
}

.pdp-gallery-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.gallery-dot {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    border: 2px solid transparent;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.gallery-dot.active, .gallery-dot:hover {
    border-color: var(--accent-pink);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.gallery-dot.video-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-blue);
    background: #f8f9fa;
}

.pdp-details-section {
    padding-top: 10px;
}

.pdp-breadcrumbs {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 25px;
    color: #888;
    letter-spacing: 1px;
}

.pdp-breadcrumbs a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.pdp-breadcrumbs a:hover {
    color: var(--accent-pink);
}

.pdp-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 15px;
    color: var(--text-color);
}

.pdp-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.pdp-rating .stars {
    color: #f5c518;
}

.pdp-rating .rating-number {
    font-weight: 700;
}

.pdp-rating .review-count {
    color: #888;
    font-size: 0.95rem;
}

.pdp-price-container {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 35px;
}

.pdp-current-price {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-color);
}

.pdp-original-price {
    font-size: 1.4rem;
    font-weight: 500;
    color: #a0a0a0;
    text-decoration: line-through;
}

.pdp-discount {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 6px 12px;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 6px;
}

.pdp-short-desc {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 40px;
    color: #555;
    font-weight: 400;
}

.pdp-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 45px;
}

.pdp-wishlist-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border: 4px solid #000;
    background: #fff;
    box-shadow: 4px 4px 0px #000;
    cursor: pointer;
    transition: all 0.1s;
}

.pdp-wishlist-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #000;
}

.pdp-wishlist-btn:active {
    transform: translate(0, 0);
    box-shadow: 2px 2px 0px #000;
}

.pdp-wishlist-btn i {
    font-size: 1.5rem;
}

.qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    height: 60px;
    overflow: hidden;
}

.qty-selector button {
    background: none;
    border: none;
    width: 50px;
    height: 100%;
    font-size: 1.1rem;
    color: #555;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.qty-selector button:hover {
    background: #f0f0f0;
    color: #000;
}

.qty-selector input {
    width: 60px;
    height: 100%;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    background: #fff;
    color: #000;
}

.pdp-add-btn {
    flex: 1;
    font-size: 1.2rem;
    height: 60px;
    border-radius: 8px;
    background: #000;
    color: #fff;
    border: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pdp-add-btn:hover {
    background: var(--accent-pink);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(255, 105, 180, 0.3);
}

.pdp-benefits {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 45px;
    padding: 30px;
    background: #fcfcfc;
    border-radius: 12px;
    border: 1px solid #eee;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    font-size: 1.05rem;
    color: #333;
}

.benefit-item i {
    font-size: 1.4rem;
    color: var(--accent-pink);
}

.pdp-full-details {
    margin-top: 45px;
    border-top: 1px solid #eee;
    padding-top: 35px;
}

.pdp-full-details h3 {
    font-size: 1.6rem;
    margin-bottom: 25px;
    font-weight: 700;
    color: var(--text-color);
}

.details-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
}

.pdp-reviews-section {
    padding: 80px 40px;
    max-width: 1400px;
    margin: 0 auto;
    border-top: 1px solid #eee;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.reviews-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
}

.overall-rating {
    text-align: right;
    background: #fff;
    padding: 25px 35px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.overall-rating h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: var(--text-color);
}

.overall-rating .stars {
    color: #f5c518;
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.overall-rating p {
    font-weight: 500;
    color: #888;
}

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

.review-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-blue), #5c7cfa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.reviewer-info strong {
    font-size: 1.1rem;
    font-weight: 700;
    display: block;
}

.review-date {
    font-size: 0.85rem;
    color: #aaa;
    margin-top: 4px;
}

.review-stars {
    color: #f5c518;
}

.review-text {
    line-height: 1.7;
    color: #555;
    font-size: 1rem;
}

/* --- PERFECT MOBILE OPTIMIZATION --- */
@media (max-width: 768px) {
    .pdp-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 25px 20px;
        margin-top: 10px;
    }

    .pdp-media-section {
        position: static;
        width: 100%;
    }

    .pdp-main-media {
        border-radius: 12px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.08);
        margin-bottom: 15px;
    }

    .pdp-gallery-nav {
        gap: 12px;
        overflow-x: auto;
        padding-bottom: 15px;
        justify-content: flex-start;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-top: 5px;
    }
    
    .pdp-gallery-nav::-webkit-scrollbar {
        display: none;
    }

    .gallery-dot {
        width: 65px;
        height: 65px;
        flex-shrink: 0;
        border-radius: 8px;
    }

    .pdp-details-section {
        padding-top: 0;
    }
    
    .pdp-breadcrumbs {
        margin-bottom: 15px;
        font-size: 0.8rem;
    }

    .pdp-title {
        font-size: 2.2rem;
        margin-bottom: 12px;
        line-height: 1.2;
    }

    .pdp-rating {
        margin-bottom: 25px;
    }

    .pdp-price-container {
        margin-bottom: 30px;
        align-items: center;
        flex-wrap: wrap;
    }

    .pdp-current-price {
        font-size: 2.2rem;
    }

    .pdp-original-price {
        font-size: 1.2rem;
    }

    .pdp-short-desc {
        font-size: 1.05rem;
        margin-bottom: 35px;
    }

    .pdp-actions {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 35px;
        position: sticky;
        bottom: 70px; /* Above mobile bottom nav */
        z-index: 100;
        background: rgba(255, 255, 255, 0.95);
        padding: 15px 0;
        backdrop-filter: blur(10px);
        border-top: 1px solid #eee;
        margin-top: -15px;
    }

    .qty-selector {
        width: 100%;
        justify-content: center;
        height: 55px;
    }

    .pdp-add-btn {
        width: 100%;
        height: 55px;
    }

    .pdp-benefits {
        padding: 25px 20px;
        border-radius: 12px;
        gap: 15px;
    }

    .pdp-full-details {
        margin-top: 25px;
        padding-top: 25px;
    }

    .pdp-reviews-section {
        padding: 40px 20px;
    }

    .reviews-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
        margin-bottom: 35px;
    }

    .reviews-header h2 {
        font-size: 1.8rem;
    }

    .overall-rating {
        width: 100%;
        text-align: center;
        padding: 25px;
    }

    .overall-rating h2 {
        font-size: 3rem;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .review-card {
        padding: 25px;
    }
}
