/* ===== Root Variables ===== */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --bg-light: #f5f3ff;
    --bg-page: #f9f7ff;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

/* ===== Reset & Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-page);
    background: linear-gradient(135deg, #f9f7ff 0%, #f5f3ff 100%);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
    -webkit-touch-callout: none;
    min-height: 100vh;
}

/* Prevent image/button selection on long press */
img, button, a {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 max(20px, 4vw);
    width: 100%;
}

.hero-text-section .container {
    position: relative;
    z-index: 2;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 600;
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
    user-select: auto;
}

h2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    margin-bottom: 0.8rem;
}

h4 {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
}

p {
    color: var(--text-light);
    margin-bottom: 1rem;
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
    user-select: auto;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
    user-select: auto;
}

a.btn {
    color: inherit;
    pointer-events: auto;
}

a:hover {
    color: var(--secondary-color);
}

/* ===== Buttons ===== */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    text-align: center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    touch-action: manipulation;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: auto;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    pointer-events: auto;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* ===== Navigation Bar ===== */
.navbar {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    width: 100%;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(0.75rem, 2vw, 1rem) 0;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: clamp(8px, 2vw, 12px);
    font-size: clamp(1.2rem, 5vw, 1.5rem);
    font-weight: 700;
    white-space: nowrap;
    user-select: none;
    position: relative;
}

.logo-img {
    height: clamp(35px, 8vw, 50px);
    width: auto;
    max-width: clamp(50px, 15vw, 80px);
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.logo-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo i {
    font-size: clamp(1.5rem, 6vw, 1.8rem);
    width: clamp(38px, 8vw, 45px);
    height: clamp(38px, 8vw, 45px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    border-radius: 10px;
    color: var(--primary-color);
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 0.5rem 0;
    font-size: clamp(0.9rem, 2vw, 1rem);
    white-space: nowrap;
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
    user-select: auto;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 10px;
    touch-action: manipulation;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: var(--transition);
    display: block;
}

/* ===== Hero Section ===== */
.hero {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
}

.hero-carousel-section {
    min-height: 55vh;
    position: relative;
    overflow: hidden;
}

.hero-text-section {
    min-height: 45vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: clamp(2rem, 5vw, 4rem) 0;
    width: 100%;
}

.hero-content {
    z-index: 3;
    text-align: center;
    animation: slideInUp 0.8s ease;
    padding: 0 max(20px, 2vw);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hero-title {
    font-size: clamp(2rem, 8vw, 3.5rem);
    margin-bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.3));
}

.hero-subtitle {
    font-size: clamp(1rem, 3.5vw, 1.3rem);
    color: var(--text-light);
    margin-bottom: 0;
    text-shadow: none;
    max-width: 600px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(240, 147, 251, 0.08));
    pointer-events: none;
}

/* ===== Image Carousel Styles ===== */
.image-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.carousel-image.active {
    opacity: 1;
    z-index: 1;
}

.carousel-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(102, 126, 234, 0.15);
}

/* ===== Carousel Indicators ===== */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.floating-shape {
    position: absolute;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: clamp(200px, 30vw, 300px);
    height: clamp(200px, 30vw, 300px);
    background: var(--primary-color);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: clamp(150px, 25vw, 250px);
    height: clamp(150px, 25vw, 250px);
    background: var(--secondary-color);
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    top: 50%;
    right: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: clamp(120px, 20vw, 200px);
    height: clamp(120px, 20vw, 200px);
    background: var(--accent-color);
    border-radius: 30% 70% 70% 30% / 70% 30% 30% 70%;
    bottom: 10%;
    left: 50%;
    animation-delay: 4s;
}

/* ===== Section Headers ===== */
.section-header {
    text-align: center;
    margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section-header p {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    color: var(--text-light);
}

.header-underline {
    width: clamp(60px, 15vw, 100px);
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    margin: 1rem auto;
    border-radius: 2px;
}

/* ===== About Section ===== */
.about {
    padding: clamp(3rem, 8vw, 5rem) 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(240, 147, 251, 0.03) 100%);
    width: 100%;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}

