/*
Theme Name: Vaagaitex Theme V8
Theme URI: https://vaagaitex.com
Author: Vaagaitex
Author URI: https://vaagaitex.com
Description: Custom E-Commerce Theme for Vaagaitex
Version: 1.0
Requires at least: 5.0
Tested up to: 6.2
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vaagaitex
*/

/* style.css - Vaagaitex E-commerce Layout */

:root {
    --primary-color: #5D0A1C; /* Deep Maroon */
    --nav-bg: #1B2141; /* Dark Blue from reference image */
    --accent-color: #D4AF37; /* Rich Gold */
    --text-main: #333333;
    --text-light: #666666;
    --bg-color: #FFFFFF;
    --border-color: #E0E0E0;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-color);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
}

/* Button */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #4a0815;
}

/* Top Header */
.top-header {
    padding: 20px 0;
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.logo-img {
    height: 90px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.search-bar {
    flex: 1;
    max-width: 600px;
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    overflow: hidden;
    padding: 5px 20px;
    transition: var(--transition);
}

.search-bar:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(93, 10, 28, 0.1);
}

.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 0;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-main);
}

.search-bar button {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
}

.search-bar button:hover {
    color: var(--primary-color);
}

.user-auth {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-icon-wrapper {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
    transition: var(--transition);
}

.user-icon-wrapper:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.user-icon-wrapper i {
    font-size: 1.4rem;
}

.auth-links {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    gap: 8px;
}

.auth-links a:hover {
    color: var(--primary-color);
}

.divider-pipe {
    color: var(--border-color);
}

/* Main Navigation */
.main-nav {
    background-color: var(--nav-bg);
    color: #fff;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 55px;
}

.nav-left {
    display: flex;
    align-items: center;
    height: 100%;
}

.categories-dropdown {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
    height: 100%;
    font-weight: 600;
    font-size: 1rem;
    background-color: rgba(0,0,0,0.1);
    cursor: pointer;
    border-right: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
    white-space: nowrap;
}

.categories-dropdown:hover {
    background-color: rgba(255,255,255,0.1);
}

.nav-links {
    display: flex;
    height: 100%;
}

.nav-links a {
    display: flex;
    align-items: center;
    padding: 0 20px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active {
    background-color: rgba(255,255,255,0.1);
}

.nav-right {
    height: 100%;
    display: flex;
    align-items: center;
}

.cart-container {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 0 20px;
    height: 100%;
    transition: var(--transition);
    white-space: nowrap;
}

.cart-container:hover {
    background-color: rgba(255,255,255,0.1);
}

.cart-icon {
    font-size: 1.5rem;
}

.cart-info {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.cart-price {
    font-weight: 600;
    font-size: 1.05rem;
}

.cart-items {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}

/* Circular Categories Section */
.circular-categories-section {
    padding: 40px 0 10px 0;
    background-color: #fff;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-family: var(--font-heading);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 10px auto 0;
}

.categories-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px 10px;
    justify-items: center;
}

.category-circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    text-align: center;
    width: 100%;
}

.circle-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 15px;
    border: 3px solid transparent;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

.category-circle-item:hover .circle-img {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(93, 10, 28, 0.2);
}

.category-circle-item:hover .circle-img img {
    transform: scale(1.1);
}

.category-name {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

.category-circle-item:hover .category-name {
    color: var(--primary-color);
}

/* Hero Banner Placeholder */
.hero-banner {
    height: 400px;
    background-color: #f8f8f8;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/hero.png');
    background-size: cover;
    background-position: center 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.banner-content h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.banner-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* New Arrivals & Best Selling Sections */
.new-arrivals-section,
.best-selling-section {
    padding: 10px 0 0px 0;
    background-color: var(--bg-color);
}

.promo-banner {
    width: 100%;
    height: 250px;
    border-radius: 12px;
    background-image: linear-gradient(rgba(93, 10, 28, 0.7), rgba(93, 10, 28, 0.5)), url('images/bridal.png');
    background-size: cover;
    background-position: center 30%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 20px;
}

.best-selling-banner {
    background-image: linear-gradient(rgba(93, 10, 28, 0.8), rgba(93, 10, 28, 0.6)), url('images/hero.png');
}

.promo-banner h3 {
    font-size: 2.2rem;
    font-family: var(--font-heading);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.promo-banner p {
    font-size: 1.1rem;
    font-weight: 300;
}

.product-slider {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 10px 0 10px 0;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 20px;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.product-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.product-card {
    flex: 0 0 280px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    scroll-snap-align: start;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.product-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    transform: translateY(-5px);
}

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

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h3 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 8px;
    font-weight: 600;
    /* Alignment Fix */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6rem;
}

.product-info .price {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.product-info .btn {
    width: 100%;
    padding: 10px;
    font-size: 0.95rem;
    border-radius: 6px;
}

/* Footer */
.footer {
    background-color: #111;
    color: rgba(255,255,255,0.8);
    padding: 60px 0 20px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-brand h2 {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.footer-contact {
    margin-top: 25px;
    text-align: right;
}

.footer-contact h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #fff;
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu li a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-menu li a:hover {
    color: var(--accent-color);
}

.footer-contact p {
    color: #ccc;
    margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .header-container {
        flex-wrap: nowrap;
        gap: 10px;
    }
    .logo-img {
        height: 80px;
        width: auto;
    }
    .search-bar {
        flex: 1;
        min-width: 0;
    }
    .search-bar input {
        min-width: 0;
    }
    .user-auth {
        gap: 6px;
    }
    .auth-links {
        display: flex;
        font-size: 0.8rem;
    }
    .nav-container {
        padding: 0 5px;
    }

    .categories-dropdown {
        padding: 0 8px;
        font-size: 0.85rem;
    }
    .nav-links a {
        padding: 0 8px;
        font-size: 0.8rem;
    }
    .cart-container {
        padding: 0 8px;
    }
    .cart-price {
        font-size: 0.9rem;
    }
    .categories-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px 10px;
    }
    .circle-img {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 60px; /* Space for the bottom nav */
    }
    .top-header {
        padding: 10px 0;
    }
    .header-container {
        gap: 8px;
    }
    .logo-img {
        height: 70px;
        width: auto;
    }
    .search-bar input {
        padding: 8px 30px 8px 12px;
        font-size: 0.8rem;
    }
    .search-bar button {
        right: 2px;
        width: 30px;
        height: 30px;
        font-size: 1.1rem;
    }
    .user-icon-wrapper {
        width: 32px;
        height: 32px;
    }
    .user-icon-wrapper i {
        font-size: 1.2rem;
    }
    .auth-links {
        font-size: 0.75rem;
    }
    .auth-links .divider-pipe, 
    .auth-links a:last-child {
        display: none; /* Hide " | Registration" to save space, keeping just "Login" */
    }

    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 50px;
        padding: 0 5px;
    }
    .nav-left {
        display: flex;
        align-items: center;
        flex: 1;
        min-width: 0;
    }
    .categories-dropdown {
        padding: 0 10px 0 5px;
        flex-shrink: 0;
    }
    .nav-links {
        display: flex;
        overflow-x: auto;
        gap: 8px;
        white-space: nowrap;
        padding: 5px 0;
        border: none;
        margin: 0;
        -webkit-overflow-scrolling: touch;
    }
    .nav-links::-webkit-scrollbar {
        display: none;
    }
    .nav-links a {
        font-size: 0.75rem;
        padding: 4px 10px;
        background: rgba(255,255,255,0.1);
        border-radius: 15px;
    }
    .nav-right {
        display: none;
    }
    .cart-container {
        display: none;
    }
    .cart-price {
        font-size: 0.9rem;
    }
    .cart-items {
        display: none; /* Hide (0 items) to save space */
    }
    .cart-icon {
        font-size: 1.2rem;
    }
}


@media (max-width: 768px) {
    .categories-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px 5px;
    }
    .circle-img {
        width: 80px;
        height: 80px;
        margin-bottom: 8px;
    }
    .category-name {
        font-size: 0.65rem;
    }
    .banner-content h1 {
        font-size: 2.5rem;
    }
    .promo-banner {
        height: 180px;
        margin-bottom: 20px;
    }
    .promo-banner h3 {
        font-size: 1.6rem;
    }
    .promo-banner p {
        font-size: 0.9rem;
    }
    .product-card {
        flex: 0 0 240px;
    }
    .product-img {
        height: 280px;
    }
    .product-info {
        padding: 15px;
    }
    .product-info h3 {
        font-size: 1rem;
    }
}

/* Mobile Bottom Navigation Styles */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

/* Floating Action Buttons */
.floating-buttons {
    position: fixed;
    right: 15px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.fab {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    text-decoration: none;
}

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

.whatsapp-fab {
    background-color: #25D366; /* WhatsApp Green */
    color: #fff;
    border-radius: 50%;
    font-size: 2.2rem;
}

.scroll-top-fab {
    background-color: #f26522; /* Orange */
    color: #fff;
    border-radius: 8px; /* Rectangular like screenshot */
    font-size: 2rem;
}

@media (max-width: 1024px) {
    .floating-buttons {
        bottom: 80px; /* Above the mobile bottom navigation */
    }
}

@media (min-width: 1440px) {
    .floating-buttons {
        right: calc((100vw - 1400px) / 2 + 20px);
    }
}
.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    color: #fff;
    text-decoration: none;
    font-size: 0.7rem;
    gap: 4px;
}
.bottom-nav-item i {
    font-size: 1.4rem;
}
.bottom-cart-wrapper {
    position: relative;
    display: flex;
}
.bottom-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    background-color: #fff;
    color: var(--primary-color);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 50%;
}

@media (max-width: 1024px) {
    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
    }
    body {
        padding-bottom: 60px;
    }
}

/* Category Page Styles */
.category-page {
    padding: 40px 0 80px;
    background-color: var(--bg-color);
}

.category-header {
    text-align: center;
    margin-bottom: 40px;
}

.category-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-family: var(--font-heading);
    margin-bottom: 10px;
}

.category-header p {
    color: #666;
    font-size: 1.1rem;
}

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

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
    .category-header h1 {
        font-size: 2rem;
    }
}

