:root {
    /* Soft 3D Theme Colors */
    --bg-main: #800000; /* Darker red for background */
    --surface: #8a0000; /* Slightly lighter surface for cards */
    --primary: #d30000;
    --primary-light: #ff4d4d;
    --text-main: #ffffff;
    --text-muted: #ffcccc;
    --accent: #ffb703;
    
    /* Soft Shadows */
    --shadow-light: rgba(255, 77, 77, 0.1); 
    --shadow-dark: rgba(20, 0, 0, 0.5);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

/* Basic Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}
.row > [class*="col-"] {
    padding-right: 15px;
    padding-left: 15px;
}
.col-md-12 {
    width: 100%;
}
@media (min-width: 768px) {
    .col-md-3 {
        width: 25%;
    }
    .col-md-9 {
        width: 75%;
    }
}

html {
    scroll-behavior: smooth;
}

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

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

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.3;
}

/* 3D Panels (Replaces Glassmorphism) */
.glass-panel, .card-3d {
    background: var(--surface);
    border-radius: var(--radius-md);
    /* Neumorphic 3D Box Shadow */
    box-shadow: 
        4px 4px 8px var(--shadow-dark),
        -4px -4px 8px var(--shadow-light);
    border: 1px solid rgba(255, 255, 255, 0.05); /* Slight edge highlight */
    transform-style: preserve-3d;
}

/* Buttons (3D Physical Button effect) */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
    /* 3D Button Pop */
    box-shadow: 
        6px 6px 12px var(--shadow-dark),
        -4px -4px 10px rgba(255, 100, 100, 0.4),
        inset 2px 2px 4px rgba(255, 255, 255, 0.2),
        inset -2px -2px 4px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 
        4px 4px 8px var(--shadow-dark),
        -2px -2px 6px rgba(255, 100, 100, 0.2),
        inset 1px 1px 2px rgba(255, 255, 255, 0.1),
        inset -1px -1px 2px rgba(0, 0, 0, 0.1);
}

.btn-primary:active {
    /* Button pressed down effect */
    transform: translateY(4px);
    box-shadow: 
        2px 2px 4px var(--shadow-dark),
        -1px -1px 2px rgba(255, 100, 100, 0.3),
        inset 4px 4px 8px rgba(0, 0, 0, 0.4),
        inset -2px -2px 4px rgba(255, 255, 255, 0.1);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        4px 4px 8px var(--shadow-dark),
        -4px -4px 8px var(--shadow-light);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: white;
}

.btn-outline:active {
    transform: translateY(2px);
    box-shadow: 
        inset 2px 2px 6px var(--shadow-dark),
        inset -2px -2px 6px var(--shadow-light);
}

.w-100 {
    width: 100%;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
    margin-bottom: 30px;
    /* 3D Header popping down */
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: 
        0px 8px 16px var(--shadow-dark),
        0px -2px 4px var(--shadow-light);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: white;
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.logo-icon {
    color: var(--accent);
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
}

.nav-links a:hover, .nav-links a.active {
    color: white;
    /* 3D Inset state for active/hover */
    background: var(--surface);
    box-shadow: 
        inset 4px 4px 8px var(--shadow-dark),
        inset -4px -4px 8px var(--shadow-light);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Icon Buttons (3D) */
.icon-btn {
    background: var(--surface);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    /* 3D Pop */
    box-shadow: 
        4px 4px 8px var(--shadow-dark),
        -4px -4px 8px var(--shadow-light);
}

.icon-btn:hover {
    color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 
        6px 6px 12px var(--shadow-dark),
        -4px -4px 10px var(--shadow-light);
}

.icon-btn:active {
    transform: translateY(2px);
    box-shadow: 
        inset 4px 4px 8px var(--shadow-dark),
        inset -4px -4px 8px var(--shadow-light);
}

.cart-btn {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent);
    color: #000;
    font-size: 12px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* CMS Nested Tabs Content */
.tab-pane {
    display: none;
}
.tab-pane.active {
    display: block;
}

/* Vertical Tabs Menu */
.cms-vertical-tabs .tab-btn:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}
.cms-vertical-tabs .tab-btn.active {
    background: rgba(255, 255, 255, 0.15) !important;
    border-left: 4px solid var(--accent) !important;
}

/* Image Preview Box */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 40px 0 80px;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.4);
}

