/* Frontend CSS - Responsive Design */

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

:root {
    /* Default theme variables (overridden by inline styles) */
    --full-bg-color: #1a269b;
    --main-font: Arial, sans-serif;
    --h1-font: Arial, sans-serif;
    --h1-color: #ffcc3f;
    --h1-size: 32px;
    --h2-font: Arial, sans-serif;
    --h2-color: #ffcc3f;
    --h2-size: 28px;
    --h3-font: Arial, sans-serif;
    --h3-color: #ffffff;
    --h3-size: 24px;
    --h4-font: Arial, sans-serif;
    --h4-color: #ffffff;
    --h4-size: 20px;
    --h5-font: Arial, sans-serif;
    --h5-color: #ffffff;
    --h5-size: 16px;
    --links-color: #ffcc3f;
    --product-margin: 20px;
    --product-padding: 15px;
    --category-margin: 20px;
    --category-padding: 15px;
    
    /* System colors */
    --white: #ffffff;
    --black: #000000;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Layout */
    --max-width: 1200px;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: var(--main-font);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1 {
    font-family: var(--h1-font);
    color: var(--h1-color);
    font-size: var(--h1-size);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-family: var(--h2-font);
    color: var(--h2-color);
    font-size: var(--h2-size);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.8rem;
}

h3 {
    font-family: var(--h3-font);
    color: var(--h3-color);
    font-size: var(--h3-size);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.6rem;
}

h4 {
    font-family: var(--h4-font);
    color: var(--h4-color);
    font-size: var(--h4-size);
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

h5 {
    font-family: var(--h5-font);
    color: var(--h5-color);
    font-size: var(--h5-size);
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 0.4rem;
}

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

a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

p {
    margin-bottom: 1rem;
    color: var(--h5-color);
}

/* Main Layout */
.full-bg-image,
.full-bg-color {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    background-color: var(--full-bg-color);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Navigation Menu */
.navigation-menu {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
}

.menu-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    gap: 4px;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--gray-700);
    transition: var(--transition);
}

.menu-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-item {
    margin: 0;
}

.menu-link {
    display: block;
    padding: 20px 24px;
    color: var(--gray-700);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.menu-link:hover {
    color: var(--full-bg-color);
    background: var(--gray-100);
    text-decoration: none;
}

.menu-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--full-bg-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.menu-link:hover::after {
    width: 80%;
}

/* Mobile Menu */
@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }
    
    .menu-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        border-top: 1px solid var(--gray-200);
        flex-direction: column;
        box-shadow: var(--shadow-lg);
    }
    
    .menu-list.active {
        display: flex;
    }
    
    .menu-link {
        padding: 16px 20px;
        border-bottom: 1px solid var(--gray-100);
    }
    
    .hamburger-menu.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .hamburger-menu.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-menu.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

/* Products Content */
.products-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 20px;
}

/* Category Sections */
.category-section {
    margin: var(--category-margin) 0;
    padding: var(--category-padding);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.category-header {
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 40px;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}

.category-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.category-content {
    position: relative;
    z-index: 2;
}

.category-title {
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.category-description {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    margin: var(--product-margin) 0;
    padding: var(--product-padding);
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    margin-bottom: 20px;
}

.product-image img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: var(--border-radius-sm);
    object-fit: cover;
}

.product-image.left {
    float: left;
    margin-right: 20px;
    margin-bottom: 10px;
    max-width: 40%;
}

.product-image.right {
    float: right;
    margin-left: 20px;
    margin-bottom: 10px;
    max-width: 40%;
}

.product-content {
    padding: 0;
}

.product-title {
    margin-bottom: 15px;
    color: var(--gray-800);
}

.product-short-description {
    margin-bottom: 15px;
    color: var(--gray-600);
    font-size: 1.1em;
    line-height: 1.6;
}

.product-description {
    margin-bottom: 20px;
}

.product-price {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--full-bg-color);
    margin-bottom: 20px;
}