/* Categories Dropdown */
.categories-dropdown {
    position: relative;
    cursor: pointer;
}

.categories-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 240px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border-radius: 4px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 0;
    margin: 0;
    text-align: left;
}

.categories-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.categories-dropdown .dropdown-menu li {
    border-bottom: 1px solid #eee;
}

.categories-dropdown .dropdown-menu li:last-child {
    border-bottom: none;
}

.categories-dropdown .dropdown-menu li a {
    display: block;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.3s, color 0.3s, padding-left 0.3s;
    text-transform: uppercase;
    font-family: var(--font-body);
}

.categories-dropdown .dropdown-menu li a:hover {
    background-color: #f9f9f9;
    color: var(--primary-color);
    padding-left: 20px;
}

/* Nested Submenu using Details/Summary for Mobile & Desktop */
.dropdown-menu details.mobile-submenu summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    font-family: var(--font-body);
    cursor: pointer;
    list-style: none; /* removes default arrow */
    transition: background 0.3s, color 0.3s, padding-left 0.3s;
}

.dropdown-menu details.mobile-submenu summary::-webkit-details-marker {
    display: none;
}

.dropdown-menu details.mobile-submenu summary:hover {
    background-color: #f9f9f9;
    color: var(--primary-color);
    padding-left: 20px;
}