.about-text h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: clamp(1.3rem, 4vw, 1.8rem);
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2.5vw, 1.5rem);
    margin-top: 2rem;
}

.stat {
    background: var(--white);
    padding: clamp(1rem, 3vw, 1.5rem);
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    touch-action: manipulation;
}

.stat h4 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--text-light);
    margin: 0;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1rem, 3vw, 1.5rem);
}

.feature-box {
    background: var(--white);
    padding: clamp(1rem, 3vw, 1.5rem);
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    touch-action: manipulation;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.feature-box:active {
    transform: translateY(-5px);
}

.feature-box i {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-box h4 {
    margin-bottom: 0.5rem;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
}

.feature-box p {
    margin: 0;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
}

/* ===== Products Section ===== */

.products {
    padding: clamp(3rem, 8vw, 5rem) 0;
    background: transparent;
    width: 100%;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1.5rem, 3vw, 2rem);
}

/* ===== Hierarchical Products Container ===== */
.products-container {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2vw, 1.5rem);
}

.parent-product {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    width: 100%;
}

.parent-product:hover {
    box-shadow: var(--shadow);
}

.parent-product:active {
    box-shadow: var(--shadow-sm);
}

.parent-product-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(1rem, 2.5vw, 1.5rem);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    touch-action: manipulation;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.parent-product-header:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateX(5px);
}

.parent-product-header:active {
    transform: translateX(2px);
}

.parent-header-content {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2vw, 1.5rem);
    flex: 1;
    min-width: 0;
}

.product-icon {
    font-size: clamp(1.5rem, 4vw, 2rem);
    min-width: 50px;
    width: clamp(40px, 10vw, 50px);
    height: clamp(40px, 10vw, 50px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    flex-shrink: 0;
}

.parent-info {
    min-width: 0;
}

.parent-info h3 {
    color: var(--white);
    margin: 0;
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    word-break: break-word;
    hyphens: auto;
}

.parent-info p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0.3rem 0 0 0;
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    word-break: break-word;
    hyphens: auto;
}