.hero-content p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-image {
    position: relative;
    /* Setup for 3D tilt */
    perspective: 1000px; 
}

.hero-badge {
    position: absolute;
    top: -20px;
    right: 20px;
    background: var(--accent);
    color: #000;
    padding: 15px;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 700;
    line-height: 1.2;
    transform: rotate(15deg);
    /* 3D Pop for badge */
    box-shadow: 
        4px 4px 10px rgba(0,0,0,0.5),
        inset 2px 2px 5px rgba(255,255,255,0.5);
    animation: float 3s ease-in-out infinite;
    z-index: 10;
}

@keyframes float {
    0%, 100% { transform: rotate(15deg) translateY(0); }
    50% { transform: rotate(15deg) translateY(-10px); }
}

.hero-image .glass-panel {
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    font-size: 150px;
    color: var(--text-muted);
}

/* Products Section */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 32px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    padding-bottom: 60px;
    /* Required for 3D tilt effect on children */
    perspective: 1200px; 
}

.product-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: box-shadow 0.4s ease, transform 0.4s ease;
    /* Ensure child elements can have Z depth */
    transform-style: preserve-3d;
}

.product-card:hover {
    /* Hover base 3D lift */
    transform: translateY(-2px);
    box-shadow: 
        6px 6px 12px var(--shadow-dark),
        -6px -6px 12px var(--shadow-light);
}

.product-badge {
    position: absolute;
    top: -10px;
    left: -10px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 13px;
    z-index: 10;
    /* Pop out in 3D space */
    transform: translateZ(30px);
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

.product-badge.discount {
    background: var(--accent);
    color: #000;
}

.product-badge.new {
    background: #4caf50;
    color: white;
}

.product-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    /* 3D Inset Box for Image */
    background: var(--surface);
    border-radius: var(--radius-sm);
    box-shadow: 
        inset 6px 6px 12px var(--shadow-dark),
        inset -6px -6px 12px var(--shadow-light);
    transform: translateZ(20px);
}

.img-placeholder {
    color: var(--text-muted);
    opacity: 0.8;
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    transform: translateZ(10px);
}

.product-brand {
    font-size: 12px;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 4px;
}

.product-title {
    font-size: 16px;
    margin-bottom: 10px;
    flex: 1;
}

.product-rating {
    color: var(--accent);
    font-size: 13px;
    margin-bottom: 15px;
}

.product-rating span {
    color: var(--text-muted);
    margin-left: 5px;
}

.product-price {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.current-price {
    font-size: 22px;
    font-weight: 700;
    color: white;
}

.old-price {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--surface);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    /* 3D Pop */
    box-shadow: 
        10px 10px 20px var(--shadow-dark),
        -5px -5px 15px var(--shadow-light);
    transition: var(--transition);
    transform: translateY(0) translateZ(50px);
}

.toast i {
    color: #4caf50;
    font-size: 20px;
}

.toast.hidden {
    transform: translateY(100px);
    opacity: 0;
    pointer-events: none;
}

/* =========================================
   PROFESSIONAL E-COMMERCE LAYOUT
   ========================================= */