.dropdown-menu details.mobile-submenu[open] summary i {
    transform: rotate(180deg);
}

.dropdown-menu .submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fcfcfc;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.dropdown-menu .submenu li a {
    padding: 10px 16px 10px 30px;
    font-size: 0.9rem;
    text-transform: capitalize;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu .submenu li:last-child a {
    border-bottom: none;
}

.dropdown-menu .submenu li a:hover {
    padding-left: 35px;
}

/* Mobile Menu Toggle Fixes */
@media (max-width: 768px) {
    /* Disable CSS hover on mobile */
    .categories-dropdown:hover .dropdown-menu {
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
    }
    /* Enable JS active class */
    .categories-dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* Auth Pages (Login / Register) */
.auth-page {
    padding: 60px 0;
    background-color: var(--bg-color);
    min-height: calc(100vh - 400px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-container {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 450px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 10px;
}

.auth-header p {
    color: #666;
    font-size: 0.95rem;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
}

.auth-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.auth-form .btn-primary {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    margin-top: 10px;
    cursor: pointer;
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.auth-options a {
    color: var(--primary-color);
    text-decoration: none;
}

.auth-options a:hover {
    text-decoration: underline;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 0.95rem;
    color: #555;
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Mobile 2-Column Product Grid Fixes */
@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 5px;
    }
    
    .product-img {
        height: 210px;
    }
    
    .product-info {
        padding: 10px 8px;
    }
    
    .product-title {
        font-size: 0.85rem;
        margin-bottom: 5px;
        line-height: 1.2;
    }
    
    .product-price {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .product-card .btn {
        padding: 0 2px;
        font-size: 0.65rem;
        height: 35px;
        white-space: nowrap;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

/* Product Details Page */
.product-page {
    padding: 40px 0;
    background-color: var(--bg-color);
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.product-image-gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
    max-height: 70vh;
}

.product-category-label {
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.product-info-panel h1 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

.product-price-large {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.product-status {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.in-stock {
    color: #28a745;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.delivery-info {
    color: #555;
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-short-desc {
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
}

.product-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.quantity-selector {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    height: 45px;
}

.quantity-selector button {
    background: #f5f5f5;
    border: none;
    padding: 0 15px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.2s;
}

.quantity-selector button:hover {
    background: #e0e0e0;
}

.quantity-selector input {
    width: 50px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    font-size: 1rem;
    font-weight: 600;
}

.add-to-cart-large {
    flex-grow: 1;
    height: 45px;
    font-size: 1rem;
    white-space: nowrap;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.add-to-cart-btn {
    height: 45px;
    white-space: nowrap;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 10px;
}

.buy-now-btn {
    width: 100%;
    height: 45px;
    background: var(--primary-color);
    color: #fff;
    font-size: 1rem;
    white-space: nowrap;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 10px;
}

.buy-now-btn:hover {
    background: #4a0815;
    color: #fff;
}

/* Description Section */
.product-description-section {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.product-description-section h2 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.description-content p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

.specifications-list {
    list-style: none;
    padding: 0;
}

.specifications-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
}

.specifications-list li strong {
    display: inline-block;
    width: 150px;
    color: #222;
}

/* Related Products */
.related-products-section h2 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
}

@media (max-width: 900px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 10px;
    }
    .product-image-gallery img {
        max-height: none; /* Let it scale naturally on mobile */
        border-radius: 6px;
    }
    .product-info-panel h1 {
        font-size: 1.5rem;
        word-wrap: break-word;
    }
    .product-actions {
        flex-wrap: wrap;
    }
    .add-to-cart-large, .buy-now-btn {
        font-size: 0.9rem;
        padding: 0 5px;
    }
}

/* Product Card Alignment Fixes */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card > a {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card > a > .product-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card > a > .product-info h3 {
    flex-grow: 1;
}

