/* ========================================
   GLOBAL STYLES - Base & Resets
======================================== */

* {
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    background-color: #ffffff;
    scroll-behavior: smooth;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Main Content Spacing */
main.main-content,
.region-content,
.path-product main,
.path-taxonomy main,
.path-store main {
    padding-top: 30px;
}

/* Remove Homepage Container Padding */
.path-frontpage .region-content .container,
.path-frontpage .layout-container,
.path-frontpage .region-content {
    padding: 0;
    margin: 0;
    max-width: 100%;
}

.path-frontpage main.main-content,
.path-frontpage .region-content {
    padding-top: 0 !important;
}

/* Hide Field Labels Globally */
.field__label {
    display: none;
}

/* Hide Specific Taxonomy Links */
a[href="/taxonomy/term/1"],
a[href="/taxonomy/term/2"],
a[href="/taxonomy/term/3"] {
    display: none;
}

/* ========================================
   QUANTITY FIELD VISIBILITY
======================================== */

/* Hide quantity fields everywhere by default */
input[name*="quantity"],
input[id*="quantity"],
input.form-number[type="number"],
label[for*="quantity"],
.form-item-quantity,
[class*="form-item-quantity"] {
    display: none !important;
}

/* Show ONLY on cart page */
.path-cart input[name*="quantity"],
.path-cart input[id*="quantity"],
.path-cart input.form-number[type="number"],
.path-cart label[for*="quantity"],
.path-cart .form-item-quantity,
.path-cart [class*="form-item-quantity"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    height: auto !important;
    width: auto !important;
}

.path-cart input[type="number"] {
    display: inline-block !important;
}

/* ========================================
   MESSAGES
======================================== */

.messages__content {
    animation: fadeOut 4s ease-in-out forwards;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* ========================================
   HOMEPAGE SLIDER - FULL WIDTH
======================================== */

.homepage-slider-view,
.view-homepage-slider,
#views-slideshow-cycle-main-homepage_slider-block_1,
.views-slideshow-cycle-main-frame {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-bottom: 20px;
    padding-top: 0;
    overflow: hidden;
    max-width: 100vw;
    padding: 0;
}

.slider-item,
.views-slideshow-cycle-main-frame-row {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: auto;
    padding-bottom: 50px;
}

.slider-item img,
.views-slideshow-cycle-main-frame-row img,
.homepage-slider-view img {
    width: 100%;
    height: auto;
    min-height: unset;
    max-height: unset;
    object-fit: contain;
    display: block;
}

.slider-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.3), transparent 50%);
    z-index: 1;
}

body.path-frontpage .views-slideshow-cycle-main-frame,
body.path-frontpage #views-slideshow-cycle-main-homepage_slider-block_1 {
    margin-left: 0;
    padding-left: 0;
    padding-right: 0;
}

.slider-item .views-field-body {
    position: absolute;
    z-index: 2;
}

.slider-item .views-field-body p {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
    letter-spacing: -1px;
}

.slider-item .views-field-body a {
    display: inline-block;
    background-color: #000;
    color: #fff;
    padding: 14px 40px;
    border-radius: 0;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.slider-item .views-field-body a:hover {
    background-color: #fff;
    color: #000;
}

/* Slider Pagination - Horizontal */
.widget_pager_bottom.views-slideshow-pager-bullets {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: row;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget_pager_bottom.views-slideshow-pager-bullets li {
    background-color: rgba(255, 255, 255, 0.5);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    cursor: pointer;
    text-indent: -9999px;
    transition: all 0.3s ease;
    display: inline-block;
    float: none;
}

.widget_pager_bottom.views-slideshow-pager-bullets li.active {
    background-color: #ffffff;
    transform: scale(1.3);
}

/* ========================================
   HERO BANNER - CENTERED CONTENT
======================================== */

.view.hero-banner-view {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 0;
    margin-bottom: 0;
    overflow: hidden;
    max-width: 100vw;
    padding: 0;
}

.view.hero-banner-view .views-row {
    position: relative;
}

.view.hero-banner-view img {
    width: 100vw;
    height: 50vh;
    min-height: 350px;
    max-height: 450px;
    object-fit: cover;
    display: block;
}

.view.hero-banner-view .views-field-field-field-discount-text {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 2;
    width: 90%;
    max-width: 700px;
}

.view.hero-banner-view .views-field-field-field-discount-text h4 {
    font-size: 52px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
    margin-bottom: 30px;
    letter-spacing: -1px;
    line-height: 1.2;
}

.view.hero-banner-view .views-field-field-field-shop-link {
    text-align: center;
    z-index: 2;
    width: 200px;
    position: absolute;
    bottom: 42px;
    left: 50%;
    transform: translateX(-50%);
    margin: auto;
}

.view.hero-banner-view .views-field-field-field-shop-link a {
    display: block;
    padding: 15px;
    background-color: #ffffff;
    color: #000000;
    font-weight: 700;
    text-transform: uppercase;
}

.view.hero-banner-view .views-field-field-field-shop-link a:hover {
    background-color: #4FCDC5;
    color: #ffffff;
}

/* ========================================
   CUSTOM NOTIFICATION POPUP
======================================== */

.custom-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 99999;
    min-width: 300px;
    max-width: 400px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateX(450px);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.custom-notification.show {
    transform: translateX(0);
}

.custom-notification__content {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    gap: 0.75rem;
}

.custom-notification__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

.custom-notification--success {
    border-left: 4px solid #10b981;
}

.custom-notification--success .custom-notification__icon {
    background: #d1fae5;
    color: #10b981;
}

.custom-notification--error {
    border-left: 4px solid #ef4444;
}

.custom-notification--error .custom-notification__icon {
    background: #fee2e2;
    color: #ef4444;
}

.custom-notification__message {
    font-size: 0.9375rem;
    color: #374151;
    font-weight: 500;
}

/* ========================================
   GLOBAL PRICE STYLING
======================================== */

.field--name-field-price,
.field--name-field-price .field__item,
.field--name-field-price .field-content,
.views-field-field-price,
.views-field-field-price .field-content,
.views-field-price__number,
.views-field-price__number .field-content,
.commerce-price-formatted,
.order-total-line-value,
.cart-block__item-price,
.product-price,
.price {
    font-weight: 700;
    text-align: right;
    display: block;
    font-size: 18px;
    color: #000;
    text-align: center;
}

.views-field-field-price .field-content {
    font-weight: 700;
    text-align: center;
    display: block;
    font-size: 18px;
    color: #000;
    margin-top: 5px;
    margin-bottom: 2px;
}

.views-field-field-price,
.views-field-price__number,
.field--name-field-price {
    text-align: center;
}

/* UUID Styling */
.views-field-uuid {
    background-color: #000;
}

/* Print Styles */
@media print {
    .cart-block,
    button {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}