/* Topbar */
.topbar {
    background: var(--shadow-dark);
    color: var(--text-muted);
    font-size: 13px;
    padding: 8px 0;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-right {
    display: flex;
    gap: 15px;
}

/* Main Header Tweaks */
.header {
    border-radius: 0;
    margin-bottom: 0;
    box-shadow: 0px 4px 8px var(--shadow-dark);
    position: relative; /* Remove sticky if we want a clean scrolling flow, or keep it */
}

/* Search Bar */
.search-container {
    flex: 1;
    max-width: 500px;
    margin: 0 40px;
    position: relative;
    display: flex;
}

.search-container input {
    width: 100%;
    padding: 12px 20px;
    border-radius: 30px 0 0 30px;
    border: none;
    background: var(--surface);
    color: white;
    box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
    font-family: inherit;
}

.search-container input:focus {
    outline: none;
    box-shadow: inset 6px 6px 12px var(--shadow-dark), inset -6px -6px 12px var(--shadow-light);
}

.search-container button {
    border-radius: 0 30px 30px 0;
    padding: 0 25px;
    border: none;
    background: var(--primary);
    color: white;
    cursor: pointer;
    box-shadow: 4px 4px 8px var(--shadow-dark);
    transition: var(--transition);
}

.search-container button:hover {
    background: var(--primary-light);
}

/* Category Menu */
.category-menu {
    background: var(--surface);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    margin-bottom: 30px;
}

.category-menu .container {
    display: flex;
    gap: 30px;
}

.category-link {
    color: var(--text-main);
    text-decoration: none;
    padding: 15px 0;
    font-weight: 600;
    position: relative;
    text-transform: uppercase;
    font-size: 14px;
    transition: var(--transition);
}

.category-link:hover {
    color: var(--accent);
}

.category-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent);
    transition: var(--transition);
}

.category-link:hover::after {
    width: 100%;
}

/* Trust Badges */
.trust-badges {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 50px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    box-shadow: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
}

.trust-icon {
    font-size: 32px;
    color: var(--accent);
}

.trust-text h4 {
    margin-bottom: 5px;
    font-size: 15px;
}

.trust-text p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Professional Footer */
.pro-footer {
    background: #4a0000;
    padding: 60px 0 20px;
    margin-top: 80px;
    box-shadow: inset 0 10px 20px rgba(0,0,0,0.3);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--accent);
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-contact p {
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    gap: 10px;
}

.footer-contact i {
    color: var(--accent);
    margin-top: 5px;
}

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

/* Responsive Design Overhaul */

/* Tablet (max-width: 991px) */
@media (max-width: 991px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-content div {
        justify-content: center;
    }

    .trust-badges {
        grid-template-columns: 1fr 1fr;
    }
    
    .category-menu .container {
        overflow-x: auto;
        white-space: nowrap;
        justify-content: flex-start;
        padding-bottom: 5px;
    }
    
    .category-menu .container::-webkit-scrollbar {
        height: 4px;
    }
    .category-menu .container::-webkit-scrollbar-track {
        background: rgba(0,0,0,0.1);
    }
    .category-menu .container::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 4px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
    .topbar .container {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    
    #topbar-email {
        display: none;
    }

    .header .container {
        flex-direction: column;
        gap: 15px;
        padding: 15px 0;
    }

    .search-container {
        width: 100%;
        max-width: 100%;
        display: flex; /* Override the old display:none if it existed */
        margin: 5px 0;
    }
    
    .nav-actions {
        width: 100%;
        justify-content: center;
        gap: 20px;
    }

    .lang-text {
        display: none;
    }
    
    .lang-selector {
        margin-right: 0 !important;
    }
    
    .trust-badges {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .trust-text h4 {
        font-size: 14px;
    }
    .trust-text p {
        font-size: 12px;
    }
    .trust-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    
    .hero-content h1 {
        font-size: 24px;
    }
    
    .hero-content p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .product-card .card-body {
        padding: 10px;
    }
    
    .product-title {
        font-size: 13px;
        margin-bottom: 5px;
    }
    
    .product-price {
        font-size: 15px;
    }
    
    .section-header h2 {
        font-size: 20px;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr; 
    }
}

/* Google Translate Overrides */
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame {
    visibility: hidden !important;
    height: 0 !important;
    position: absolute !important;
    top: -1000px !important;
}
body {
    top: 0px !important; 
    position: relative !important;
}
#google_translate_element select {
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.4);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    font-weight: 600;
}
#google_translate_element select:hover {
    background: rgba(255,255,255,0.1);
}
#google_translate_element select option {
    background: var(--surface);
    color: white;
}
.goog-logo-link {
    display:none !important;
}
.goog-te-gadget {
    color: transparent !important;
    font-size: 0px !important;
}
.goog-te-gadget span {
    display: none !important;
}
