/*
Theme Name: Romalux Jewelry
Theme URI: https://romaluxjewelry.com
Author: Romalux
Author URI: https://romaluxjewelry.com
Description: Luxury jewelry and custom design theme for Romalux Jewelry.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: romalux
*/

:root {
    --bg-dark: #050505;
    --bg-card: #121212;
    --bg-header: #000000;
    --bg-panel: #1a1a1a;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --accent-red: #FF0000;
    --border-color: #2a2a2a;
    --transition-speed: 0.3s;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body > main {
    flex: 1;
}

a { text-decoration: none; color: inherit; transition: color 0.2s; cursor: pointer; }
ul { list-style: none; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; }
input, select { font-family: inherit; }

/* --- HEADER & NAVIGATION --- */
header {
    background-color: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    padding: 0 5%;
    height: 80px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: white;
}
.logo span { color: var(--accent-red); }

nav {
    display: flex;
    justify-content: center;
    height: 100%;
}

nav ul {
    display: flex;
    gap: 35px;
    height: 100%;
    align-items: center;
}

nav li {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

nav a {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    color: var(--text-muted);
    padding: 10px 0;
    position: relative;
    cursor: pointer;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-red);
    transition: width 0.3s ease;
}

nav a:hover, nav a.active {
    color: var(--accent-red);
}

nav a:hover::after, nav a.active::after {
    width: 100%;
}

.nav-icon {
    font-size: 0.6em;
    margin-left: 5px;
    transition: transform 0.3s;
}

nav li:hover .nav-icon {
    transform: rotate(180deg);
}

.header-cart {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    color: var(--text-main);
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-icon:hover {
    color: var(--accent-red);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--accent-red);
    color: white;
    font-size: 0.65rem;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- DROPDOWN MEGAMENU --- */
.dropdown-menu {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    width: 1100px; 
    padding: 25px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    border-radius: 4px;
    z-index: 999;
}

#custom-dropdown { 
    width: 550px; 
    grid-template-columns: repeat(3, 1fr);
}

nav li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 10px;
    border-radius: 4px;
    transition: all 0.2s;
    cursor: pointer;
    border: 1px solid transparent;
}

.dropdown-item:hover {
    background-color: var(--bg-panel);
    border-color: var(--accent-red);
}

.dropdown-item i {
    font-size: 1.6rem;
    color: var(--accent-red);
    margin-bottom: 12px;
    transition: transform 0.2s;
}

.dropdown-item:hover i {
    transform: scale(1.1);
}

.dropdown-item span {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
    line-height: 1.4;
}

.dropdown-item:hover span {
    color: var(--accent-red);
}

/* --- MAIN CONTENT AREA --- */
main {
    min-height: 80vh;
    padding: 50px 5%;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

.page-content {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 400;
    letter-spacing: 2px;
    color: var(--text-main);
}
.section-title span { 
    border-bottom: 2px solid var(--accent-red); 
    padding-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- CATEGORY HERO --- */
.category-hero {
    height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 4px;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.category-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8));
}

.category-hero-content {
    z-index: 2;
    max-width: 700px;
    padding: 0 20px;
}

.category-hero h1 { 
    font-family: var(--font-heading);
    font-size: 3.5rem; 
    margin-bottom: 15px; 
    line-height: 1.1;
}

.category-hero p { 
    font-size: 1.1rem; 
    color: #d0d0d0; 
    font-weight: 300;
}

/* --- HERO SECTION --- */
.hero {
    height: 650px;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.8)), url('https://image.qwenlm.ai/public_source/3468111f-2f5d-4be5-8b0d-f4cffd41adfa/16c5ebbeb-dd6e-4086-bbc8-787773cf0ada.png');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 4px;
    margin-bottom: 70px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, var(--bg-dark) 100%);
    pointer-events: none;
}

.hero-content {
    z-index: 2;
    max-width: 700px;
    padding: 0 20px;
}

.hero h1 { 
    font-family: var(--font-heading);
    font-size: 4rem; 
    margin-bottom: 20px; 
    line-height: 1.1;
    text-shadow: 0 4px 30px rgba(0,0,0,0.8);
}

.hero p { 
    font-size: 1.1rem; 
    color: #d0d0d0; 
    margin-bottom: 35px; 
    font-weight: 300;
    line-height: 1.8;
}

.btn-primary {
    background-color: var(--accent-red);
    color: white;
    padding: 16px 45px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    transition: all 0.3s;
    border: 1px solid var(--accent-red);
    display: inline-block;
}

.btn-primary:hover { 
    background-color: transparent;
    color: var(--accent-red);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    padding: 16px 45px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    transition: all 0.3s;
    border: 1px solid var(--border-color);
    display: inline-block;
    margin-left: 15px;
}

.btn-secondary:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
}

