/* Modern Responsive CSS for Domisol Muzical */

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Verdana', Arial, Helvetica, sans-serif;
    background: #ffffff;
    line-height: 1.6;
    color: #333333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: #333333;
    transition: color 0.3s ease;
}

a:hover {
    text-decoration: none;
    color: #900000;
}

p {
    margin-bottom: 15px;
}

h1, h2, h3, h4, h5 {
    margin-bottom: 20px;
    color: #900000;
    font-weight: 600;
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }

img {
    border: 0;
    max-width: 100%;
    height: auto;
    display: block;
}

.clear {
    clear: both;
    padding: 5px 0;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header/Top Section */
#top {
    width: 100%;
    background: transparent;
    overflow: hidden;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f8f6;
}

.logo {
    flex: 0 0 auto;
    max-width: 415px;
}

.logo img {
    width: 100%;
    height: auto;
}

.contact-header {
    text-align: right;
    flex: 1;
    min-width: 250px;
    padding: 10px;
}

.contact-header p {
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.8;
}

/* Navigation */
.nav-top {
    background: transparent;
    border: none;
}

.nav-top ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0 auto;
    padding: 0;
    flex-wrap: wrap;
    max-width: 1200px;
    background: #3e070c;
    border-top: 1px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-top ul li {
    flex: 1;
    text-align: center;
    border-right: 1px solid #fff;
    min-width: 150px;
}

.nav-top ul li:last-child {
    border-right: 0;
}

.nav-top ul li:first-child {
    border-left: 0;
}

.nav-top ul li a {
    color: #fff;
    font-size: 1rem;
    display: block;
    padding: 12px 20px;
    transition: background 0.3s ease;
}

.nav-top ul li a:hover,
.nav-top ul li.active a {
    background: #c40821;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: #3e070c;
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 1.2rem;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

/* Content Area */
#content {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    flex: 1;
}

/* Sidebar */
.sidebar {
    flex: 0 0 280px;
    min-width: 240px;
}

.box-menu {
    border: 1px solid #e0e0de;
    background: #fff;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.box-menu ul {
    list-style: none;
}

.box-menu ul li {
    padding: 10px 20px 10px 40px;
    margin-bottom: 5px;
    border-bottom: 1px solid #f7f8f6;
}

.box-menu ul li a {
    color: #2b261c;
    font-size: 0.95rem;
    display: block;
}

.box-menu ul li.active a,
.box-menu ul li a:hover {
    color: #C40821;
    font-weight: 500;
}

.box-menu .title {
    color: #c40821;
    text-transform: uppercase;
    font-size: 1.1rem;
    margin: 15px 0;
    padding-left: 20px;
    font-weight: 600;
    position: relative;
}

.toggle-arrow {
    display: none; /* Hidden by default on desktop */
    float: right;
    margin-right: 20px;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.sidebar-box {
    border: 1px solid #e0e0de;
    background: #fff;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
}

.sidebar-box img {
    width: 100%;
    height: auto;
}

.sidebar-box span {
    color: #3E070C;
    text-transform: uppercase;
    padding: 10px;
    display: block;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Main Content */
.main-content {
    flex: 1;
    min-width: 300px;
}

/* Slider */
#slider {
    width: 100%;
    height: auto;
    max-height: 400px;
    background: #fff;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid #e0e0de;
    border-radius: 4px;
}

.slides-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    width: 100%;
    display: none;
    position: relative;
    animation: fadeIn 1s ease-in-out;
}

.slide.active {
    display: block;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.pag-slide {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 99;
    display: flex;
    gap: 5px;
}

.pag-slide li {
    list-style: none;
}

.pag-slide li a {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid #ccc;
    background: #fff;
    overflow: hidden;
    text-indent: -9999px;
}

.pag-slide li a:hover,
.pag-slide li.current a {
    background: #88152f;
}

/* Home Boxes */
.home-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.home-box {
    border: 1px solid #e0e0de;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.home-box img {
    width: 100%;
    height: auto;
}

.home-box span {
    color: #3E070C;
    text-transform: uppercase;
    padding: 15px;
    display: block;
    font-weight: bold;
    font-size: 0.9rem;
    text-align: center;
}

/* Content Inner */
.content-inner {
    background: #fff;
    padding: 20px;
    border: 1px solid #e0e0de;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.breadcrumb {
    margin-bottom: 15px;
    font-size: 0.875rem;
    font-weight: 600;
}

.breadcrumb a {
    font-weight: 400;
}

.breadcrumb span {
    font-weight: 400;
    margin: 0 5px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.product-card {
    text-align: center;
    padding: 15px;
    border: 1px solid #e0e0de;
    border-radius: 4px;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.product-image {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-title {
    font-size: 0.875rem;
    color: #333;
    line-height: 1.4;
    min-height: 50px;
}

.product-title h5 {
    margin: 0 0 5px 0;
    font-size: 0.875rem;
}

.product-title .product-price {
    margin: 5px 0 0 0;
    font-size: 0.875rem;
    color: #900000;
    font-weight: bold;
}

/* Footer */
#footer {
    width: 100%;
    max-width: 1200px;
    background: #f8f8f6;
    color: #333333;
    padding: 20px;
    margin: 20px auto 0;
    text-align: center;
    flex-shrink: 0;
}

.footer-wrapper {
    width: 100%;
}

.footer-compliance {
    margin-top: 15px;
    padding: 10px 0;
    border-top: 1px solid #444 !important;
    text-align: center;
}

#footer p {
    margin-bottom: 5px;
}

#footer a {
    color: #333333;
    transition: color 0.3s ease;
}

#footer a:hover {
    color: #c40821;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #c0c1c6;
    background: #F7F7F7;
    font-size: 1rem;
    border-radius: 4px;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #900000;
    background: #fff;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: #900000;
    color: #fff;
}