.expand-icon {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    transition: transform 0.3s ease;
    min-width: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.parent-product.expanded .expand-icon {
    transform: rotate(180deg);
}

.subproducts-list {
    background: var(--bg-light);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.subproducts-list.show {
    max-height: 2000px;
}

.subproduct-item {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 2vw, 1rem);
    padding: clamp(0.8rem, 2vw, 1rem) clamp(1rem, 2vw, 1.5rem);
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    transition: var(--transition);
    touch-action: manipulation;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.subproduct-item:last-child {
    border-bottom: none;
}

.subproduct-item:hover {
    background: var(--white);
    padding-left: clamp(2rem, 3vw, 2rem);
    color: var(--primary-color);
}

.subproduct-item:active {
    background: rgba(102, 126, 234, 0.05);
}

.subproduct-number {
    font-weight: 600;
    color: var(--primary-color);
    min-width: 25px;
    flex-shrink: 0;
    font-size: clamp(0.85rem, 2vw, 1rem);
}

.subproduct-name {
    flex: 1;
    color: var(--text-dark);
    font-weight: 500;
    min-width: 0;
    word-break: break-word;
    hyphens: auto;
    font-size: clamp(0.85rem, 2vw, 1rem);
}

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

.view-icon {
    color: var(--primary-color);
    opacity: 0;
    transition: var(--transition);
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    display: flex;
    flex-shrink: 0;
}

.subproduct-item:hover .view-icon {
    opacity: 1;
    transform: translateX(5px);
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    animation: gradientShift 3s ease infinite;
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: var(--white);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(240, 147, 251, 0.3);
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.price {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.description {
    color: var(--text-light);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.features-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.features-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.features-list i {
    color: var(--primary-color);
}

/* ===== Contact Section ===== */
.contact {
    padding: clamp(3rem, 8vw, 5rem) 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(240, 147, 251, 0.03) 100%);
    width: 100%;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 3rem);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2.5vw, 1.5rem);
}

.info-box {
    background: var(--white);
    padding: clamp(1rem, 3vw, 1.5rem);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    touch-action: manipulation;
}

.info-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.info-box:active {
    transform: translateY(-4px);
}

.info-box i {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-box h4 {
    margin-bottom: 0.8rem;
    color: var(--text-dark);
    font-size: clamp(1rem, 2.5vw, 1.3rem);
}

.info-box p {
    margin: 0;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
}

.info-box a {
    color: var(--primary-color);
    font-weight: 500;
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
    user-select: auto;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1rem;
    padding: 0.7rem 1.2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white) !important;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    text-decoration: none;
}

.map-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.map-link:active {
    transform: translateY(-1px);
}

.map-link i {
    font-size: 1.1rem;
}

.contact-map-section {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: clamp(2rem, 5vw, 3rem);
    transition: var(--transition);
}

.contact-map-section:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.map-container {
    width: 100%;
    height: auto;
}

.map-container iframe {
    width: 100%;
    display: block;
    height: 350px !important;
}

.map-info {
    padding: clamp(1.5rem, 3vw, 2rem);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
}

.map-info h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.coordinates {
    display: flex;
    gap: clamp(1rem, 2vw, 1.5rem);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.coord-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--white);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    flex: 1;
    min-width: 200px;
}

.coord-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.coord-item span {
    color: var(--text-dark);
}

.coord-item strong {
    color: var(--primary-color);
    margin-right: 0.3rem;
}

.map-address {
    color: var(--text-light);
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.contact-section-wrapper {
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 4vw, 3rem);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1rem, 2.5vw, 1.5rem);
}

.business-hours-box {
    grid-column: 1 / -1;
}

.contact-form {
    background: var(--white);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2vw, 1.5rem);
}

.contact-form:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.contact-form h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--text-dark);
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1rem, 2vw, 1.5rem);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    text-transform: capitalize;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: clamp(10px, 2vw, 12px) clamp(12px, 2vw, 15px);
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-family: inherit;
    font-size: clamp(0.85rem, 2vw, 1rem);
    transition: var(--transition);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: var(--white);
    touch-action: manipulation;
}

.form-group input::placeholder,
.form-group select::placeholder,
.form-group textarea::placeholder {
    color: #999;
    font-style: italic;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: var(--primary-color);
    background-color: rgba(102, 126, 234, 0.01);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
    background-color: rgba(102, 126, 234, 0.02);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.contact-form .btn {
    margin-top: 1.5rem;
    width: 100%;
    padding: clamp(12px, 2vw, 15px) clamp(20px, 3vw, 25px);
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition);
    cursor: pointer;
}

.contact-form .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.contact-form .btn:active {
    transform: translateY(-1px);
}