/* --- PRODUCT GRID --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 35px;
}

.product-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.27);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(255, 0, 0, 0.12);
    border-color: var(--accent-red);
}

.product-image-container {
    width: 100%;
    height: 320px;
    background-color: var(--bg-panel);
    position: relative;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--accent-red);
    color: white;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 12px;
    font-weight: 600;
}

.product-info {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}

.product-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--accent-red);
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    font-weight: 600;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--text-main);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3.2em;
    transition: color 0.2s;
}

.product-card:hover .product-title {
    color: var(--accent-red);
}

.product-price {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 18px;
}

.btn-add-cart {
    width: 100%;
    padding: 14px;
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-add-cart:hover {
    background-color: var(--accent-red);
    color: white;
    border-color: var(--accent-red);
}

/* --- SINGLE PRODUCT PAGE STYLES --- */
.pdp-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

.pdp-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pdp-main-image {
    width: 100%;
    height: 600px;
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pdp-main-image img {
    max-height: 90%;
    max-width: 90%;
    object-fit: contain;
    transition: transform 0.3s;
}

.pdp-main-image img:hover {
    transform: scale(1.1);
}

.pdp-thumbnails {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.pdp-thumb {
    width: 80px;
    height: 80px;
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s;
}

.pdp-thumb:hover, .pdp-thumb.active {
    border-color: var(--accent-red);
    transform: translateY(-2px);
}

.pdp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pdp-details {
    padding: 20px 0;
}

.pdp-category {
    color: var(--accent-red);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.pdp-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 15px;
    line-height: 1.2;
}

.pdp-price {
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 25px;
    font-weight: 300;
}

.pdp-price span {
    font-size: 1rem;
    color: var(--text-muted);
    margin-left: 10px;
}

.pdp-description {
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.8;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 30px;
}

.variant-group {
    margin-bottom: 25px;
}

.variant-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 600;
}

.variant-select {
    width: 100%;
    padding: 15px;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    color: white;
    font-size: 0.95rem;
    cursor: pointer;
    transition: border 0.3s;
    appearance: none;
    background-image: url("image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FF0000%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 12px auto;
}

.variant-select:focus {
    border-color: var(--accent-red);
    outline: none;
}

.pdp-actions {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.btn-pdp-cart {
    flex: 2;
    background-color: var(--accent-red);
    color: white;
    padding: 18px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    transition: all 0.3s;
    border: 1px solid var(--accent-red);
}

.btn-pdp-cart:hover {
    background-color: transparent;
    color: var(--accent-red);
}

.btn-pdp-wishlist {
    flex: 1;
    background-color: transparent;
    color: var(--text-main);
    padding: 18px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    transition: all 0.3s;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-pdp-wishlist:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.pdp-meta {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.pdp-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.pdp-meta-item i {
    color: var(--accent-red);
    width: 20px;
}

/* --- PRODUCT DESCRIPTION SECTION --- */
.product-description-section {
    margin-top: 80px;
    padding: 60px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.product-description-section h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 25px;
    border-bottom: 2px solid var(--accent-red);
    display: inline-block;
    padding-bottom: 10px;
}

.product-description-section .desc-content {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1rem;
}

.product-description-section .desc-content p {
    margin-bottom: 20px;
}

.product-description-section .desc-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.product-description-section .desc-content li {
    margin-bottom: 10px;
}

.product-description-section .specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.product-description-section .spec-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.product-description-section .spec-label {
    color: var(--text-muted);
    font-weight: 500;
}

.product-description-section .spec-value {
    color: var(--text-main);
    font-weight: 600;
}

/* --- RELATED PRODUCTS SECTION --- */
.related-products-section {
    margin-top: 80px;
    padding: 60px 0;
}

.related-products-section h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 40px;
    text-align: center;
}

.related-products-section h3 span {
    border-bottom: 2px solid var(--accent-red);
    padding-bottom: 10px;
}

/* --- FOOTER STYLES --- */
.site-footer {
    background-color: #000000;
    color: white;
    border-top: 2px solid var(--accent-red);
    margin-top: 80px;
    padding: 60px 0 30px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.footer-brand h3 span {
    color: var(--accent-red);
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-red);
    display: inline-block;
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-section ul li a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-section ul li a:hover {
    color: var(--accent-red);
}

.footer-newsletter p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-form input {
    padding: 12px 16px;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: white;
    font-size: 0.9rem;
    transition: border-color 0.3s;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent-red);
}

.newsletter-form button {
    background-color: var(--accent-red);
    color: white;
    padding: 12px 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    border: 1px solid var(--accent-red);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.newsletter-form button:hover {
    background-color: transparent;
    color: var(--accent-red);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-links a {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: color 0.2s;
}

.social-links a:hover {
    color: var(--accent-red);
}

.footer-bottom {
    border-top: 2px solid var(--accent-red);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- SUPPLIER IFRAME CONTAINER --- */
.supplier-iframe-container {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 30px;
}

.supplier-iframe-container iframe {
    width: 100%;
    min-width: 100%;
    border: none;
    display: block;
}

.iframe-header {
    padding: 20px 30px;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.iframe-header h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-main);
}

.iframe-header .info-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- ETERNITY BUILDER IFRAME WRAPPER --- */
.eternity-builder-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    background: rgba(0,0,0,0.35);
    margin-top: 30px;
}

.eternity-builder-wrapper iframe {
    width: 100%;
    height: 3000px;
    border: none;
    display: block;
    opacity: 0.9;
    filter: brightness(0.9) contrast(1.05);
}

/* --- LOADING & TOAST --- */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    color: var(--accent-red);
    font-size: 3rem;
}

.loading-text {
    text-align: center;
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.error-message {
    text-align: center;
    padding: 50px;
    color: var(--accent-red);
    border: 1px solid var(--accent-red);
    background: rgba(255, 0, 0, 0.05);
    border-radius: 4px;
}

.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--accent-red);
    color: white;
    padding: 18px 30px;
    border-radius: 2px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    z-index: 2000;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: 0 10px 40px rgba(255, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 15px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast i { font-size: 1.2rem; }

.api-status {
    position: fixed;
    bottom: 20px;
    left: 20px;
    font-size: 0.7rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,0.8);
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.api-status .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #00ff00;
    animation: pulse 2s infinite;
}

.api-status.error .status-dot {
    background-color: #ffaa00;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.breadcrumb {
    display: flex;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.breadcrumb a { color: var(--text-muted); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent-red); }
.breadcrumb .separator { color: var(--border-color); }
.breadcrumb .current { color: var(--accent-red); }

.category-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.category-nav-btn {
    padding: 12px 25px;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
}

.category-nav-btn:hover, .category-nav-btn.active {
    background: var(--accent-red);
    color: white;
    border-color: var(--accent-red);
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 20px;
}

.filter-group {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent-red);
    color: white;
    border-color: var(--accent-red);
}

.sort-select {
    padding: 10px 15px;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    color: white;
    font-size: 0.85rem;
    cursor: pointer;
}

.sort-select:focus { border-color: var(--accent-red); outline: none; }
.results-count { color: var(--text-muted); font-size: 0.9rem; }

.builder-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: var(--bg-card);
    padding: 40px;
    border: 1px solid var(--border-color);
}

.builder-preview {
    background: var(--bg-panel);
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.builder-preview img { max-height: 70%; max-width: 70%; transition: all 0.4s; }

.builder-controls h3 { font-family: var(--font-heading); font-size: 1.8rem; margin-bottom: 10px; color: var(--text-main); }
.builder-controls .builder-desc { color: var(--text-muted); margin-bottom: 30px; font-size: 0.95rem; }
.control-group { margin-bottom: 28px; }
.control-label { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); margin-bottom: 12px; font-weight: 600; }

.color-options { display: flex; gap: 12px; }
.color-btn { width: 45px; height: 45px; border-radius: 50%; border: 2px solid var(--border-color); cursor: pointer; transition: all 0.2s; }
.color-btn:hover { transform: scale(1.1); }
.color-btn.active { border-color: var(--accent-red); transform: scale(1.1); box-shadow: 0 0 15px rgba(255, 0, 0, 0.4); }

.range-slider { width: 100%; -webkit-appearance: none; background: var(--bg-panel); height: 4px; border-radius: 2px; outline: none; }
.range-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; background: var(--accent-red); border-radius: 50%; cursor: pointer; transition: all 0.2s; }
.range-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }

