/* ===========================
   MAIN.CSS - Additional Styles
   Core styles moved to modular files:
   - base.css (variables, fonts, reset)
   - header.css (navigation, header)
   - footer.css (footer)
   - slider.css (homepage slider)
   - product-card.css (product cards)
   - category-page.css (category pages)
   - single-product.css (product page)
   - components.css (collections, mobile menu, blog)
   - woocommerce.css (cart, checkout)
   - modals.css (modals, overlays)
   - responsive.css (media queries)
   =========================== */

/* ==================== Additional Global Styles ==================== */

/* Dropdown Menu Glass Effect */
.dropdown-menu {
    background-color: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1) !important;
    border-radius: 8px !important;
    padding: 10px !important;
    margin-top: 20px !important;
}

.dropdown-menu .dropdown-item,
.dropdown-menu a {
    color: var(--black-color) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 8px 15px !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: var(--main-color) !important;
    transform: translateX(3px) !important;
}

.dropdown-menu .dropdown-item.active,
.dropdown-menu .dropdown-item:active {
    background-color: rgba(66, 149, 228, 0.15) !important;
    color: var(--main-color) !important;
}

.dropdown-menu .dropdown-item:not(:last-child),
.dropdown-menu a:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* ==================== Product Page Additional Styles ==================== */

.product-content .card ul li {
    list-style: none;
    padding-left: 20px;
    font-size: 14px;
}

.product-content .card ul li::before {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 10px;
}

/* Comments */
#comments-container .comment {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#load-comments {
    margin-bottom: 15px;
    padding: 10px 15px;
    background-color: #0071a1;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#load-comments:hover {
    background-color: #005f7f;
}

.comment-container {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
}

.comment-container p {
    margin: 0 0 10px;
}

.comment-rating {
    color: #ffcc00;
    font-size: 1.2em;
}

.comment-image img {
    max-width: 100px;
    max-height: 100px;
    margin-top: 10px;
}

.commentlist {
    display: block;
    max-width: fit-content;
}

/* ==================== WooCommerce Pagination ==================== */

.My-E-Shop-ordering p {
    margin-bottom: 0;
}

.woocommerce-pagination ul.page-numbers {
    display: flex;
    list-style: none;
    padding-left: 0;
}

.woocommerce-pagination li .page-numbers {
    position: relative;
    display: block;
    padding: 1rem 1.5rem;
    margin-left: -1px;
    line-height: 1.25;
    color: var(--black-color);
    background-color: #fff;
    border: 1px solid #dee2e6;
    text-decoration: none;
}

.woocommerce-pagination span.page-numbers {
    z-index: 3;
    color: #fff;
    background-color: var(--main-color);
    border-color: #C4CDD5;
}

.woocommerce-pagination a.page-numbers:hover {
    z-index: 2;
    color: #e6b400;
    text-decoration: none;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

/* ==================== Widgets ==================== */

section.widget {
    padding-top: 0;
    padding-bottom: 0;
}

/* ==================== ACF Custom Fields ==================== */

.acf-title {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.product-content p.acf-des {
    text-align: center !important;
    display: block;
    width: 100%;
}

.acf-desc {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center !important;
}

.acf-image {
    display: flex;
    justify-content: center;
}

/* ==================== Add to Cart Buttons ==================== */

.add2cart-btn {
    margin-left: 10px;
}

.add2cart-btn-var {
    margin-left: 130px;
}

.product-add2cart input.qty::-webkit-outer-spin-button,
.product-add2cart input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
    text-align: center;
}

.product-add2cart input.qty[type="number"] {
    -moz-appearance: textfield;
    text-align: center;
}

.attribute_pa_color {
    width: 50px;
}

.product-price-cart {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
}

.custom-add-to-cart a {
    background: #0073aa;
    color: white;
    padding: 10px;
    display: inline-block;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    text-align: center;
    line-height: 36px;
    transition: 0.3s ease-in-out;
}

.custom-add-to-cart a:hover {
    background: #005177;
}

.custom-add-to-cart i {
    font-size: 16px;
}

.woocommerce-variation-price .price {
    display: none !important;
}

/* ==================== Category Titles ==================== */

.category-title {
    font-family: 'Jost', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #333333;
    margin-top: 10px;
}

.category-count {
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: #333333;
    opacity: 0.5;
}

/* ==================== T-Shirt Designer ==================== */

.tshirt-designer-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.tshirt-canvas-container {
    position: relative;
    display: inline-block;
}

.design-controls {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.design-controls button {
    padding: 10px 20px;
    background: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.design-controls button:hover {
    background: #555;
}

/* ==================== Misc Utilities ==================== */

.hidden {
    display: none !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* ==================== Loading States ==================== */

.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==================== Form Validation States ==================== */

.form-control.is-valid {
    border-color: #28a745;
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 80%;
    color: #dc3545;
}

.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

/* ==================== Print Styles Override ==================== */

@media print {
    .no-print {
        display: none !important;
    }
}