/* ===== Footer ===== */
.footer {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: var(--white);
    padding: clamp(2rem, 5vw, 3rem) 0 clamp(1rem, 2vw, 1rem);
    width: 100%;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
    user-select: auto;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
    user-select: auto;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: clamp(0.75rem, 2vw, 1rem);
    margin-top: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    width: clamp(35px, 8vw, 40px);
    height: clamp(35px, 8vw, 40px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 126, 234, 0.2);
    border-radius: 50%;
    transition: var(--transition);
    touch-action: manipulation;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

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

.social-links a:active {
    transform: scale(0.95);
}

.newsletter-form {
    display: flex;
    gap: clamp(0.4rem, 1vw, 0.5rem);
    margin-top: 1rem;
    flex-wrap: wrap;
}

.newsletter-form input {
    flex: 1;
    min-width: 150px;
    padding: clamp(8px, 2vw, 10px) clamp(12px, 2vw, 15px);
    border: none;
    border-radius: 4px;
    font-size: clamp(0.8rem, 2vw, 0.95rem);
    font-family: inherit;
    background-color: var(--white);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.newsletter-form button {
    padding: clamp(8px, 2vw, 10px) clamp(15px, 2vw, 20px);
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    font-size: clamp(0.8rem, 2vw, 0.95rem);
    font-family: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    touch-action: manipulation;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.newsletter-form button:hover {
    background: var(--secondary-color);
}

.newsletter-form button:active {
    transform: scale(0.98);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

/* ===== Animations ===== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(30px);
    }
}

@keyframes gradientShift {
    0% {
        background: linear-gradient(135deg, #667eea, #764ba2);
    }
    50% {
        background: linear-gradient(135deg, #764ba2, #667eea);
    }
    100% {
        background: linear-gradient(135deg, #667eea, #764ba2);
    }
}

@keyframes priceRoll {
    0% {
        transform: scale(0.6);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.15);
        opacity: 1;
    }
    100% {
        transform: scale(0.6);
        opacity: 0.6;
    }
}

/* ===== Product Details Modal ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
    padding: clamp(10px, 5vw, 20px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.4s ease;
}

.modal-close {
    position: absolute;
    top: clamp(10px, 2vw, 20px);
    right: clamp(10px, 2vw, 20px);
    background: none;
    border: none;
    font-size: clamp(1.5rem, 4vw, 2rem);
    cursor: pointer;
    color: var(--text-dark);
    width: clamp(35px, 8vw, 40px);
    height: clamp(35px, 8vw, 40px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2001;
    transition: var(--transition);
    touch-action: manipulation;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.modal-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.modal-close:active {
    transform: rotate(90deg) scale(0.95);
}

.modal-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1rem, 3vw, 2rem);
    padding: clamp(1.5rem, 3vw, 2rem);
    border-bottom: 2px solid var(--bg-light);
}

.modal-image {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    min-height: clamp(250px, 50vw, 350px);
    position: relative;
}

.modal-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.modal-image-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    pointer-events: auto;
    z-index: 100;
}

.image-nav {
    background: rgba(102, 126, 234, 0.9);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.image-nav:hover {
    background: rgba(102, 126, 234, 1);
    transform: scale(1.1);
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.6);
}

.image-nav:active {
    transform: scale(0.95);
}

.modal-image-label {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    white-space: nowrap;
    backdrop-filter: blur(5px);
    z-index: 99;
}

.modal-header-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.modal-header-info h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.modal-price {
    font-size: clamp(1.2rem, 3.5vw, 1.8rem);
    font-weight: 900;
    font-style: italic;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 50%, var(--secondary-color) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(240, 147, 251, 0.3);
    filter: drop-shadow(0 3px 12px rgba(102, 126, 234, 0.35));
    margin-bottom: 1rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    line-height: 1.2;
    text-align: center;
    animation: priceRoll 4s ease-in-out infinite;
}

.modal-description {
    color: var(--text-light);
    line-height: 1.8;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
}

.modal-body {
    padding: clamp(1.5rem, 3vw, 2rem);
}

.modal-body h3 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-size: clamp(1.2rem, 3vw, 1.5rem);
}

.modal-features-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(0.75rem, 2vw, 1rem);
    margin-bottom: 2rem;
}

.modal-features-list li {
    padding: clamp(0.6rem, 2vw, 0.8rem);
    background: var(--bg-light);
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: clamp(0.6rem, 2vw, 0.8rem);
    color: var(--text-dark);
    font-size: clamp(0.8rem, 2vw, 0.95rem);
}

.modal-features-list i {
    color: var(--primary-color);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    flex-shrink: 0;
}

.modal-details-content {
    background: var(--bg-light);
    padding: clamp(1rem, 2.5vw, 1.5rem);
    border-radius: 8px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
}

.modal-actions {
    display: flex;
    gap: clamp(0.75rem, 2vw, 1rem);
    margin-top: 2rem;
    flex-wrap: wrap;
}

.modal-actions .btn {
    flex: 1;
    min-width: 120px;
}

/* ===== Magnetic Boards Carousel Styles ===== */
.rc-boards-carousel-section {
    margin-top: 2rem;
}

.carousel-container {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 2vw, 1rem);
    position: relative;
    margin-bottom: 2rem;
}

.carousel-nav {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: clamp(40px, 8vw, 50px);
    height: clamp(40px, 8vw, 50px);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    flex-shrink: 0;
    z-index: 10;
}

.carousel-nav:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.carousel-nav:active {
    transform: scale(0.95);
}

.carousel-nav.carousel-prev {
    order: -1;
}

.carousel-viewport {
    flex: 1;
    overflow: hidden;
    border-radius: 8px;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.carousel-slides {
    display: flex;
    transition: transform 0.3s ease;
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    position: absolute;
    width: 100%;
    height: 100%;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    position: relative;
}

.carousel-slide-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1rem, 3vw, 1.5rem);
    padding: clamp(1rem, 2vw, 1.5rem);
    background: var(--bg-light);
    border-radius: 8px;
    height: 100%;
    width: 100%;
}

.carousel-slide-image {
    border-radius: 8px;
    min-height: 300px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.carousel-slide-info h4 {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.carousel-slide-description {
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    color: var(--text-light);
    line-height: 1.6;
}

.carousel-slide-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.carousel-slide-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    color: var(--text-dark);
}

.carousel-slide-features i {
    color: var(--primary-color);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.carousel-slide-details {
    font-size: clamp(0.8rem, 1.8vw, 0.85rem);
    color: var(--text-light);
    line-height: 1.6;
    margin-top: 0.5rem;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.indicator {
    width: clamp(8px, 2vw, 12px);
    height: clamp(8px, 2vw, 12px);
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.indicator:hover {
    background: var(--primary-color);
}

/* ===== Wall-Mounted Magazine Images Grid ===== */
.wall-mounted-images-section {
    margin-top: 2rem;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1rem, 3vw, 2rem);
    align-items: start;
}

.image-item {
    background: var(--bg-light);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.image-item:hover {
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.image-item p {
    margin: 0;
    padding-top: 1rem;
    text-align: center;
    font-weight: bold;
    font-size: 0.95rem;
    color: var(--text-dark);
}

/* ===== Indoor & Outdoor Signage Images Sections ===== */
.indoor-signage-images-section,
.outdoor-signage-images-section {
    margin-top: 2rem;
}

.indoor-signage-images-section h3,
.outdoor-signage-images-section h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.indoor-signage-images-section h3 i,
.outdoor-signage-images-section h3 i {
    color: var(--primary-color);
}

/* ===== Responsive Design - Tablet (768px and below) ===== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: calc(100% + 5px);
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        padding: 1rem;
        box-shadow: var(--shadow-sm);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 999;
    }

    .nav-menu.active {
        max-height: 500px;
    }

    .nav-link {
        padding: clamp(0.8rem, 2vw, 1rem);
        display: block;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-link::after {
        display: none;
    }

    .hero-carousel-section {
        min-height: 50vh;
    }

    .hero-text-section {
        min-height: 50vh;
        padding: clamp(1.5rem, 4vw, 3rem) 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: clamp(1.5rem, 3vw, 2rem);
    }

    .stats {
        grid-template-columns: 1fr;
        gap: clamp(1rem, 2vw, 1.5rem);
    }

    .about-features {
        grid-template-columns: 1fr;
        gap: clamp(1rem, 2vw, 1.5rem);
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: clamp(1.5rem, 3vw, 2rem);
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: clamp(1rem, 2vw, 1.5rem);
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: clamp(1rem, 2vw, 1.5rem);
    }

    .contact-form {
        padding: clamp(1.2rem, 2.5vw, 1.8rem);
    }

    .coordinates {
        flex-direction: column;
        gap: 1rem;
    }

    .coord-item {
        min-width: 100%;
    }

    .map-container iframe {
        height: 300px !important;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: clamp(1rem, 2vw, 1.5rem);
    }

    .floating-shape {
        opacity: 0.05;
    }

    .modal-header {
        grid-template-columns: 1fr;
        gap: clamp(1rem, 2vw, 1.5rem);
        padding: clamp(1rem, 2vw, 1.5rem);
    }

    .modal-features-list {
        grid-template-columns: 1fr;
    }

    .carousel-slide-content {
        grid-template-columns: 1fr;
        gap: clamp(1rem, 2vw, 1.5rem);
    }

    .carousel-slide-image {
        min-height: 220px;
    }
}

/* ===== Responsive Design - Mobile (480px and below) ===== */
@media (max-width: 480px) {
    .container {
        padding: 0 max(15px, 3vw);
    }

    .hero-carousel-section {
        min-height: 45vh;
    }

    .hero-text-section {
        min-height: 55vh;
        padding: clamp(1.2rem, 3vw, 2rem) 0;
    }

    .carousel-indicators {
        bottom: 15px;
        gap: 10px;
    }

    .carousel-dot {
        width: 10px;
        height: 10px;
    }

    .carousel-dot.active {
        width: 25px;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: clamp(1rem, 2vw, 1.5rem);
    }

    .map-info {
        padding: 1rem;
    }

    .coordinates {
        gap: 0.75rem;
        flex-direction: column;
    }

    .map-container iframe {
        height: 280px !important;
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: clamp(0.75rem, 2vw, 1rem);
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: clamp(0.75rem, 2vw, 1rem);
    }

    .carousel-slide-content {
        grid-template-columns: 1fr;
        gap: clamp(0.75rem, 2vw, 1rem);
    }

    .carousel-slide-image {
        min-height: 200px;
        order: -1;
    }

    .carousel-nav {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .contact-form {
        padding: 1rem;
    }

    .contact-form h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .form-group label {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }

    .contact-form .btn {
        margin-top: 1rem;
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    .btn {
        padding: clamp(8px, 2vw, 10px) clamp(15px, 2vw, 20px);
        font-size: clamp(0.8rem, 2vw, 0.9rem);
    }

    .modal-content {
        width: 95vw;
        border-radius: 8px;
        margin: auto;
    }

    .modal-header {
        grid-template-columns: 1fr;
        gap: clamp(0.75rem, 2vw, 1rem);
        padding: clamp(1rem, 2vw, 1.5rem);
    }

    .modal-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    /* Improved navbar for very small screens */
    .nav-wrapper {
        padding: clamp(0.5rem, 1vw, 0.75rem) 0;
    }

    .logo {
        font-size: clamp(1rem, 4vw, 1.2rem);
    }

    .hamburger {
        padding: 5px;
    }

    .hamburger span {
        width: 22px;
        height: 2.5px;
    }

    /* Products section optimization */
    .parent-product-header {
        padding: clamp(0.75rem, 2vw, 1rem);
        gap: clamp(0.75rem, 1.5vw, 1rem);
    }

    .product-icon {
        width: clamp(35px, 8vw, 40px);
        height: clamp(35px, 8vw, 40px);
        font-size: clamp(1.2rem, 3vw, 1.5rem);
    }

    .parent-info h3 {
        font-size: clamp(0.95rem, 3vw, 1.1rem);
        word-break: break-word;
    }

    .parent-info p {
        font-size: clamp(0.7rem, 1.5vw, 0.8rem);
    }

    .expand-icon {
        font-size: clamp(0.9rem, 2vw, 1rem);
    }

    .subproduct-item {
        padding: clamp(0.6rem, 1.5vw, 0.8rem) clamp(0.8rem, 1.5vw, 1rem);
        gap: clamp(0.6rem, 1.5vw, 0.75rem);
    }

    .subproduct-number {
        min-width: clamp(20px, 5vw, 25px);
        font-size: clamp(0.75rem, 1.5vw, 0.85rem);
    }

    .subproduct-name {
        font-size: clamp(0.75rem, 2vw, 0.85rem);
    }

    .view-icon {
        font-size: clamp(0.7rem, 1.5vw, 0.8rem);
    }

    /* Form optimization */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
    }

    .modal-body {
        padding: clamp(1rem, 2vw, 1.5rem);
    }

    /* Prevent horizontal scroll */
    body,
    html {
        max-width: 100%;
        overflow-x: hidden;
    }
}

/* ===== Extra Small Devices (360px and below) ===== */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }

    h1, h2 {
        word-break: break-word;
        hyphens: auto;
    }

    .hero-title {
        font-size: 1.2rem;
        line-height: 1.3;
    }

    .btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .parent-product-header {
        flex-wrap: wrap;
    }

    .expand-icon {
        position: absolute;
        right: 10px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    /* Debug panel adjustments for mobile */
    .cache-debug-panel {
        width: 100% !important;
        max-width: 100% !important;
        right: 0 !important;
        left: 0 !important;
        border-radius: 0 !important;
    }

    .cache-debug-content {
        max-height: 300px !important;
    }
}

/* ===== Image Cache Debug Panel ===== */
.cache-debug-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    max-width: 90vw;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cache-debug-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cache-debug-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.cache-debug-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: transform 0.2s;
}

.cache-debug-close:hover {
    transform: rotate(90deg);
}

.cache-debug-content {
    padding: 16px;
    max-height: 400px;
    overflow-y: auto;
    background: #f9f7ff;
}

.cache-stats {
    margin-bottom: 12px;
    padding: 12px;
    background: white;
    border-radius: 6px;
    border-left: 4px solid #667eea;
}

.cache-stats p {
    margin: 4px 0;
    color: var(--text-dark);
}

.cache-stats strong {
    color: #667eea;
    font-weight: 600;
}

.cache-debug-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn.btn-small {
    padding: 8px 12px;
    font-size: 12px;
    border: 1px solid #ddd;
    background: white;
    color: var(--text-dark);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Courier New', monospace;
}

.btn.btn-small:hover {
    border-color: #667eea;
    color: #667eea;
    background: #f9f7ff;
}

.btn.btn-small.btn-danger {
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.btn.btn-small.btn-danger:hover {
    background: #fff5f5;
    color: #dd5050;}

/* ===== Legal Modal Styles ===== */
.modal-legal {
    max-width: 900px;
    max-height: 90vh;
}

.modal-legal-header {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 1.5rem;
    margin-bottom: 0;
}

.modal-legal-header h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin: 0;
}

.modal-legal-body {
    max-height: calc(90vh - 140px);
    overflow-y: auto;
    padding: 2rem 1.5rem 2rem 1.5rem;
}

.modal-legal-body h3 {
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.modal-legal-body h3:first-of-type {
    margin-top: 0;
}

.modal-legal-body p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.modal-legal-body ul {
    list-style: none;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.modal-legal-body ul li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
}

.modal-legal-body ul li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.modal-legal-body a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.modal-legal-body a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.modal-legal-body ul ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.modal-legal-body ul ul li {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Sitemap Grid in Modal */
.sitemap-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.sitemap-column h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.sitemap-column ul {
    list-style: none;
    padding-left: 0;
}

.sitemap-column a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.sitemap-column a:hover {
    color: var(--primary-color);
}

/* Modal Scrollbar Styling */
.modal-legal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-legal-body::-webkit-scrollbar-track {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 4px;
}

.modal-legal-body::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.modal-legal-body::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

@media (max-width: 768px) {
    .modal-legal {
        max-width: 95%;
    }

    .modal-legal-header h2 {
        font-size: 1.4rem;
    }

    .modal-legal-body {
        max-height: calc(90vh - 120px);
        padding: 1.5rem 1rem;
    }

    .sitemap-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .modal-legal-body h3 {
        font-size: 1.1rem;
    }
}