.form-select { width: 100%; padding: 14px; background: var(--bg-panel); border: 1px solid var(--border-color); color: white; font-size: 0.9rem; cursor: pointer; transition: border 0.3s; }
.form-select:focus { border-color: var(--accent-red); outline: none; }

.price-display { background: var(--bg-panel); padding: 20px; border: 1px solid var(--border-color); margin-top: 30px; text-align: center; }
.price-display .label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); margin-bottom: 8px; }
.price-display .amount { font-family: var(--font-heading); font-size: 2rem; color: var(--accent-red); }

.auth-container { max-width: 450px; margin: 0 auto; background: var(--bg-card); padding: 50px; border: 1px solid var(--border-color); text-align: center; }
.form-group { margin-bottom: 22px; text-align: left; }
.form-input { width: 100%; padding: 15px; background: var(--bg-panel); border: 1px solid var(--border-color); color: white; font-size: 0.95rem; transition: border 0.3s; }
.form-input:focus { border-color: var(--accent-red); outline: none; }
.form-label { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); margin-bottom: 10px; font-weight: 600; }

.features-section { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 80px; padding-top: 50px; border-top: 1px solid var(--border-color); }
.feature-item { text-align: center; padding: 25px; }
.feature-item i { font-size: 2.5rem; color: var(--accent-red); margin-bottom: 15px; }
.feature-item h4 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; color: var(--text-main); }
.feature-item p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pdp-container { grid-template-columns: 1fr; }
    .pdp-main-image { height: 400px; }
    .builder-container { grid-template-columns: 1fr; }
    .features-section { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 3rem; }
    .category-hero h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    header { padding: 0 20px; height: 70px; }
    .logo { font-size: 1.4rem; }
    nav ul { display: none; }
    .hero h1 { font-size: 2.5rem; }
    .dropdown-menu { display: none; }
    .features-section { grid-template-columns: 1fr; }
    .section-title { font-size: 2rem; }
    .filter-bar { flex-direction: column; align-items: stretch; }
    .filter-group { flex-wrap: wrap; }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