.btn-primary:hover {
    background: #c40821;
    color: #fff;
}

.btn-secondary {
    background: #666;
    color: #fff;
}

.btn-secondary:hover {
    background: #888;
    color: #fff;
}

.btn-danger {
    background: #dc3545;
    color: #fff;
}

.btn-danger:hover {
    background: #c82333;
    color: #fff;
}

/* Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-info {
    color: #004085;
    background-color: #cce5ff;
    border-color: #b8daff;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .container {
        max-width: 100%;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .contact-header {
        text-align: center;
        width: 100%;
    }

    .logo {
        max-width: 300px;
        margin: 0 auto;
    }
}

@media screen and (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-top ul {
        flex-direction: column;
        display: none;
    }

    .nav-top ul.show {
        display: flex;
    }

    .nav-top ul li {
        border-right: 0;
        border-bottom: 1px solid #fff;
        width: 100%;
    }

    .nav-top ul li:last-child {
        border-bottom: 0;
    }

    #content {
        flex-direction: column;
    }

    .sidebar {
        flex: 1;
        width: 100%;
        margin-bottom: 20px;
    }

    /* Categories menu toggle on mobile */
    .toggle-arrow {
        display: inline !important; /* Show on mobile */
    }

    .box-menu .title {
        cursor: pointer;
        padding: 15px 20px;
        background: #900000;
        color: #fff;
        font-weight: bold;
        border-radius: 4px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .categories-list {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .categories-list.show {
        max-height: 1000px; /* Large enough to show all categories */
    }

    /* Categories list styling on mobile */
    .box-menu ul li {
        background: #900000;
        border-bottom: 1px solid #a00000;
        padding: 12px 20px 12px 25px;
    }

    .box-menu ul li a {
        color: #fff !important;
        font-weight: bold;
    }

    .box-menu ul li.active {
        background: #c40821;
    }

    .box-menu ul li.active a {
        color: #fff !important;
    }

    .box-menu ul li:hover {
        background: #c40821;
    }

    /* Hide sidebar boxes on mobile except on home page */
    .sidebar-box {
        display: none;
    }

    body.page-home .sidebar-box {
        display: block;
    }

    .main-content {
        width: 100%;
    }

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

    .home-boxes {
        grid-template-columns: 1fr;
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }
    h3 { font-size: 1.1rem; }
}

@media screen and (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }

    .product-image {
        height: 120px;
    }

    .product-title {
        font-size: 0.8rem;
        min-height: auto;
    }

    #content {
        padding: 10px;
    }

    .content-inner {
        padding: 15px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Product Detail Page */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.product-detail-image {
    text-align: center;
}

.main-image-container {
    margin-bottom: 15px;
}

.main-image-container img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border: 1px solid #e0e0de;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.main-image-container img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Image Gallery Thumbnails */
.image-gallery-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 15px;
}

.gallery-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.gallery-thumb:hover {
    opacity: 1;
    border-color: #900000;
    transform: scale(1.1);
}

.gallery-thumb.active {
    opacity: 1;
    border-color: #900000;
    border-width: 3px;
}

.product-detail-info h1 {
    font-size: 1.75rem;
    margin-bottom: 20px;
    color: #900000;
}

.product-meta {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0de;
}

.product-category {
    font-size: 0.95rem;
    color: #666;
}

.product-category a {
    color: #900000;
    font-weight: 500;
}

.product-category a:hover {
    text-decoration: underline;
}

.product-detail-info .product-price {
    background: #f8f8f6;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 25px;
    border-left: 4px solid #900000;
}

.price-label {
    font-size: 1rem;
    color: #666;
    display: block;
    margin-bottom: 5px;
}

.price-value {
    font-size: 1.75rem;
    font-weight: bold;
    color: #900000;
}

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

.product-description h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: #900000;
}

.product-description p {
    line-height: 1.8;
    color: #333;
}

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

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
    min-width: 200px;
    text-align: center;
}

.product-contact-info {
    background: #f8f8f6;
    padding: 20px;
    border-radius: 4px;
}

.product-contact-info h4 {
    margin-bottom: 15px;
    color: #900000;
    font-size: 1.1rem;
}

.product-contact-info p {
    line-height: 1.8;
    margin: 0;
}

/* Product Card Links */
.product-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.product-card a:hover {
    color: inherit;
}

/* Responsive Product Detail */
@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-detail-image img {
        max-width: 100%;
    }

    .product-detail-info h1 {
        font-size: 1.5rem;
    }

    .price-value {
        font-size: 1.5rem;
    }

    .product-actions {
        flex-direction: column;
    }

    .btn-large {
        width: 100%;
        min-width: auto;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.p-20 { padding: 20px; }