.order-now-btn {
    background: linear-gradient(135deg, var(--full-bg-color) 0%, #3d4ed8 100%);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    border-radius: var(--border-radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.order-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* No Content States */
.no-products,
.no-content {
    text-align: center;
    padding: 60px 20px;
    color: var(--h4-color);
}

.no-content h2 {
    margin-bottom: 20px;
    font-size: 2.5em;
}

.no-content p {
    font-size: 1.2em;
}

/* Modules */
.module {
    margin: 40px 0;
    padding: 40px 20px;
    border-radius: var(--border-radius);
}

.module-title {
    text-align: center;
    margin-bottom: 20px;
}

.module-description {
    text-align: center;
    margin-bottom: 30px;
    color: var(--h4-color);
}

.module-content {
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Rich Text Module */
.rich-text-module {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
}

/* Banner Module */
.banner-module {
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.banner-image img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: var(--border-radius);
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 80%;
}

.banner-title {
    color: var(--white);
    margin-bottom: 15px;
}

.banner-description {
    color: var(--white);
}

/* Image Module */
.image-module {
    text-align: center;
}

.image-container img {
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow);
}

.image-background {
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.image-overlay {
    background: rgba(0, 0, 0, 0.6);
    padding: 30px;
    border-radius: var(--border-radius);
}

.image-title {
    margin: 20px 0;
}

/* Slideshow Module */
.slideshow-module {
    text-align: center;
}

.slideshow-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.slides-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
}

.slide {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide.active {
    display: block;
}

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

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    padding: 40px 20px 20px;
    text-align: center;
    font-size: 1.2em;
}

.slide-prev,
.slide-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    transition: var(--transition);
}

.slide-prev {
    left: 0;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}

.slide-next {
    right: 0;
    border-radius: var(--border-radius-sm) 0 0 var(--border-radius-sm);
}

.slide-prev:hover,
.slide-next:hover {
    background: rgba(255, 255, 255, 1);
}

.slide-dots {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active,
.dot:hover {
    background-color: var(--white);
}

/* Main Footer */
.main-footer {
    background-color: var(--black);
    color: var(--white);
    padding: 40px 20px;
    margin-top: 60px;
}

.main-footer .module {
    margin: 20px 0;
    padding: 20px;
}

.main-footer h3,
.main-footer h4,
.main-footer h5 {
    color: var(--white);
}

.main-footer a {
    color: var(--h1-color);
}

/* Go to Top Button */
.go-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--full-bg-color);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
}

.go-to-top.show {
    opacity: 1;
    visibility: visible;
}

.go-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 1200px) {
    :root {
        --max-width: 100%;
    }
}

@media (max-width: 768px) {
    .full-bg-image,
    .full-bg-color {
        background-attachment: scroll;
    }
    
    .products-content {
        padding: 20px 15px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-header {
        padding: 40px 15px;
        margin-bottom: 30px;
    }
    
    .category-section {
        margin: 15px 0;
        padding: 15px;
    }
    
    .product-item {
        margin: 15px 0;
        padding: 15px;
    }
    
    .product-image.left,
    .product-image.right {
        float: none;
        max-width: 100%;
        margin: 0 0 15px 0;
    }
    
    h1 {
        font-size: calc(var(--h1-size) * 0.8);
    }
    
    h2 {
        font-size: calc(var(--h2-size) * 0.9);
    }
    
    .module {
        margin: 20px 0;
        padding: 20px 15px;
    }
    
    .banner-content {
        position: static;
        transform: none;
        background: rgba(255, 255, 255, 0.95);
        color: var(--gray-800);
        margin-top: 20px;
        max-width: 100%;
    }
    
    .banner-title {
        color: var(--gray-800);
    }
    
    .banner-description {
        color: var(--gray-600);
    }
    
    .slides-wrapper {
        height: 250px;
    }
    
    .slide-prev,
    .slide-next {
        font-size: 18px;
        padding: 10px 15px;
    }
    
    .go-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .main-footer {
        padding: 30px 15px;
    }
}

@media (max-width: 480px) {
    .products-content {
        padding: 15px 10px;
    }
    
    .category-header {
        padding: 30px 10px;
    }
    
    .product-item {
        padding: 10px;
    }
    
    .module {
        padding: 15px 10px;
    }
    
    .banner-content {
        padding: 20px;
    }
    
    .slides-wrapper {
        height: 200px;
    }
    
    .order-now-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Print Styles */
@media print {
    .navigation-menu,
    .go-to-top,
    .slide-prev,
    .slide-next,
    .slide-dots {
        display: none !important;
    }
    
    .full-bg-image,
    .full-bg-color {
        background: var(--white) !important;
        color: var(--black) !important;
    }
    
    .module {
        background: transparent !important;
        border: 1px solid var(--gray-300) !important;
    }
    
    .product-item {
        break-inside: avoid;
        background: var(--white) !important;
        border: 1px solid var(--gray-300) !important;
    }
}