/**
 * EcommPaaS Porto Theme — Core Stylesheet
 *
 * Porto-quality responsive Magento 2 theme.
 * CSS custom properties for dynamic theming via admin panel.
 *
 * Class prefix: pt- (porto theme)
 * Breakpoints: 480 / 768 / 992 / 1200
 */

/* ===================================================================
   1. CSS Variables & Design Tokens
   =================================================================== */

:root {
    /* Primary palette */
    --pt-primary: #08c;
    --pt-primary-dark: #0073aa;
    --pt-primary-light: #39f;
    --pt-secondary: #ff5b5b;
    --pt-secondary-dark: #e04848;

    /* Neutrals */
    --pt-text: #777777;
    --pt-text-dark: #333333;
    --pt-text-light: #999999;
    --pt-heading: #313131;
    --pt-bg: #ffffff;
    --pt-bg-light: #f4f4f4;
    --pt-bg-dark: #222529;
    --pt-border: #e7e7e7;
    --pt-border-light: #eeeeee;

    /* Status colors */
    --pt-success: #a8c513;
    --pt-danger: #ff5b5b;
    --pt-warning: #ffc107;
    --pt-info: #08c;
    --pt-hot: #ff6600;

    /* Shadows */
    --pt-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --pt-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    --pt-shadow-lg: 0 5px 20px rgba(0, 0, 0, 0.12);

    /* Borders & Radius */
    --pt-radius: 0px;
    --pt-radius-sm: 2px;
    --pt-transition: 0.3s ease;

    /* Typography */
    --pt-font: 'Open Sans', sans-serif;
    --pt-font-heading: 'Poppins', 'Open Sans', sans-serif;
    --pt-font-size: 14px;
    --pt-line-height: 1.8;

    /* Layout */
    --pt-container: 1200px;
    --pt-container-wide: 1600px;
    --pt-gutter: 20px;
    --pt-sidebar-width: 280px;

    /* Header heights */
    --pt-topbar-height: 36px;
    --pt-header-height: 80px;
    --pt-nav-height: 45px;
}

/* ===================================================================
   2. Reset Overrides (Magento/blank defaults)
   =================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: var(--pt-font);
    font-size: var(--pt-font-size);
    color: var(--pt-text);
    line-height: var(--pt-line-height);
    background: var(--pt-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
}

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

a:hover,
a:focus {
    color: var(--pt-primary-dark);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Restore list styles for CMS/WYSIWYG content areas */
.pt-content ul { list-style: disc; padding-left: 20px; margin-bottom: 15px; }
.pt-content ol { list-style: decimal; padding-left: 20px; margin-bottom: 15px; }

p {
    margin-top: 0;
    margin-bottom: 15px;
}

button,
input,
select,
textarea {
    font-family: var(--pt-font);
    font-size: var(--pt-font-size);
}

/* ===================================================================
   3. Typography Scale
   =================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--pt-font-heading);
    color: var(--pt-heading);
    font-weight: 600;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 15px;
}

h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

h3 {
    font-size: 20px;
    font-weight: 600;
}

h4 {
    font-size: 18px;
    font-weight: 600;
}

h5 {
    font-size: 16px;
    font-weight: 600;
}

h6 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pt-text-lg {
    font-size: 18px;
}

.pt-text-sm {
    font-size: 12px;
}

.pt-text-xs {
    font-size: 11px;
}

.pt-text-uppercase {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pt-text-bold {
    font-weight: 700;
}

.pt-text-semibold {
    font-weight: 600;
}

.pt-text-light {
    font-weight: 300;
}

/* ===================================================================
   4. Grid System — 12 columns
   =================================================================== */

.pt-container {
    width: 100%;
    max-width: var(--pt-container);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--pt-gutter);
    padding-right: var(--pt-gutter);
}

.pt-container--wide {
    max-width: var(--pt-container-wide);
}

.pt-container--fluid {
    max-width: none;
}

.pt-row {
    display: flex;
    flex-wrap: wrap;
    margin-left: calc(var(--pt-gutter) / -2);
    margin-right: calc(var(--pt-gutter) / -2);
}

.pt-row--no-gutter {
    margin-left: 0;
    margin-right: 0;
}

.pt-row--no-gutter > [class*="pt-col"] {
    padding-left: 0;
    padding-right: 0;
}

.pt-row--center {
    justify-content: center;
}

.pt-row--between {
    justify-content: space-between;
}

.pt-row--middle {
    align-items: center;
}

[class*="pt-col"] {
    padding-left: calc(var(--pt-gutter) / 2);
    padding-right: calc(var(--pt-gutter) / 2);
    width: 100%;
    flex-shrink: 0;
    max-width: 100%;
}

.pt-col-1 { width: 8.333333%; }
.pt-col-2 { width: 16.666667%; }
.pt-col-3 { width: 25%; }
.pt-col-4 { width: 33.333333%; }
.pt-col-5 { width: 41.666667%; }
.pt-col-6 { width: 50%; }
.pt-col-7 { width: 58.333333%; }
.pt-col-8 { width: 66.666667%; }
.pt-col-9 { width: 75%; }
.pt-col-10 { width: 83.333333%; }
.pt-col-11 { width: 91.666667%; }
.pt-col-12 { width: 100%; }

/* SM breakpoint (>= 480px) */
@media (min-width: 480px) {
    .pt-col-sm-1 { width: 8.333333%; }
    .pt-col-sm-2 { width: 16.666667%; }
    .pt-col-sm-3 { width: 25%; }
    .pt-col-sm-4 { width: 33.333333%; }
    .pt-col-sm-5 { width: 41.666667%; }
    .pt-col-sm-6 { width: 50%; }
    .pt-col-sm-7 { width: 58.333333%; }
    .pt-col-sm-8 { width: 66.666667%; }
    .pt-col-sm-9 { width: 75%; }
    .pt-col-sm-10 { width: 83.333333%; }
    .pt-col-sm-11 { width: 91.666667%; }
    .pt-col-sm-12 { width: 100%; }
}

/* MD breakpoint (>= 768px) */
@media (min-width: 768px) {
    .pt-col-md-1 { width: 8.333333%; }
    .pt-col-md-2 { width: 16.666667%; }
    .pt-col-md-3 { width: 25%; }
    .pt-col-md-4 { width: 33.333333%; }
    .pt-col-md-5 { width: 41.666667%; }
    .pt-col-md-6 { width: 50%; }
    .pt-col-md-7 { width: 58.333333%; }
    .pt-col-md-8 { width: 66.666667%; }
    .pt-col-md-9 { width: 75%; }
    .pt-col-md-10 { width: 83.333333%; }
    .pt-col-md-11 { width: 91.666667%; }
    .pt-col-md-12 { width: 100%; }
}

/* LG breakpoint (>= 992px) */
@media (min-width: 992px) {
    .pt-col-lg-1 { width: 8.333333%; }
    .pt-col-lg-2 { width: 16.666667%; }
    .pt-col-lg-3 { width: 25%; }
    .pt-col-lg-4 { width: 33.333333%; }
    .pt-col-lg-5 { width: 41.666667%; }
    .pt-col-lg-6 { width: 50%; }
    .pt-col-lg-7 { width: 58.333333%; }
    .pt-col-lg-8 { width: 66.666667%; }
    .pt-col-lg-9 { width: 75%; }
    .pt-col-lg-10 { width: 83.333333%; }
    .pt-col-lg-11 { width: 91.666667%; }
    .pt-col-lg-12 { width: 100%; }
}

/* XL breakpoint (>= 1200px) */
@media (min-width: 1200px) {
    .pt-col-xl-1 { width: 8.333333%; }
    .pt-col-xl-2 { width: 16.666667%; }
    .pt-col-xl-3 { width: 25%; }
    .pt-col-xl-4 { width: 33.333333%; }
    .pt-col-xl-5 { width: 41.666667%; }
    .pt-col-xl-6 { width: 50%; }
    .pt-col-xl-7 { width: 58.333333%; }
    .pt-col-xl-8 { width: 66.666667%; }
    .pt-col-xl-9 { width: 75%; }
    .pt-col-xl-10 { width: 83.333333%; }
    .pt-col-xl-11 { width: 91.666667%; }
    .pt-col-xl-12 { width: 100%; }
}

/* ===================================================================
   5. Buttons
   =================================================================== */

.pt-btn {
    display: inline-block;
    font-family: var(--pt-font);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: var(--pt-radius);
    padding: 12px 24px;
    transition: color var(--pt-transition),
                background-color var(--pt-transition),
                border-color var(--pt-transition),
                box-shadow var(--pt-transition),
                opacity var(--pt-transition);
    white-space: nowrap;
    vertical-align: middle;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.pt-btn:hover {
    text-decoration: none;
}

.pt-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.25);
}

/* Primary */
.pt-btn--primary {
    background-color: var(--pt-primary);
    color: #ffffff;
    border-color: var(--pt-primary);
}

.pt-btn--primary:hover {
    background-color: var(--pt-primary-dark);
    border-color: var(--pt-primary-dark);
    color: #ffffff;
}

/* Secondary */
.pt-btn--secondary {
    background-color: var(--pt-secondary);
    color: #ffffff;
    border-color: var(--pt-secondary);
}

.pt-btn--secondary:hover {
    background-color: var(--pt-secondary-dark);
    border-color: var(--pt-secondary-dark);
    color: #ffffff;
}

/* Outline */
.pt-btn--outline {
    background-color: transparent;
    color: var(--pt-primary);
    border-color: var(--pt-primary);
}

.pt-btn--outline:hover {
    background-color: var(--pt-primary);
    color: #ffffff;
}

/* Dark */
.pt-btn--dark {
    background-color: var(--pt-bg-dark);
    color: #ffffff;
    border-color: var(--pt-bg-dark);
}

.pt-btn--dark:hover {
    background-color: var(--pt-heading);
    border-color: var(--pt-heading);
    color: #ffffff;
}

/* White */
.pt-btn--white {
    background-color: #ffffff;
    color: var(--pt-text-dark);
    border-color: #ffffff;
}

.pt-btn--white:hover {
    background-color: var(--pt-primary);
    border-color: var(--pt-primary);
    color: #ffffff;
}

/* Sizes */
.pt-btn--sm {
    font-size: 12px;
    padding: 8px 16px;
}

.pt-btn--lg {
    font-size: 16px;
    padding: 16px 32px;
}

.pt-btn--xl {
    font-size: 18px;
    padding: 18px 40px;
}

/* Full width */
.pt-btn--block {
    display: block;
    width: 100%;
}

/* Disabled state */
.pt-btn:disabled,
.pt-btn--disabled {
    opacity: 0.65;
    cursor: not-allowed;
    pointer-events: none;
}

/* Icon inside button */
.pt-btn__icon {
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
}

.pt-btn__icon--right {
    margin-right: 0;
    margin-left: 8px;
}

/* ===================================================================
   6. Utility Classes
   =================================================================== */

/* Text alignment */
.pt-text-center { text-align: center; }
.pt-text-left { text-align: left; }
.pt-text-right { text-align: right; }

/* Text colors */
.pt-text-primary { color: var(--pt-primary); }
.pt-text-secondary { color: var(--pt-secondary); }
.pt-text-dark { color: var(--pt-text-dark); }
.pt-text-muted { color: var(--pt-text-light); }
.pt-text-white { color: #ffffff; }
.pt-text-success { color: var(--pt-success); }
.pt-text-danger { color: var(--pt-danger); }

/* Background colors */
.pt-bg-light { background-color: var(--pt-bg-light); }
.pt-bg-dark { background-color: var(--pt-bg-dark); }
.pt-bg-dark h1, .pt-bg-dark h2, .pt-bg-dark h3,
.pt-bg-dark h4, .pt-bg-dark h5, .pt-bg-dark h6 {
    color: #ffffff;
}
.pt-bg-dark a { color: var(--pt-primary-light); }
.pt-bg-dark a:hover { color: #ffffff; }
.pt-bg-primary { background-color: var(--pt-primary); color: #ffffff; }
.pt-bg-white { background-color: #ffffff; }

/* Margin bottom scale */
.pt-mb-0 { margin-bottom: 0; }
.pt-mb-1 { margin-bottom: 10px; }
.pt-mb-2 { margin-bottom: 20px; }
.pt-mb-3 { margin-bottom: 30px; }
.pt-mb-4 { margin-bottom: 40px; }
.pt-mb-5 { margin-bottom: 60px; }

/* Margin top scale */
.pt-mt-0 { margin-top: 0; }
.pt-mt-1 { margin-top: 10px; }
.pt-mt-2 { margin-top: 20px; }
.pt-mt-3 { margin-top: 30px; }
.pt-mt-4 { margin-top: 40px; }
.pt-mt-5 { margin-top: 60px; }

/* Padding scale */
.pt-p-0 { padding: 0; }
.pt-p-1 { padding: 10px; }
.pt-p-2 { padding: 20px; }
.pt-p-3 { padding: 30px; }
.pt-p-4 { padding: 40px; }
.pt-p-5 { padding: 60px; }

.pt-py-1 { padding-top: 10px; padding-bottom: 10px; }
.pt-py-2 { padding-top: 20px; padding-bottom: 20px; }
.pt-py-3 { padding-top: 30px; padding-bottom: 30px; }
.pt-py-4 { padding-top: 40px; padding-bottom: 40px; }
.pt-py-5 { padding-top: 60px; padding-bottom: 60px; }

/* Display */
.pt-d-none { display: none; }
.pt-d-block { display: block; }
.pt-d-flex { display: flex; }
.pt-d-inline { display: inline; }
.pt-d-inline-block { display: inline-block; }

/* Flex utilities */
.pt-flex-center { display: flex; align-items: center; justify-content: center; }
.pt-flex-between { display: flex; align-items: center; justify-content: space-between; }
.pt-flex-wrap { flex-wrap: wrap; }
.pt-flex-1 { flex: 1; }
.pt-align-center { align-items: center; }
.pt-justify-center { justify-content: center; }

/* Width */
.pt-w-100 { width: 100%; }
.pt-w-auto { width: auto; }

/* Overflow */
.pt-overflow-hidden { overflow: hidden; }

/* Position */
.pt-relative { position: relative; }
.pt-absolute { position: absolute; }

/* Border */
.pt-border { border: 1px solid var(--pt-border); }
.pt-border-top { border-top: 1px solid var(--pt-border); }
.pt-border-bottom { border-bottom: 1px solid var(--pt-border); }

/* Shadow */
.pt-shadow { box-shadow: var(--pt-shadow); }
.pt-shadow-sm { box-shadow: var(--pt-shadow-sm); }
.pt-shadow-lg { box-shadow: var(--pt-shadow-lg); }

/* Screen-reader only (visually hidden, accessible to AT) */
.pt-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive visibility — defaults */
.pt-show-mobile { display: none; }
.pt-show-desktop { display: none; }

@media (max-width: 479px) {
    .pt-hidden-xs { display: none; }
}

@media (min-width: 480px) and (max-width: 767px) {
    .pt-hidden-sm { display: none; }
}

@media (max-width: 767px) {
    .pt-hidden-mobile { display: none; }
}

@media (min-width: 768px) and (max-width: 991px) {
    .pt-hidden-md { display: none; }
}

@media (max-width: 991px) {
    .pt-hidden-tablet { display: none; }
    .pt-show-mobile { display: block; }
    .pt-hidden-desktop { display: none; }
}

@media (min-width: 992px) {
    .pt-hidden-lg { display: none; }
    .pt-show-desktop { display: block; }
}

/* ===================================================================
   7. Section Spacing & Titles
   =================================================================== */

.pt-section {
    padding: 40px 0;
}

.pt-section--sm {
    padding: 20px 0;
}

.pt-section--lg {
    padding: 60px 0;
}

.pt-section--xl {
    padding: 80px 0;
}

.pt-section-title {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.pt-section-title h2 {
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--pt-heading);
    margin-bottom: 0;
    display: inline-block;
    position: relative;
    padding-bottom: 15px;
}

.pt-section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: var(--pt-primary);
}

.pt-section-title--left {
    text-align: left;
}

.pt-section-title--left h2::after {
    left: 0;
    transform: none;
}

.pt-section-title--border h2 {
    width: 100%;
    border-bottom: 1px solid var(--pt-border);
}

.pt-section-title--border h2::after {
    width: 60px;
    height: 2px;
}

.pt-section-title p {
    color: var(--pt-text-light);
    font-size: 15px;
    margin-top: 10px;
}

/* ===================================================================
   8. Header — Type 1 (Default Porto Header)
   =================================================================== */

/* --- Row 1: Top Bar --- */
.pt-topbar {
    background-color: var(--pt-bg-dark);
    color: #999999;
    font-size: 12px;
    line-height: var(--pt-topbar-height);
    height: var(--pt-topbar-height);
}

.pt-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.pt-topbar__left {
    display: flex;
    align-items: center;
}

.pt-topbar__welcome {
    color: #cccccc;
}

.pt-topbar__right {
    display: flex;
    align-items: center;
}

.pt-topbar__links {
    display: flex;
    align-items: center;
    gap: 0;
}

.pt-topbar__link-item {
    padding: 0 12px;
}

.pt-topbar__link-item--divider {
    border-left: 1px solid #444444;
}

.pt-topbar__link-item a {
    color: #cccccc;
    font-size: 12px;
    transition: color var(--pt-transition);
}

.pt-topbar__link-item a:hover {
    color: #ffffff;
}

/* --- Row 2: Main Header --- */
.pt-header {
    background-color: #ffffff;
    padding: 15px 0;
    min-height: var(--pt-header-height);
    border-bottom: 1px solid var(--pt-border-light);
}

.pt-header__inner {
    display: flex;
    align-items: center;
    gap: 20px;
}

.pt-header__logo {
    flex-shrink: 0;
}

.pt-header__logo a {
    display: block;
    line-height: 0;
}

.pt-header__logo img {
    height: 48px;
    width: auto;
}

.pt-header__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.pt-header__hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--pt-text-dark);
    border-radius: 1px;
    transition: background-color var(--pt-transition), transform var(--pt-transition), opacity var(--pt-transition);
}

.pt-header__search {
    flex: 1;
    max-width: 600px;
    margin: 0 auto;
}

.pt-header__search-form {
    width: 100%;
}

.pt-header__search-inner {
    display: flex;
    border: 2px solid var(--pt-primary);
    border-radius: var(--pt-radius-sm);
    overflow: hidden;
}

.pt-header__search-cat {
    width: 160px;
    height: 42px;
    border: none;
    border-right: 1px solid var(--pt-border);
    padding: 0 30px 0 15px;
    font-size: 13px;
    color: var(--pt-text);
    background-color: var(--pt-bg-light);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%23777' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    cursor: pointer;
    outline: none;
    flex-shrink: 0;
}

.pt-header__search-input {
    flex: 1;
    height: 42px;
    border: none;
    padding: 0 15px;
    font-size: 14px;
    color: var(--pt-text-dark);
    outline: none;
    min-width: 200px;
}

.pt-header__search-input:focus-visible {
    box-shadow: inset 0 0 0 2px var(--pt-primary);
}

.pt-header__search-input::placeholder {
    color: var(--pt-text-light);
}

.pt-header__search-cat:focus-visible {
    box-shadow: inset 0 0 0 2px var(--pt-primary);
}

.pt-header__search-btn {
    width: 48px;
    height: 42px;
    border: none;
    background-color: var(--pt-primary);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color var(--pt-transition);
}

.pt-header__search-btn:hover {
    background-color: var(--pt-primary-dark);
}

.pt-header__tools {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.pt-header__tool-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--pt-text-dark);
    text-decoration: none;
    position: relative;
    transition: color var(--pt-transition);
}

.pt-header__tool-item:hover {
    color: var(--pt-primary);
}

.pt-header__tool-icon {
    flex-shrink: 0;
}

.pt-header__tool-text {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.pt-header__tool-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--pt-primary);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* --- Row 3: Navigation Bar --- */
.pt-nav {
    background-color: var(--pt-primary);
    height: var(--pt-nav-height);
}

.pt-nav__inner {
    display: flex;
    align-items: center;
    height: 100%;
}

.pt-nav__categories-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    padding: 0 20px;
    background-color: rgba(0, 0, 0, 0.15);
    border: none;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color var(--pt-transition);
}

.pt-nav__categories-btn:hover {
    background-color: rgba(0, 0, 0, 0.25);
}

.pt-nav__menu {
    flex: 1;
}

.pt-nav__list {
    display: flex;
    align-items: center;
    height: var(--pt-nav-height);
}

.pt-nav__item {
    height: 100%;
}

.pt-nav__link {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 18px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color var(--pt-transition);
}

.pt-nav__link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

button.pt-nav__link--dropdown {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.pt-nav__item--active .pt-nav__link {
    background-color: rgba(255, 255, 255, 0.15);
}

/* ===================================================================
   8b. Mega Menu (Desktop + Mobile)
   =================================================================== */

/* --- Desktop Dropdown Base --- */
.pt-nav__item--has-dropdown {
    position: relative;
}

.pt-megamenu__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    background-color: #ffffff;
    border: 1px solid var(--pt-border);
    border-top: 3px solid var(--pt-primary);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 200ms ease, transform 200ms ease, visibility 200ms;
    pointer-events: none;
}

.pt-megamenu__dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* --- Full-width type --- */
.pt-megamenu__dropdown--fullwidth {
    border-radius: 0;
}

/* --- Static-width type --- */
.pt-megamenu__dropdown--static {
    border-radius: var(--pt-radius);
}

/* --- Classic type --- */
.pt-megamenu__dropdown--classic {
    min-width: 220px;
    padding: 10px 0;
    border-radius: var(--pt-radius);
}

.pt-megamenu__dropdown--classic ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pt-megamenu__dropdown--classic li a {
    display: block;
    padding: 8px 20px;
    color: var(--pt-text);
    font-size: 13px;
    transition: color var(--pt-transition), background-color var(--pt-transition);
}

.pt-megamenu__dropdown--classic li a:hover {
    color: var(--pt-primary);
    background-color: var(--pt-bg-light);
}

/* --- Columns layout --- */
.pt-megamenu__columns {
    display: grid;
    grid-template-columns: repeat(var(--pt-cols, 4), 1fr);
    gap: 20px;
}

.pt-megamenu__column-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--pt-text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--pt-border);
}

.pt-megamenu__links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pt-megamenu__links li {
    margin-bottom: 6px;
}

.pt-megamenu__links a {
    color: var(--pt-text);
    font-size: 13px;
    line-height: 1.6;
    transition: color var(--pt-transition);
}

.pt-megamenu__links a:hover {
    color: var(--pt-primary);
}

/* --- Top / Side blocks --- */
.pt-megamenu__top-block {
    margin-bottom: 15px;
}

.pt-megamenu__top-block:empty {
    display: none;
}

.pt-megamenu__side-block {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--pt-border);
}

.pt-megamenu__side-block:empty {
    display: none;
}

/* --- Category Labels (New, Hot, Sale) --- */
.pt-megamenu__label {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 3px;
    color: #ffffff;
    margin-left: 6px;
    vertical-align: middle;
    line-height: 1.2;
}

.pt-megamenu__label--new {
    background-color: var(--pt-success);
}

.pt-megamenu__label--hot {
    background-color: var(--pt-hot);
}

.pt-megamenu__label--sale {
    background-color: var(--pt-secondary);
}

/* --- Mobile Off-Canvas Panel --- */
.pt-megamenu--mobile {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100%;
    z-index: 1000;
    background-color: #ffffff;
    transform: translateX(-100%);
    transition: transform 300ms ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pt-megamenu--mobile.is-open {
    transform: translateX(0);
}

.pt-megamenu__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 300ms ease, visibility 300ms;
}

.pt-megamenu__overlay.is-open {
    opacity: 1;
    visibility: visible;
}

body.pt-no-scroll {
    overflow: hidden;
}

/* --- Mobile Header --- */
.pt-megamenu__mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid var(--pt-border);
    flex-shrink: 0;
}

.pt-megamenu__mobile-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--pt-text-dark);
    text-transform: uppercase;
}

.pt-megamenu__mobile-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    font-size: 24px;
    color: var(--pt-text);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.pt-megamenu__mobile-close:hover {
    color: var(--pt-secondary);
}

/* --- Mobile Body --- */
.pt-megamenu__mobile-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

/* --- Mobile Menu Items --- */
.pt-megamenu__mobile-item {
    border-bottom: 1px solid var(--pt-border-light, #f0f0f0);
}

.pt-megamenu__mobile-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--pt-text-dark);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.pt-megamenu__mobile-link:hover {
    color: var(--pt-primary);
    background-color: var(--pt-bg-light);
}

.pt-megamenu__mobile-arrow {
    flex-shrink: 0;
    transition: transform 200ms ease;
}

.pt-megamenu__mobile-item.is-expanded .pt-megamenu__mobile-arrow {
    transform: rotate(180deg);
}

/* --- Mobile Submenu --- */
.pt-megamenu__mobile-sub {
    display: none;
    padding: 0 0 8px;
    background-color: var(--pt-bg-light);
}

.pt-megamenu__mobile-sub-title {
    padding: 10px 20px 4px 30px;
    font-size: 12px;
    font-weight: 700;
    color: var(--pt-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pt-megamenu__mobile-sub-link {
    display: block;
    padding: 8px 20px 8px 30px;
    font-size: 13px;
    color: var(--pt-text);
    text-decoration: none;
}

.pt-megamenu__mobile-sub-link:hover {
    color: var(--pt-primary);
}

/* --- Mega Menu Focus Styles --- */
.pt-megamenu__links a:focus-visible,
.pt-megamenu__dropdown--classic li a:focus-visible {
    outline: 2px solid var(--pt-primary);
    outline-offset: -2px;
}

.pt-megamenu__mobile-link:focus-visible,
.pt-megamenu__mobile-sub-link:focus-visible,
.pt-megamenu__mobile-close:focus-visible {
    outline: 2px solid var(--pt-primary);
    outline-offset: -2px;
}

/* --- Hide desktop dropdown on mobile --- */
@media (max-width: 991px) {
    .pt-megamenu__dropdown {
        display: none;
    }
}

/* --- Hide mobile panel on desktop --- */
@media (min-width: 992px) {
    .pt-megamenu--mobile,
    .pt-megamenu__overlay {
        display: none;
    }
}

/* --- Header Responsive --- */
@media (max-width: 991px) {
    .pt-header__inner {
        justify-content: space-between;
    }

    .pt-header__hamburger {
        display: flex;
    }

    .pt-header__logo img {
        height: 36px;
    }

    .pt-header__tools {
        gap: 12px;
    }

    .pt-header__tool-count {
        top: -6px;
        right: -6px;
        min-width: 16px;
        height: 16px;
        font-size: 9px;
    }
}

@media (max-width: 479px) {
    .pt-header {
        padding: 10px 0;
    }

    .pt-header__logo img {
        height: 30px;
    }
}

/* ===================================================================
   8c. Footer (3-section system)
   =================================================================== */

/* --- Footer Top: Newsletter --- */
.pt-footer-top {
    background-color: var(--pt-bg-light);
    padding: 25px 0;
}

.pt-footer-top__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.pt-footer-top__text {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--pt-text-dark);
    white-space: nowrap;
    flex-shrink: 0;
}

.pt-footer-top__icon {
    flex-shrink: 0;
    color: var(--pt-primary);
}

.pt-footer-top__newsletter {
    flex: 1;
    max-width: 500px;
}

.pt-footer-top__newsletter-inner {
    display: flex;
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius-sm);
    overflow: hidden;
}

.pt-footer-top__newsletter-input {
    flex: 1;
    height: 44px;
    padding: 0 15px;
    border: none;
    font-size: 14px;
    font-family: var(--pt-font);
    color: var(--pt-text-dark);
    outline: none;
    min-width: 0;
}

.pt-footer-top__newsletter-input::placeholder {
    color: var(--pt-text-light);
}

.pt-footer-top__newsletter-input:focus-visible {
    box-shadow: inset 0 0 0 2px var(--pt-primary);
}

.pt-footer-top__newsletter-btn {
    flex-shrink: 0;
    border-radius: 0;
    height: 44px;
    padding: 0 25px;
}

/* --- Footer Middle: 4-col links --- */
.pt-footer-middle {
    background-color: var(--pt-bg-dark, #222529);
    padding: 50px 0 40px;
}

.pt-footer-middle__row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.pt-footer-middle__title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pt-footer-middle__links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pt-footer-middle__links li {
    margin-bottom: 8px;
}

.pt-footer-middle__links a {
    color: #999999;
    font-size: 13px;
    line-height: 1.6;
    transition: color var(--pt-transition);
}

.pt-footer-middle__links a:hover {
    color: var(--pt-primary-light, #39f);
}

.pt-footer-middle__links a:focus-visible {
    outline: 2px solid var(--pt-primary);
    outline-offset: 2px;
}

.pt-footer-middle__contact p {
    color: #999999;
    font-size: 13px;
    line-height: 1.8;
    margin: 0 0 6px;
}

.pt-footer-middle__contact a {
    color: var(--pt-primary-light, #39f);
    transition: color var(--pt-transition);
}

.pt-footer-middle__contact a:hover {
    color: #ffffff;
}

.pt-footer-middle__contact a:focus-visible {
    outline: 2px solid var(--pt-primary);
    outline-offset: 2px;
}

/* --- Footer Bottom: copyright, payments, social --- */
.pt-footer-bottom {
    background-color: var(--pt-bg-dark, #222529);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
}

.pt-footer-bottom__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.pt-footer-bottom__copyright {
    color: #777777;
    font-size: 13px;
    white-space: nowrap;
}

.pt-footer-bottom__payments {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pt-footer-bottom__payment-icon {
    display: flex;
    align-items: center;
    opacity: 0.85;
    transition: opacity var(--pt-transition);
}

.pt-footer-bottom__payment-icon:hover {
    opacity: 1;
}

.pt-footer-bottom__social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pt-footer-bottom__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    color: #999999;
    transition: background-color var(--pt-transition), color var(--pt-transition);
}

.pt-footer-bottom__social-link:hover {
    background-color: var(--pt-primary);
    color: #ffffff;
}

.pt-footer-bottom__social-link:focus-visible {
    outline: 2px solid var(--pt-primary);
    outline-offset: 2px;
}

/* --- Footer Responsive --- */
@media (max-width: 991px) {
    .pt-footer-top__inner {
        flex-direction: column;
        text-align: center;
    }

    .pt-footer-top__newsletter {
        max-width: 100%;
        width: 100%;
    }

    .pt-footer-middle__row {
        grid-template-columns: repeat(2, 1fr);
    }

    .pt-footer-bottom__inner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

@media (max-width: 479px) {
    .pt-footer-middle__row {
        grid-template-columns: 1fr;
    }

    .pt-footer-top__newsletter-inner {
        flex-direction: column;
    }

    .pt-footer-top__newsletter-btn {
        border-radius: 0 0 var(--pt-radius-sm) var(--pt-radius-sm);
    }
}

/* ===================================================================
   9. Badge Styles
   =================================================================== */

.pt-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    padding: 5px 10px;
    border-radius: var(--pt-radius-sm);
    color: #ffffff;
    z-index: 2;
}

.pt-badge--new {
    background-color: var(--pt-success);
}

.pt-badge--sale {
    background-color: var(--pt-secondary);
}

.pt-badge--hot {
    background-color: var(--pt-hot);
}

.pt-badge--top {
    position: absolute;
    left: 10px;
    top: 10px;
}

.pt-badge--top-right {
    position: absolute;
    right: 10px;
    top: 10px;
    left: auto;
}

.pt-badge--percent {
    font-size: 13px;
    font-weight: 700;
    min-width: 40px;
    text-align: center;
    padding: 6px 8px;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===================================================================
   9b. Product Card Component
   =================================================================== */

.pt-product-card {
    position: relative;
    background-color: #ffffff;
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius);
    overflow: hidden;
    transition: box-shadow var(--pt-transition);
}

.pt-product-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* --- Image Container --- */
.pt-product-card__image {
    position: relative;
    overflow: hidden;
}

.pt-product-card__image a {
    display: block;
}

.pt-product-card__image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 300ms ease;
}

.pt-product-card:hover .pt-product-card__image img:not(.pt-product-card__img-hover) {
    transform: scale(1.05);
}

/* --- Badges --- */
.pt-product-card__badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* --- Hover Action Buttons --- */
.pt-product-card__actions {
    position: absolute;
    top: 10px;
    right: -50px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: right 300ms ease;
}

.pt-product-card:hover .pt-product-card__actions,
.pt-product-card:focus-within .pt-product-card__actions {
    right: 10px;
}

.pt-product-card__action {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background-color: #ffffff;
    color: var(--pt-text);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: background-color var(--pt-transition), color var(--pt-transition);
    padding: 0;
}

.pt-product-card__action:hover {
    background-color: var(--pt-primary);
    color: #ffffff;
}

.pt-product-card__action:focus-visible {
    outline: 2px solid var(--pt-primary);
    outline-offset: 2px;
}

/* --- Product Info --- */
.pt-product-card__info {
    padding: 15px;
}

.pt-product-card__category {
    font-size: 11px;
    color: var(--pt-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.pt-product-card__name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 8px;
}

.pt-product-card__name a {
    color: var(--pt-text-dark);
    transition: color var(--pt-transition);
}

.pt-product-card__name a:hover {
    color: var(--pt-primary);
}

/* --- Star Rating --- */
.pt-product-card__rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.pt-product-card__stars {
    position: relative;
    width: 80px;
    height: 14px;
    background: linear-gradient(90deg, var(--pt-border) 0%, var(--pt-border) 100%);
    overflow: hidden;
    font-size: 0;
}

.pt-product-card__stars::before {
    content: '\2605\2605\2605\2605\2605';
    position: absolute;
    top: 0;
    left: 0;
    font-size: 14px;
    line-height: 1;
    color: var(--pt-border);
    letter-spacing: 2px;
}

.pt-product-card__stars-filled {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    overflow: hidden;
}

.pt-product-card__stars-filled::before {
    content: '\2605\2605\2605\2605\2605';
    position: absolute;
    top: 0;
    left: 0;
    font-size: 14px;
    line-height: 1;
    color: #ffa500;
    letter-spacing: 2px;
    white-space: nowrap;
}

.pt-product-card__review-count {
    font-size: 12px;
    color: var(--pt-text-light);
}

/* --- Price --- */
.pt-product-card__price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.pt-product-card__price-old {
    font-size: 13px;
    color: var(--pt-text-light);
    text-decoration: line-through;
}

.pt-product-card__price-now {
    font-size: 18px;
    font-weight: 700;
    color: var(--pt-text-dark);
}

/* Special price highlight */
.pt-product-card__price-old + .pt-product-card__price-now {
    color: var(--pt-secondary);
}

/* --- Add to Cart --- */
.pt-product-card__cart {
    width: 100%;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 200ms ease, transform 200ms ease;
}

.pt-product-card:hover .pt-product-card__cart,
.pt-product-card:focus-within .pt-product-card__cart {
    opacity: 1;
    transform: translateY(0);
}

/* --- Product Card Responsive --- */
@media (max-width: 991px) {
    .pt-product-card__actions {
        right: 10px;
    }

    .pt-product-card__cart {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 479px) {
    .pt-product-card__info {
        padding: 10px;
    }

    .pt-product-card__name {
        font-size: 13px;
    }

    .pt-product-card__price-now {
        font-size: 16px;
    }

    .pt-product-card__action {
        width: 32px;
        height: 32px;
    }
}

/* ===================================================================
   9c. Swiper Slider Overrides (Porto-styled)
   =================================================================== */

/* --- Navigation Arrows --- */
.swiper-button-prev,
.swiper-button-next {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(34, 37, 41, 0.75);
    color: #ffffff;
    transition: background-color var(--pt-transition), opacity var(--pt-transition);
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 14px;
    font-weight: 700;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background-color: var(--pt-primary);
}

.swiper-button-prev:focus-visible,
.swiper-button-next:focus-visible {
    outline: 2px solid var(--pt-primary);
    outline-offset: 2px;
}

.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* --- Pagination Dots --- */
.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: var(--pt-border);
    opacity: 1;
    transition: background-color var(--pt-transition), transform var(--pt-transition);
}

.swiper-pagination-bullet-active {
    background-color: var(--pt-primary);
    transform: scale(1.2);
}

.swiper-pagination-bullet:focus-visible {
    outline: 2px solid var(--pt-primary);
    outline-offset: 2px;
}

/* --- Hero Slider Variant --- */
.pt-hero-slider .swiper-button-prev,
.pt-hero-slider .swiper-button-next {
    width: 48px;
    height: 48px;
    background-color: rgba(34, 37, 41, 0.6);
}

.pt-hero-slider .swiper-button-prev::after,
.pt-hero-slider .swiper-button-next::after {
    font-size: 18px;
}

.pt-hero-slider .swiper-button-prev:hover,
.pt-hero-slider .swiper-button-next:hover {
    background-color: var(--pt-primary);
}

.pt-hero-slider .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
}

.pt-hero-slider .swiper-slide {
    overflow: hidden;
}

/* Hero slide content overlay */
.pt-hero-slide__content {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    padding: 40px 60px;
    max-width: 600px;
    z-index: 2;
}

.pt-hero-slide__title {
    font-family: var(--pt-font-heading);
    font-size: 42px;
    font-weight: 700;
    color: var(--pt-heading);
    line-height: 1.2;
    margin: 0 0 16px;
}

.pt-hero-slide__subtitle {
    font-size: 18px;
    color: var(--pt-text);
    margin: 0 0 24px;
    line-height: 1.6;
}

/* --- Brand Logo Carousel --- */
.pt-brand-slider .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
}

.pt-brand-slider .swiper-slide img {
    max-height: 60px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter var(--pt-transition), opacity var(--pt-transition);
}

.pt-brand-slider .swiper-slide img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* --- Reduced motion for Swiper --- */
@media (prefers-reduced-motion: reduce) {
    .swiper-wrapper {
        transition-duration: 0ms !important;
    }

    .swiper-button-prev,
    .swiper-button-next,
    .swiper-pagination-bullet {
        transition: none;
    }

    .pt-brand-slider .swiper-slide img {
        transition: none;
    }
}

/* --- Swiper Responsive --- */
@media (max-width: 767px) {
    .swiper-button-prev,
    .swiper-button-next {
        width: 30px;
        height: 30px;
    }

    .swiper-button-prev::after,
    .swiper-button-next::after {
        font-size: 12px;
    }

    .pt-hero-slider .swiper-button-prev,
    .pt-hero-slider .swiper-button-next {
        width: 36px;
        height: 36px;
    }

    .pt-hero-slider .swiper-button-prev::after,
    .pt-hero-slider .swiper-button-next::after {
        font-size: 14px;
    }

    .pt-hero-slide__content {
        padding: 20px 30px;
    }

    .pt-hero-slide__title {
        font-size: 24px;
    }

    .pt-hero-slide__subtitle {
        font-size: 14px;
        margin-bottom: 16px;
    }
}

@media (max-width: 479px) {
    .pt-hero-slide__content {
        padding: 15px 20px;
        max-width: 100%;
    }

    .pt-hero-slide__title {
        font-size: 20px;
    }

    .pt-hero-slide__subtitle {
        font-size: 13px;
    }

    .pt-brand-slider .swiper-slide img {
        max-height: 40px;
    }
}

/* ===================================================================
   9d. Homepage Components (Demo 1)
   =================================================================== */

/* --- Hero Slide --- */
.pt-hero-section {
    margin-bottom: 0;
}

.pt-hero-slide {
    position: relative;
    overflow: hidden;
    min-height: 400px;
    background-color: var(--pt-bg-light);
}

.pt-hero-slide__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pt-hero-slide__label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--pt-primary);
    margin: 0 0 12px;
}

/* --- Service Features Bar --- */
.pt-services {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.pt-services__item {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    padding: 10px 0;
}

.pt-services__icon {
    flex-shrink: 0;
    color: var(--pt-primary);
}

.pt-services__title {
    font-family: var(--pt-font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--pt-text-dark);
    margin: 0 0 2px;
}

.pt-services__desc {
    font-size: 13px;
    color: var(--pt-text-light);
    margin: 0;
}

/* --- Promotional Banner Grid --- */
.pt-promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.pt-promo-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--pt-radius);
    text-decoration: none;
}

.pt-promo-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.pt-promo-card:hover img {
    transform: scale(1.05);
}

.pt-promo-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
    color: #ffffff;
}

.pt-promo-card__label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    opacity: 0.85;
}

.pt-promo-card__title {
    font-family: var(--pt-font-heading);
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
}

.pt-promo-card:focus-visible {
    outline: 2px solid var(--pt-primary);
    outline-offset: 2px;
}

/* --- Tab Listing --- */
.pt-tab-listing__tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--pt-border);
    margin-bottom: 30px;
}

.pt-tab-listing__tab {
    padding: 12px 24px;
    font-family: var(--pt-font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--pt-text);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: color var(--pt-transition), border-color var(--pt-transition);
}

.pt-tab-listing__tab:hover {
    color: var(--pt-primary);
}

.pt-tab-listing__tab--active,
.pt-tab-listing__tab[aria-selected="true"] {
    color: var(--pt-primary);
    border-bottom-color: var(--pt-primary);
}

.pt-tab-listing__tab:focus-visible {
    outline: 2px solid var(--pt-primary);
    outline-offset: -2px;
}

.pt-tab-listing__panel[hidden] {
    display: none;
}

/* --- Wide Banner --- */
.pt-wide-banner__bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 0;
}

.pt-wide-banner__content {
    max-width: 500px;
}

.pt-wide-banner__label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--pt-primary);
    margin: 0 0 12px;
}

.pt-wide-banner__title {
    font-family: var(--pt-font-heading);
    font-size: 36px;
    font-weight: 700;
    color: var(--pt-heading);
    line-height: 1.2;
    margin: 0 0 24px;
}

/* --- Homepage Responsive --- */
@media (max-width: 991px) {
    .pt-services {
        flex-wrap: wrap;
    }

    .pt-services__item {
        flex: 0 0 calc(50% - 10px);
    }

    .pt-promo-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .pt-hero-slide {
        min-height: 300px;
    }

    .pt-wide-banner__bg {
        padding: 50px 0;
    }

    .pt-wide-banner__title {
        font-size: 26px;
    }
}

@media (max-width: 767px) {
    .pt-tab-listing__tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .pt-tab-listing__tab {
        padding: 10px 16px;
        font-size: 13px;
        white-space: nowrap;
    }

    .pt-services__item {
        flex: 0 0 100%;
    }
}

@media (max-width: 479px) {
    .pt-hero-slide {
        min-height: 220px;
    }

    .pt-wide-banner__bg {
        padding: 30px 0;
    }

    .pt-wide-banner__title {
        font-size: 22px;
    }

    .pt-promo-card__title {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pt-promo-card img {
        transition: none;
    }

    .pt-tab-listing__tab {
        transition: none;
    }
}

/* ===================================================================
   10. Form Elements (Porto-styled)
   =================================================================== */

.pt-input {
    width: 100%;
    height: 40px;
    padding: 8px 15px;
    font-size: var(--pt-font-size);
    font-family: var(--pt-font);
    color: var(--pt-text-dark);
    background-color: #ffffff;
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius);
    transition: border-color var(--pt-transition);
    outline: none;
}

.pt-input:focus {
    border-color: var(--pt-primary);
    box-shadow: none;
}

.pt-input--lg {
    height: 48px;
    padding: 10px 20px;
    font-size: 16px;
}

.pt-select {
    width: 100%;
    height: 40px;
    padding: 8px 35px 8px 15px;
    font-size: var(--pt-font-size);
    font-family: var(--pt-font);
    color: var(--pt-text-dark);
    background-color: #ffffff;
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23777' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
    outline: none;
}

.pt-select:focus {
    border-color: var(--pt-primary);
}

.pt-textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px 15px;
    font-size: var(--pt-font-size);
    font-family: var(--pt-font);
    color: var(--pt-text-dark);
    background-color: #ffffff;
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius);
    resize: vertical;
    outline: none;
}

.pt-textarea:focus {
    border-color: var(--pt-primary);
}

.pt-form-group {
    margin-bottom: 20px;
}

.pt-form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--pt-text-dark);
    margin-bottom: 8px;
}

/* Placeholder styles */
.pt-input::placeholder,
.pt-textarea::placeholder {
    color: var(--pt-text-light);
    opacity: 1;
}

/* Disabled form states */
.pt-input:disabled,
.pt-textarea:disabled,
.pt-select:disabled {
    background-color: var(--pt-bg-light);
    cursor: not-allowed;
    opacity: 0.7;
}

/* ===================================================================
   11. Transition & Animation Helpers
   =================================================================== */

.pt-fade-in {
    animation: ptFadeIn 0.3s ease;
}

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

.pt-slide-down {
    animation: ptSlideDown 0.3s ease;
}

@keyframes ptSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .pt-fade-in,
    .pt-slide-down {
        animation: none;
    }

    .pt-megamenu__dropdown,
    .pt-megamenu--mobile,
    .pt-megamenu__overlay,
    .pt-megamenu__mobile-arrow {
        transition: none;
    }
}

/* ===================================================================
   12. Responsive Container Adjustments
   =================================================================== */

@media (max-width: 767px) {
    .pt-container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .pt-section {
        padding: 30px 0;
    }

    .pt-section--lg {
        padding: 40px 0;
    }

    .pt-section--xl {
        padding: 50px 0;
    }

    .pt-section-title h2 {
        font-size: 18px;
    }

    h1 { font-size: 22px; }
    h2 { font-size: 20px; }
    h3 { font-size: 18px; }
    h4 { font-size: 16px; }
}

@media (max-width: 479px) {
    .pt-container {
        padding-left: 10px;
        padding-right: 10px;
    }

    h1 { font-size: 20px; }
    h2 { font-size: 18px; }
}

/* ===================================================================
   13. Responsive Polish (PORTO-009)
   Touch targets, overflow prevention, cross-component fixes
   =================================================================== */

/* --- Touch targets: enlarge interactive elements on touch devices --- */
@media (pointer: coarse) {
    .pt-tab-listing__tab {
        min-height: 44px;
        padding: 10px 20px;
    }

    .pt-footer-middle__links a {
        display: block;
        min-height: 44px;
        line-height: 44px;
    }

    .pt-product-card__action {
        width: 44px;
        height: 44px;
    }

    /* Enlarge bullet visual + add padding hit area for touch */
    .swiper-pagination-bullet {
        width: 14px;
        height: 14px;
        position: relative;
    }

    .swiper-pagination-bullet::after {
        content: '';
        position: absolute;
        inset: -15px;
    }

    .pt-nav__link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .pt-topbar__link,
    .pt-header__tool-item {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* --- Tablet + Mobile: search bar below header --- */
@media (max-width: 991px) {
    .pt-header__search {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 10px 15px;
        background: #ffffff;
        border-top: 1px solid var(--pt-border);
        z-index: 100;
    }
}

/* --- Mobile: simplified header, 2-col grids --- */
@media (max-width: 767px) {
    .pt-header__search-cat {
        display: none;
    }

    .pt-header__phone {
        display: none;
    }

    .pt-footer-top__text {
        font-size: 14px;
        white-space: normal;
    }

    .pt-footer-bottom__social-link {
        width: 36px;
        height: 36px;
    }

    /* Product card grid: 2 columns on phone */
    .products-grid .product-items,
    .widget-product-grid .product-items {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* --- Small mobile: max readability --- */
@media (max-width: 479px) {
    .pt-header__tools {
        gap: 8px;
    }

    .pt-footer-bottom__social-link {
        width: 32px;
        height: 32px;
    }

    .pt-footer-bottom__copyright {
        font-size: 12px;
    }

    /* Product card grid: 2 columns on small phone */
    .products-grid .product-items,
    .widget-product-grid .product-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    /* Truncate long product names — display must be -webkit-box for clamping */
    .pt-product-card__name {
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        display: -webkit-box;
        overflow: hidden;
    }

    .pt-section-title p {
        font-size: 13px;
    }
}

/* --- Very small mobile: single column --- */
@media (max-width: 359px) {
    .products-grid .product-items,
    .widget-product-grid .product-items {
        grid-template-columns: 1fr;
    }
}

/* --- Reduced motion for new animations --- */
@media (prefers-reduced-motion: reduce) {
    .pt-product-card__actions {
        transition: none;
    }
}

/* --- Print styles --- */
@media print {
    .pt-topbar,
    .pt-header,
    .pt-nav,
    .pt-footer-top,
    .pt-footer-middle,
    .pt-footer-bottom,
    .pt-megamenu--mobile,
    .pt-megamenu__overlay,
    .swiper-button-prev,
    .swiper-button-next,
    .swiper-pagination {
        display: none;
    }

    .pt-container {
        max-width: 100%;
        padding: 0;
    }

    .pt-product-card__cart {
        display: none;
    }
}

/* ===================================================================
   14. Category Page (PORTO-010)
   =================================================================== */

/* --- Category Banner --- */
.pt-category-banner {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    margin-bottom: 20px;
}

.pt-category-banner__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pt-category-banner__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
}

.pt-category-banner__title {
    color: #fff;
    font-family: var(--pt-font-heading);
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* --- Empty category --- */
.pt-category-empty {
    padding: 60px 20px;
    text-align: center;
}

.pt-category-empty__message {
    font-size: 16px;
    color: var(--pt-text-light);
}

/* --- Product Grid --- */
.pt-category-products {
    margin-bottom: 40px;
}

.pt-product-grid {
    display: grid;
    gap: var(--pt-gutter);
}

/* Column variants: 2–6 columns */
.pt-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.pt-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.pt-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }
.pt-grid--cols-5 { grid-template-columns: repeat(5, 1fr); }
.pt-grid--cols-6 { grid-template-columns: repeat(6, 1fr); }

/* Auto-fill fallback */
.pt-product-grid:not([class*="pt-grid--cols-"]) {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* --- Breadcrumbs (Porto-styled) --- */
.pt-category-page .breadcrumbs {
    padding: 12px 0;
    margin-bottom: 5px;
    font-size: 13px;
    color: var(--pt-text-light);
}

.pt-category-page .breadcrumbs a {
    color: var(--pt-text);
    text-decoration: none;
    transition: color var(--pt-transition);
}

.pt-category-page .breadcrumbs a:hover {
    color: var(--pt-primary);
}

.pt-category-page .breadcrumbs .item:not(:last-child)::after {
    content: '/';
    margin: 0 8px;
    color: var(--pt-border);
}

/* --- Magento toolbar override (remap default classes) --- */
.pt-category-page .toolbar-products {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--pt-border);
    font-size: 13px;
    color: var(--pt-text);
}

.pt-category-page .toolbar-products:last-child {
    border-bottom: none;
    border-top: 1px solid var(--pt-border);
    margin-top: 20px;
}

.pt-category-page .toolbar-products .toolbar-sorter {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pt-category-page .toolbar-products .sorter-label {
    font-weight: 600;
    color: var(--pt-text-dark);
    white-space: nowrap;
}

.pt-category-page .toolbar-products .sorter-options {
    border: 1px solid var(--pt-border);
    padding: 6px 30px 6px 10px;
    font-size: 13px;
    color: var(--pt-text);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23777'/%3E%3C/svg%3E") no-repeat right 10px center;
    appearance: none;
    cursor: pointer;
    border-radius: var(--pt-radius-sm);
}

.pt-category-page .toolbar-products .sorter-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    text-decoration: none;
    color: var(--pt-text);
    transition: color var(--pt-transition);
}

.pt-category-page .toolbar-products .sorter-action:hover {
    color: var(--pt-primary);
}

/* View mode icons */
.pt-category-page .toolbar-products .modes {
    display: flex;
    gap: 4px;
}

.pt-category-page .toolbar-products .modes-mode {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius-sm);
    background: #fff;
    color: var(--pt-text-light);
    text-decoration: none;
    transition: color var(--pt-transition), background var(--pt-transition), border-color var(--pt-transition);
}

.pt-category-page .toolbar-products .modes-mode:hover,
.pt-category-page .toolbar-products .modes-mode.active {
    color: #fff;
    background: var(--pt-primary);
    border-color: var(--pt-primary);
}

.pt-category-page .toolbar-products .modes-mode > span {
    clip: rect(0, 0, 0, 0);
    border: 0;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

/* Grid icon (before pseudo) */
.pt-category-page .toolbar-products .mode-grid::before {
    content: '';
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='currentColor'%3E%3Crect x='0' y='0' width='4' height='4' rx='0.5'/%3E%3Crect x='6' y='0' width='4' height='4' rx='0.5'/%3E%3Crect x='12' y='0' width='4' height='4' rx='0.5'/%3E%3Crect x='0' y='6' width='4' height='4' rx='0.5'/%3E%3Crect x='6' y='6' width='4' height='4' rx='0.5'/%3E%3Crect x='12' y='6' width='4' height='4' rx='0.5'/%3E%3Crect x='0' y='12' width='4' height='4' rx='0.5'/%3E%3Crect x='6' y='12' width='4' height='4' rx='0.5'/%3E%3Crect x='12' y='12' width='4' height='4' rx='0.5'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

/* List icon (before pseudo) */
.pt-category-page .toolbar-products .mode-list::before {
    content: '';
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='currentColor'%3E%3Crect x='0' y='1' width='16' height='2' rx='0.5'/%3E%3Crect x='0' y='7' width='16' height='2' rx='0.5'/%3E%3Crect x='0' y='13' width='16' height='2' rx='0.5'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.pt-category-page .toolbar-products .modes-mode:hover::before,
.pt-category-page .toolbar-products .modes-mode.active::before {
    filter: brightness(0) invert(1);
}

/* Limiter */
.pt-category-page .toolbar-products .limiter {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.pt-category-page .toolbar-products .limiter-options {
    border: 1px solid var(--pt-border);
    padding: 6px 30px 6px 10px;
    font-size: 13px;
    color: var(--pt-text);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23777'/%3E%3C/svg%3E") no-repeat right 10px center;
    appearance: none;
    cursor: pointer;
    border-radius: var(--pt-radius-sm);
}

/* Toolbar amount */
.pt-category-page .toolbar-products .toolbar-amount {
    font-size: 12px;
    color: var(--pt-text-light);
}

/* Pages / pagination */
.pt-category-page .toolbar-products .pages {
    margin-top: 0;
}

.pt-category-page .pages-items {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pt-category-page .pages-item-next,
.pt-category-page .pages-item-previous,
.pt-category-page .pages-items .item {
    margin: 0;
}

.pt-category-page .pages-items .item a,
.pt-category-page .pages-items .item strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius-sm);
    font-size: 14px;
    font-weight: 400;
    color: var(--pt-text);
    text-decoration: none;
    transition: color var(--pt-transition), background var(--pt-transition), border-color var(--pt-transition);
}

.pt-category-page .pages-items .item a:hover {
    color: #fff;
    background: var(--pt-primary);
    border-color: var(--pt-primary);
}

.pt-category-page .pages-items .item.current strong {
    color: #fff;
    background: var(--pt-primary);
    border-color: var(--pt-primary);
}

/* Pagination prev/next arrows — visually hide text but keep accessible */
.pt-category-page .pages-items .action.previous > span,
.pt-category-page .pages-items .action.next > span {
    clip: rect(0, 0, 0, 0);
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    white-space: nowrap;
}

.pt-category-page .pages-items .action.previous::before,
.pt-category-page .pages-items .action.next::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
}

.pt-category-page .pages-items .action.previous::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M7 1L3 5l4 4' stroke='%23777' fill='none' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.pt-category-page .pages-items .action.next::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M3 1l4 4-4 4' stroke='%23777' fill='none' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.pt-category-page .pages-items .action.previous:hover::before,
.pt-category-page .pages-items .action.next:hover::before {
    filter: brightness(0) invert(1);
}

/* Toolbar focus-visible styles */
.pt-category-page .toolbar-products .sorter-options:focus-visible,
.pt-category-page .toolbar-products .sorter-action:focus-visible,
.pt-category-page .toolbar-products .limiter-options:focus-visible,
.pt-category-page .toolbar-products .modes-mode:focus-visible,
.pt-category-page .pages-items .item a:focus-visible {
    outline: 2px solid var(--pt-primary);
    outline-offset: 2px;
}

/* ===================================================================
   14c. Product List View Mode (PORTO-012)
   =================================================================== */

/* List mode: single column, horizontal card layout */
.pt-product-grid--list {
    grid-template-columns: 1fr;
}

.pt-product-grid--list .pt-product-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.pt-product-grid--list .pt-product-card__image {
    width: clamp(160px, 20%, 240px);
    flex-shrink: 0;
}

.pt-product-grid--list .pt-product-card__info {
    flex: 1;
    padding-top: 5px;
}

.pt-product-grid--list .pt-product-card__name {
    font-size: 1rem;
    margin-bottom: 8px;
}

.pt-product-grid--list .pt-product-card__price {
    font-size: 1.125rem;
    margin-bottom: 10px;
}

/* In list mode, show short description if available (2-line clamp) */
.pt-product-grid--list .pt-product-card__description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.8125rem;
    color: var(--pt-text);
    line-height: 1.6;
    margin-bottom: 12px;
}

/* In grid mode, hide short description */
.pt-product-grid:not(.pt-product-grid--list) .pt-product-card__description {
    display: none;
}

/* In list mode, actions are always visible (no hover reveal) */
.pt-product-grid--list .pt-product-card__actions {
    position: static;
    opacity: 1;
    transform: none;
    display: flex;
    flex-direction: row;
    gap: 6px;
    margin-top: 10px;
}

.pt-product-grid--list .pt-product-card__action {
    background: var(--pt-bg-light);
}

/* In list mode, Add to Cart always visible */
.pt-product-grid--list .pt-product-card__cart {
    display: inline-flex;
}

/* Responsive: list mode → stack on mobile */
@media (max-width: 767px) {
    .pt-product-grid--list .pt-product-card {
        flex-direction: column;
    }

    .pt-product-grid--list .pt-product-card__image {
        width: 100%;
    }
}

/* --- Sidebar Layout (2-column-left) --- */
.pt-category-page .columns {
    display: flex;
    gap: var(--pt-gutter);
}

.pt-category-page .column.main {
    flex: 1;
    min-width: 0;
}

.pt-category-page .sidebar-main {
    width: var(--pt-sidebar-width);
    flex-shrink: 0;
    position: sticky;
    top: calc(var(--pt-header-height) + var(--pt-nav-height) + 20px);
    align-self: flex-start;
    max-height: calc(100vh - var(--pt-header-height) - var(--pt-nav-height) - 40px);
    overflow-y: auto;
}

/* ===================================================================
   14b. Sidebar — Layered Navigation (PORTO-011)
   =================================================================== */

/* --- Sidebar Toggle Button (visible only on mobile) --- */
.pt-sidebar-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    margin-bottom: 15px;
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius-sm);
    background: #fff;
    color: var(--pt-text-dark);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color var(--pt-transition), color var(--pt-transition);
}

.pt-sidebar-toggle:hover {
    border-color: var(--pt-primary);
    color: var(--pt-primary);
}

.pt-sidebar-toggle:focus-visible {
    outline: 2px solid var(--pt-primary);
    outline-offset: 2px;
}

.pt-sidebar-toggle svg {
    flex-shrink: 0;
}

/* --- Filter Block --- */
/* Visually hide "Shop By" heading but keep accessible for screen readers */
.pt-category-page .sidebar-main .block-title {
    clip: rect(0, 0, 0, 0);
    border: 0;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.pt-category-page .sidebar-main .filter-options-item {
    border-bottom: 1px solid var(--pt-border-light);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.pt-category-page .sidebar-main .filter-options-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Filter section headings */
.pt-category-page .sidebar-main .filter-options-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--pt-font-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--pt-heading);
    cursor: pointer;
    padding: 0;
    margin: 0 0 12px;
    letter-spacing: 0.5px;
    user-select: none;
}

.pt-category-page .sidebar-main .filter-options-title::after {
    content: '';
    width: 10px;
    height: 10px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23777'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    transition: transform var(--pt-transition);
}

.pt-category-page .sidebar-main .filter-options-title.pt-filter--collapsed::after {
    transform: rotate(-90deg);
}

.pt-category-page .sidebar-main .filter-options-title:focus-visible {
    outline: 2px solid var(--pt-primary);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Filter items list */
.pt-category-page .sidebar-main .filter-options-content .items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pt-category-page .sidebar-main .filter-options-content .item {
    margin-bottom: 6px;
}

.pt-category-page .sidebar-main .filter-options-content .item a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--pt-text);
    text-decoration: none;
    padding: 3px 0;
    transition: color var(--pt-transition);
}

.pt-category-page .sidebar-main .filter-options-content .item a:hover {
    color: var(--pt-primary);
}

/* Filter count in parentheses */
.pt-category-page .sidebar-main .filter-options-content .count {
    color: var(--pt-text-light);
    font-size: 12px;
    margin-left: auto;
}

/* Active filter item */
.pt-category-page .sidebar-main .filter-options-content .item a.active,
.pt-category-page .sidebar-main .filter-options-content .item.active a {
    color: var(--pt-primary);
    font-weight: 600;
}

/* --- Swatch filters (color, size) --- */
.pt-category-page .sidebar-main .swatch-option {
    min-width: 28px;
    min-height: 28px;
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius-sm);
    cursor: pointer;
    transition: border-color var(--pt-transition), box-shadow var(--pt-transition);
}

.pt-category-page .sidebar-main .swatch-option:hover {
    border-color: var(--pt-primary);
}

.pt-category-page .sidebar-main .swatch-option.selected {
    border-color: var(--pt-primary);
    box-shadow: 0 0 0 2px var(--pt-primary-light);
}

/* --- Price slider (Magento native) --- */
.pt-category-page .sidebar-main .price-slider {
    margin: 10px 0;
}

.pt-category-page .sidebar-main input[type="range"] {
    width: 100%;
    accent-color: var(--pt-primary);
}

/* --- Clear All / Active Filters --- */
.pt-category-page .sidebar-main .filter-current {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--pt-border-light);
}

.pt-category-page .sidebar-main .filter-current .items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pt-category-page .sidebar-main .filter-current .item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--pt-text);
    padding: 4px 0;
}

.pt-category-page .sidebar-main .filter-current .filter-label {
    font-weight: 600;
    color: var(--pt-text-dark);
    margin-right: 4px;
}

.pt-category-page .sidebar-main .filter-current .action.remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: var(--pt-text-light);
    font-size: 16px;
    text-decoration: none;
    border-radius: 50%;
    transition: color var(--pt-transition), background var(--pt-transition);
}

.pt-category-page .sidebar-main .filter-current .action.remove:hover {
    color: #fff;
    background: var(--pt-danger);
}

.pt-category-page .sidebar-main .filter-actions {
    margin-top: 8px;
}

.pt-category-page .sidebar-main .filter-actions a {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--pt-primary);
    text-decoration: none;
    transition: color var(--pt-transition);
}

.pt-category-page .sidebar-main .filter-actions a:hover {
    color: var(--pt-primary-dark);
}

/* --- Category tree in sidebar --- */
.pt-category-page .sidebar-main .block-category-navigation .items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pt-category-page .sidebar-main .block-category-navigation .item {
    margin-bottom: 4px;
}

.pt-category-page .sidebar-main .block-category-navigation .item a {
    display: block;
    font-size: 13px;
    color: var(--pt-text);
    text-decoration: none;
    padding: 5px 0;
    transition: color var(--pt-transition);
}

.pt-category-page .sidebar-main .block-category-navigation .item a:hover,
.pt-category-page .sidebar-main .block-category-navigation .item.active > a {
    color: var(--pt-primary);
    font-weight: 600;
}

.pt-category-page .sidebar-main .block-category-navigation .items .items {
    padding-left: 15px;
}

/* --- Responsive: Category Page --- */
@media (max-width: 1199px) {
    .pt-grid--cols-5,
    .pt-grid--cols-6 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 991px) {
    .pt-category-page .columns {
        flex-direction: column;
    }

    /* Sidebar: hidden by default on mobile, revealed by toggle button */
    .pt-sidebar-toggle {
        display: flex;
    }

    .pt-category-page .sidebar-main {
        display: none;
        width: 100%;
        margin-bottom: 20px;
        position: static;
        border: 1px solid var(--pt-border);
        border-radius: var(--pt-radius-sm);
        padding: 15px;
        background: #fff;
    }

    .pt-category-page .sidebar-main.pt-sidebar--open {
        display: block;
    }

    .pt-grid--cols-4,
    .pt-grid--cols-5,
    .pt-grid--cols-6 {
        grid-template-columns: repeat(3, 1fr);
    }

    .pt-category-banner__title {
        font-size: 24px;
    }
}

@media (max-width: 767px) {
    .pt-grid--cols-3,
    .pt-grid--cols-4,
    .pt-grid--cols-5,
    .pt-grid--cols-6 {
        grid-template-columns: repeat(2, 1fr);
    }

    .pt-category-banner {
        height: 200px;
    }

    .pt-category-banner__title {
        font-size: 20px;
        letter-spacing: 1px;
    }

    .pt-category-page .toolbar-products {
        flex-direction: column;
        align-items: flex-start;
    }

    .pt-category-page .toolbar-products .modes {
        display: none;
    }
}

@media (max-width: 479px) {
    .pt-grid--cols-2,
    .pt-grid--cols-3,
    .pt-grid--cols-4,
    .pt-grid--cols-5,
    .pt-grid--cols-6 {
        grid-template-columns: 1fr;
    }

    .pt-category-banner__title {
        font-size: 16px;
    }
}

/* ===================================================================
   15. Product Detail Page — Type 1 Default (PORTO-013)
   =================================================================== */

/* --- Main layout: 55% gallery / 45% info --- */
.pt-product-page .product-info-main,
.pt-product-page .product.media {
    float: none;
    width: auto;
}

.pt-product-page .columns .column.main {
    display: grid;
    grid-template-columns: 11fr 9fr;
    gap: 0 30px;
    align-items: start;
    padding-bottom: 0;
}

.pt-product-page .product.media {
    grid-column: 1;
    grid-row: 1;
    position: relative;
}

/* PDP badges — overlaid on gallery top-left */
.pt-pdp-badges {
    position: absolute;
    top: 10px;
    inset-inline-start: 10px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 5px;
    pointer-events: none;
}

.pt-product-page .product-info-main {
    grid-column: 2;
    grid-row: 1;
    padding-top: 0;
}

.pt-product-page .product.info.detailed,
.pt-product-page .block.related,
.pt-product-page .block.upsell,
.pt-product-page .block.crosssell {
    grid-column: 1 / -1;
}

/* --- Gallery (Fotorama overrides) --- */
.pt-product-page .fotorama__stage {
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius);
    overflow: hidden;
}

.pt-product-page .fotorama__thumb-border {
    border-color: var(--pt-primary);
}

.pt-product-page .fotorama__nav--thumbs {
    margin-top: 10px;
}

.pt-product-page .fotorama__nav__frame--thumb {
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius-sm);
    overflow: hidden;
    opacity: 0.7;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.pt-product-page .fotorama__nav__frame--thumb:hover,
.pt-product-page .fotorama__active .fotorama__nav__frame--thumb {
    opacity: 1;
    border-color: var(--pt-primary);
}

/* --- Product name --- */
.pt-product-page .page-title-wrapper.product {
    margin-bottom: 8px;
}

.pt-product-page .page-title-wrapper.product .page-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

/* --- Rating + reviews --- */
.pt-product-page .product-reviews-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.pt-product-page .product-reviews-summary .rating-summary {
    display: flex;
    align-items: center;
}

.pt-product-page .product-reviews-summary .reviews-actions a {
    color: var(--pt-text-light);
    font-size: 0.8125rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.pt-product-page .product-reviews-summary .reviews-actions a:hover {
    color: var(--pt-primary);
}

/* --- Price block --- */
.pt-product-page .product-info-price {
    margin-bottom: 15px;
}

.pt-product-page .product-info-price .price-box {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.pt-product-page .product-info-price .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pt-heading);
}

.pt-product-page .product-info-price .special-price .price {
    color: var(--pt-primary);
}

.pt-product-page .product-info-price .old-price .price {
    font-size: 1rem;
    font-weight: 400;
    color: var(--pt-text-light);
    text-decoration: line-through;
}

/* --- Short description --- */
.pt-product-page .product.attribute.overview {
    margin-bottom: 20px;
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--pt-text);
}

/* --- Configurable options / swatches --- */
.pt-product-page .product-options-wrapper {
    margin-bottom: 20px;
}

.pt-product-page .swatch-attribute {
    margin-bottom: 12px;
}

.pt-product-page .swatch-attribute-label {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 6px;
}

.pt-product-page .swatch-option {
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.pt-product-page .swatch-option:hover {
    border-color: var(--pt-primary);
}

.pt-product-page .swatch-option.selected {
    border-color: var(--pt-primary);
    box-shadow: 0 0 0 1px var(--pt-primary);
}

.pt-product-page .swatch-option.text {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    padding: 0 10px;
}

.pt-product-page .swatch-option.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* --- Quantity selector (Porto style) --- */
.pt-addtocart {
    margin-bottom: 20px;
}

.pt-addtocart__qty {
    margin-bottom: 15px;
}

.pt-addtocart__qty-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--pt-heading);
}

.pt-addtocart__qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius);
    overflow: hidden;
}

.pt-addtocart__qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--pt-bg-light);
    border: 0;
    cursor: pointer;
    color: var(--pt-text);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.pt-addtocart__qty-btn:hover {
    background: var(--pt-border);
    color: var(--pt-heading);
}

.pt-addtocart__qty-btn:focus-visible {
    outline: 2px solid var(--pt-primary);
    outline-offset: -2px;
}

.pt-addtocart__qty-input {
    width: 50px;
    height: 40px;
    border: 0;
    border-left: 1px solid var(--pt-border);
    border-right: 1px solid var(--pt-border);
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    background-color: var(--pt-bg);
    color: var(--pt-heading);
    -moz-appearance: textfield;
}

.pt-addtocart__qty-input::-webkit-inner-spin-button,
.pt-addtocart__qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pt-addtocart__qty-input:focus-visible {
    outline: 2px solid var(--pt-primary);
    outline-offset: -2px;
}

/* --- Add to Cart button --- */
.pt-addtocart__submit {
    width: 100%;
    height: 48px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* --- Secondary actions: Wishlist, Compare, Email --- */
.pt-product-page .product-social-links,
.pt-product-page .product-addto-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--pt-border);
}

.pt-product-page .product-addto-links .action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8125rem;
    color: var(--pt-text-light);
    text-decoration: none;
    transition: color 0.2s ease;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0;
}

.pt-product-page .product-addto-links .action:hover {
    color: var(--pt-primary);
}

.pt-product-page .product-addto-links .action:focus-visible {
    outline: 2px solid var(--pt-primary);
    outline-offset: 2px;
}

/* --- SKU & availability --- */
.pt-product-page .product.attribute.sku {
    font-size: 0.8125rem;
    color: var(--pt-text-light);
    margin-top: 15px;
}

.pt-product-page .product.attribute.sku .value {
    font-weight: 600;
}

.pt-product-page .stock {
    font-size: 0.8125rem;
    font-weight: 600;
    margin-top: 5px;
}

.pt-product-page .stock.available {
    color: var(--pt-success);
}

.pt-product-page .stock.unavailable {
    color: var(--pt-danger);
}

/* --- Product tabs (basic structure, full impl in PORTO-017) --- */
.pt-product-page .product.info.detailed {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--pt-border);
}

.pt-product-page .product.data.items > .item.title {
    display: inline-block;
    margin-right: -1px;
}

.pt-product-page .product.data.items > .item.title > .switch {
    display: inline-block;
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--pt-text-light);
    text-decoration: none;
    border: 1px solid var(--pt-border);
    border-bottom: 0;
    background: var(--pt-bg-light);
    transition: color 0.2s ease, background-color 0.2s ease;
}

.pt-product-page .product.data.items > .item.title > .switch:hover {
    color: var(--pt-heading);
}

.pt-product-page .product.data.items > .item.title > .switch:focus-visible {
    outline: 2px solid var(--pt-primary);
    outline-offset: -2px;
}

.pt-product-page .product.data.items > .item.title.active > .switch {
    color: var(--pt-heading);
    background: var(--pt-bg);
    border-bottom-color: var(--pt-bg);
}

.pt-product-page .product.data.items > .item.content {
    padding: 20px;
    border: 1px solid var(--pt-border);
    font-size: 0.875rem;
    line-height: 1.7;
}

/* Additional info table */
.pt-product-page .additional-attributes {
    width: 100%;
    border-collapse: collapse;
}

.pt-product-page .additional-attributes th,
.pt-product-page .additional-attributes td {
    padding: 10px 15px;
    border-bottom: 1px solid var(--pt-border);
    font-size: 0.875rem;
    text-align: left;
}

.pt-product-page .additional-attributes th {
    font-weight: 600;
    color: var(--pt-heading);
    width: 30%;
}

/* --- Related / Upsell products --- */
.pt-product-page .block.related,
.pt-product-page .block.upsell {
    margin-top: 40px;
}

.pt-product-page .block.related .block-title,
.pt-product-page .block.upsell .block-title,
.pt-related-section .block-title {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--pt-primary);
}

.pt-related-section .block-title h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

/* Crosssell section (cart page) */
.pt-related-section {
    margin-top: 40px;
}

/* Swiper carousel inside related/upsell/crosssell */
.pt-related-carousel {
    position: relative;
    padding: 0 40px;
    overflow: hidden;
}

.pt-related-carousel .swiper-button-prev,
.pt-related-carousel .swiper-button-next {
    width: 32px;
    height: 32px;
    background: var(--pt-bg);
    border: 1px solid var(--pt-border);
    border-radius: 50%;
    color: var(--pt-text);
    transition: background-color var(--pt-transition), border-color var(--pt-transition);
}

.pt-related-carousel .swiper-button-prev::after,
.pt-related-carousel .swiper-button-next::after {
    font-size: 12px;
    font-weight: 700;
}

.pt-related-carousel .swiper-button-prev:hover,
.pt-related-carousel .swiper-button-next:hover {
    background: var(--pt-primary);
    border-color: var(--pt-primary);
    color: #fff;
}

.pt-related-carousel .swiper-button-prev {
    left: 0;
}

.pt-related-carousel .swiper-button-next {
    right: 0;
}

/* Compact card variant for carousels */
.pt-product-card--compact .pt-product-card__info {
    padding: 10px 12px;
}

.pt-product-card--compact .pt-product-card__name {
    font-size: 13px;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 767px) {
    .pt-related-carousel {
        padding: 0 30px;
    }
}

/* --- Responsive: stack on mobile --- */
@media (max-width: 991px) {
    .pt-product-page .columns .column.main {
        grid-template-columns: 1fr;
        gap: 20px 0;
    }

    .pt-product-page .product.media,
    .pt-product-page .product-info-main {
        grid-column: 1;
    }

    .pt-product-page .product-info-main {
        grid-row: auto;
    }
}

@media (max-width: 767px) {
    .pt-product-page .page-title-wrapper.product .page-title {
        font-size: 1.25rem;
    }

    .pt-product-page .product-info-price .price {
        font-size: 1.25rem;
    }

    .pt-product-page .product.info.detailed {
        margin-top: 25px;
        padding-top: 20px;
    }

    .pt-product-page .product.data.items > .item.title > .switch {
        padding: 8px 12px;
        font-size: 0.8125rem;
    }

    .pt-product-page .product.data.items > .item.content {
        padding: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pt-product-page .fotorama__nav__frame--thumb,
    .pt-product-page .product-reviews-summary .reviews-actions a,
    .pt-product-page .swatch-option,
    .pt-addtocart__qty-btn,
    .pt-product-page .product-addto-links .action,
    .pt-product-page .product.data.items > .item.title > .switch {
        transition: none;
    }
}

/* ================================================================
   16. PRODUCT PAGE TYPE 2 — FULL WIDTH  (PORTO-014)
   ================================================================
   Modifier: .pt-product-page--fullwidth
   Wider container (1600px) and 60 / 40 gallery-info split.
   All base Type 1 styles apply; only overrides listed here.
   ================================================================ */

/* --- Wider container --- */
.pt-product-page--fullwidth .page-main {
    max-width: var(--pt-container-wide);
    margin-inline: auto;
    padding-inline: var(--pt-gutter);
}

/* --- 60 / 40 column ratio (3fr 2fr avoids gap overflow) --- */
.pt-product-page--fullwidth .columns .column.main {
    grid-template-columns: 3fr 2fr;
}

/* --- Tabs + related blocks span full grid width --- */
.pt-product-page--fullwidth .product.info.detailed,
.pt-product-page--fullwidth .block.related,
.pt-product-page--fullwidth .block.upsell,
.pt-product-page--fullwidth .block.crosssell {
    grid-column: 1 / -1;
}

/* prefers-reduced-motion is inherited from base .pt-product-page (Section 15) */

/* --- Mid-range: revert to Type 1 ratio on laptops --- */
@media (max-width: 1400px) {
    .pt-product-page--fullwidth .columns .column.main {
        grid-template-columns: 11fr 9fr;
    }
}

/* --- Mobile: single-column stack --- */
@media (max-width: 991px) {
    .pt-product-page--fullwidth .page-main {
        max-width: 100%;
    }

    .pt-product-page--fullwidth .columns .column.main {
        grid-template-columns: 1fr;
    }
}

/* ================================================================
   17. PRODUCT PAGE TYPE 3 — STICKY RIGHT INFO  (PORTO-015)
   ================================================================
   Modifier: .pt-product-page--sticky
   Gallery shows all images stacked; info column is position: sticky.
   When info is taller than viewport the JS widget adds
   .pt-product-info--overflow to disable sticky.
   ================================================================ */

/*
 * Sticky requires no overflow: hidden/auto on ancestors.
 * Magento Luma may set overflow on .column.main; override here.
 */
.pt-product-page--sticky .columns .column.main {
    overflow: visible;
}

/* --- Info column sticks below the header --- */
.pt-product-page--sticky .product-info-main {
    position: sticky;
    top: calc(var(--pt-header-height) + var(--pt-nav-height) + 20px);
    align-self: start;
    max-height: calc(100vh - var(--pt-header-height) - var(--pt-nav-height) - 40px);
    overflow-y: auto;
}

/* --- Disable sticky when info overflows viewport (set by JS) --- */
.pt-product-page--sticky .product-info-main.pt-product-info--overflow {
    position: static;
    max-height: none;
    overflow-y: visible;
}

/* --- Gallery: show all images stacked, hide Fotorama nav ---
 * Fotorama sets inline height via JS, so !important is needed.
 */
.pt-product-page--sticky .fotorama__nav-wrap {
    display: none !important;
}

.pt-product-page--sticky .fotorama__stage {
    max-height: none !important;
    height: auto !important;
}

/* --- Tabs + blocks span full grid width --- */
.pt-product-page--sticky .product.info.detailed,
.pt-product-page--sticky .block.related,
.pt-product-page--sticky .block.upsell,
.pt-product-page--sticky .block.crosssell {
    grid-column: 1 / -1;
}

/* --- Responsive: no sticky on mobile --- */
@media (max-width: 991px) {
    .pt-product-page--sticky .columns .column.main {
        overflow: visible;
        grid-template-columns: 1fr;
    }

    .pt-product-page--sticky .product-info-main {
        position: static;
        max-height: none;
        overflow-y: visible;
    }

    .pt-product-page--sticky .fotorama__nav-wrap {
        display: block !important;
    }

    .pt-product-page--sticky .fotorama__stage {
        max-height: 600px !important;
        height: auto !important;
    }
}

/* ================================================================
   18. PRODUCT PAGE TYPE 4 — VERTICAL THUMBNAILS  (PORTO-016)
   ================================================================
   Modifier: .pt-product-page--vertical-thumbs
   Repositions Fotorama's thumbnail navigation to a vertical strip
   on the left side of the main image.  80px wide, scrollable if
   more than ~5 thumbnails.

   Fotorama sets inline styles (height, width, transform) via JS.
   !important overrides are required where we fight inline styles.
   Mobile (<992px): falls back to default horizontal thumbnails.

   prefers-reduced-motion inherited from base Section 15.
   ================================================================ */

/* --- Gallery container: relative for absolute nav strip --- */
.pt-product-page--vertical-thumbs .product.media .fotorama-item,
.pt-product-page--vertical-thumbs .product.media .fotorama {
    position: relative;
}

/* --- Thumbnail nav: vertical strip on the left ---
 * Uses max-height instead of bottom: 0 because the Fotorama
 * wrapper may not have an explicit height set by JS.
 */
.pt-product-page--vertical-thumbs .fotorama__nav-wrap {
    position: absolute !important;
    inset-inline-start: 0;
    top: 0;
    width: 80px;
    max-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--pt-border) transparent;
}

/* --- Thumbnail frames: fixed 80x80, stacked by block flow ---
 * Avoid flexbox on .fotorama__nav to not break Fotorama's
 * translate3d coordinate system for scroll/animation.
 */
.pt-product-page--vertical-thumbs .fotorama__nav {
    width: 80px !important;
}

.pt-product-page--vertical-thumbs .fotorama__nav__frame--thumb {
    display: block !important;
    width: 80px !important;
    height: 80px !important;
    margin-bottom: 6px;
}

/* --- Main image: offset by thumbnail column + 10px gutter ---
 * Both margin and width must be overridden because Fotorama
 * calculates stage width from container width via inline styles.
 */
.pt-product-page--vertical-thumbs .fotorama__stage {
    margin-inline-start: 90px !important;
    width: calc(100% - 90px) !important;
}

/* Shift PDP badges past the thumbnail strip */
.pt-product-page--vertical-thumbs .pt-pdp-badges {
    inset-inline-start: 100px;
}

/* --- Hide Fotorama's horizontal nav arrows --- */
.pt-product-page--vertical-thumbs .fotorama__nav .fotorama__arr {
    display: none;
}

/* --- Scrollbar: Webkit (Chrome/Safari) --- */
.pt-product-page--vertical-thumbs .fotorama__nav-wrap::-webkit-scrollbar {
    width: 3px;
}

.pt-product-page--vertical-thumbs .fotorama__nav-wrap::-webkit-scrollbar-track {
    background-color: transparent;
}

.pt-product-page--vertical-thumbs .fotorama__nav-wrap::-webkit-scrollbar-thumb {
    background-color: var(--pt-border);
    border-radius: 3px;
}

/* --- Tabs + blocks span full grid width --- */
.pt-product-page--vertical-thumbs .product.info.detailed,
.pt-product-page--vertical-thumbs .block.related,
.pt-product-page--vertical-thumbs .block.upsell,
.pt-product-page--vertical-thumbs .block.crosssell {
    grid-column: 1 / -1;
}

/* --- Responsive: revert to horizontal thumbnails on mobile --- */
@media (max-width: 991px) {
    .pt-product-page--vertical-thumbs .fotorama__nav-wrap {
        position: static !important;
        width: auto;
        max-height: none;
        overflow-y: hidden;
        overflow-x: auto;
        scrollbar-width: auto;
        scrollbar-color: auto;
    }

    .pt-product-page--vertical-thumbs .fotorama__nav {
        display: block !important;
        width: auto !important;
    }

    .pt-product-page--vertical-thumbs .fotorama__nav__frame--thumb {
        display: inline-block !important;
        margin-bottom: 0;
    }

    .pt-product-page--vertical-thumbs .fotorama__stage {
        margin-inline-start: 0 !important;
        width: 100% !important;
    }
}

/* ================================================================
   19. PRODUCT TABS — 4 STYLES  (PORTO-017)
   ================================================================
   Modifier classes on .product.info.detailed:
     .pt-tabs--horizontal  — row of tabs (default, extends Section 15)
     .pt-tabs--vertical    — tabs stacked left (200px), content right
     .pt-tabs--accordion   — collapsible panels, one open at a time
     .pt-tabs--sticky      — tab bar sticks below header, scroll spy
   Applied via ptProductTabs JS widget or admin ThemeConfig.
   ================================================================ */

/* ---------------------------------------------------------------
   19a. Horizontal (default) — additional polish over Section 15
   --------------------------------------------------------------- */
.pt-tabs--horizontal .product.data.items {
    border-bottom: 1px solid var(--pt-border);
}

.pt-tabs--horizontal .product.data.items > .item.title.active > .switch {
    border-bottom: 2px solid var(--pt-primary);
    margin-bottom: -1px;
}

/* ---------------------------------------------------------------
   19b. Vertical — tabs on the left, content on the right
   --------------------------------------------------------------- */
.pt-tabs--vertical .product.data.items {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 0;
    border: 1px solid var(--pt-border);
}

.pt-tabs--vertical .product.data.items > .item.title {
    display: block;
    grid-column: 1;
    margin-right: 0;
    border-bottom: 1px solid var(--pt-border);
}

.pt-tabs--vertical .product.data.items > .item.title > .switch {
    display: block;
    border: 0;
    border-inline-start: 3px solid transparent;
    background: var(--pt-bg-light);
    padding: 12px 16px;
}

.pt-tabs--vertical .product.data.items > .item.title.active > .switch {
    border-inline-start-color: var(--pt-primary);
    background: var(--pt-bg);
    color: var(--pt-heading);
}

.pt-tabs--vertical .product.data.items > .item.content {
    grid-column: 2;
    grid-row: 1 / -1;
    border: 0;
    border-inline-start: 1px solid var(--pt-border);
    padding: 20px;
}

/* ---------------------------------------------------------------
   19c. Accordion — collapsible panels
   --------------------------------------------------------------- */
.pt-tabs--accordion .product.data.items > .item.title {
    display: block;
    margin-right: 0;
}

.pt-tabs--accordion .product.data.items > .item.title > .switch {
    display: block;
    border: 1px solid var(--pt-border);
    border-bottom: 0;
    padding: 12px 16px;
    padding-inline-end: 40px;
    position: relative;
    cursor: pointer;
}

/* Chevron indicator */
.pt-tabs--accordion .product.data.items > .item.title > .switch::after {
    content: '';
    position: absolute;
    inset-inline-end: 16px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-inline-end: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.2s ease;
}

.pt-tabs--accordion .product.data.items > .item.title.active > .switch::after {
    transform: translateY(-30%) rotate(-135deg);
}

.pt-tabs--accordion .product.data.items > .item.title.active > .switch {
    background: var(--pt-bg);
    border-bottom: 0;
}

.pt-tabs--accordion .product.data.items > .item.content {
    border: 1px solid var(--pt-border);
    border-top: 0;
    margin-bottom: 0;
}

/* Last panel: bottom border */
.pt-tabs--accordion .product.data.items > .item.title:last-child > .switch,
.pt-tabs--accordion .product.data.items > .item.content:last-child {
    border-bottom: 1px solid var(--pt-border);
}

/* ---------------------------------------------------------------
   19d. Sticky — JS-generated clone bar (pt-tabs__sticky-bar)
   --------------------------------------------------------------- */
.pt-tabs--sticky .product.data.items {
    border-bottom: 1px solid var(--pt-border);
}

.pt-tabs--sticky .product.data.items > .item.title.active > .switch {
    border-bottom: 2px solid var(--pt-primary);
    margin-bottom: -1px;
}

/* Cloned sticky bar appended to <body> by ptProductTabs widget */
.pt-tabs__sticky-bar {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.pt-tabs__sticky-bar .switch {
    display: inline-block;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--pt-text);
    font-weight: 600;
    font-size: 0.875rem;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.pt-tabs__sticky-bar .switch:hover {
    color: var(--pt-primary);
}

.pt-tabs__sticky-bar .switch.active {
    color: var(--pt-primary);
    border-bottom-color: var(--pt-primary);
}

/* ---------------------------------------------------------------
   19e. Responsive — accordion fallback on mobile
   --------------------------------------------------------------- */
@media (max-width: 767px) {
    /* Vertical tabs collapse to single column on mobile */
    .pt-tabs--vertical .product.data.items {
        grid-template-columns: 1fr;
    }

    .pt-tabs--vertical .product.data.items > .item.content {
        grid-column: 1;
        grid-row: auto;
        border-inline-start: 0;
        border-top: 1px solid var(--pt-border);
    }

    /* Sticky bar hidden on small screens */
    .pt-tabs__sticky-bar {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pt-tabs--accordion .product.data.items > .item.title > .switch::after,
    .pt-tabs__sticky-bar .switch {
        transition: none;
    }
}

/* ===================================================================
   20. FILTER PRODUCTS — WIDGET DISPLAY MODES  (PORTO-030)
   ===================================================================
   Styles for the EcommPaaS_FilterProducts module templates:
   carousel, grid, sidebar list, compact list.
   =================================================================== */

/* ---------------------------------------------------------------
   20a. Shared
   --------------------------------------------------------------- */
.pt-filter-products {
    margin-bottom: 40px;
}

/* ---------------------------------------------------------------
   20b. Grid display — configurable columns via CSS custom property
   --------------------------------------------------------------- */
.pt-filter-grid {
    display: grid;
    grid-template-columns: repeat(var(--pt-grid-cols, 4), 1fr);
    gap: 20px;
}

@media (max-width: 991px) {
    .pt-filter-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .pt-filter-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 479px) {
    .pt-filter-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------------------------------------------------------------
   20c. Carousel — overflow & nav
   --------------------------------------------------------------- */
.pt-product-carousel {
    overflow: hidden;
    position: relative;
    padding-bottom: 10px;
}

.pt-product-carousel .swiper-button-prev,
.pt-product-carousel .swiper-button-next {
    position: absolute;
    top: 35%;
    z-index: 10;
    width: 36px;
    height: 36px;
    background: var(--pt-white, #fff);
    border: 1px solid var(--pt-border, #e0e0e0);
    border-radius: 50%;
    color: var(--pt-text, #333);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.pt-product-carousel:hover .swiper-button-prev,
.pt-product-carousel:hover .swiper-button-next,
.pt-product-carousel:focus-within .swiper-button-prev,
.pt-product-carousel:focus-within .swiper-button-next {
    opacity: 1;
}

.pt-product-carousel .swiper-button-prev {
    left: 5px;
}

.pt-product-carousel .swiper-button-next {
    right: 5px;
}

.pt-product-carousel .swiper-button-prev:hover,
.pt-product-carousel .swiper-button-next:hover {
    background: var(--pt-primary, #2879fe);
    border-color: var(--pt-primary, #2879fe);
    color: #fff;
}

.pt-product-carousel .swiper-button-prev::after,
.pt-product-carousel .swiper-button-next::after {
    font-size: 14px;
}

/* ---------------------------------------------------------------
   20d. Sidebar list
   --------------------------------------------------------------- */
.pt-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pt-sidebar-list__item {
    border-bottom: 1px solid var(--pt-border, #e0e0e0);
}

.pt-sidebar-list__item:last-child {
    border-bottom: 0;
}

.pt-sidebar-list__link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    text-decoration: none;
    color: inherit;
}

.pt-sidebar-list__link:hover {
    text-decoration: none;
}

.pt-sidebar-list__link:hover .pt-sidebar-list__name {
    color: var(--pt-primary, #2879fe);
}

.pt-sidebar-list__image {
    flex-shrink: 0;
    width: 80px;
}

.pt-sidebar-list__image img {
    width: 100%;
    height: auto;
    display: block;
}

.pt-sidebar-list__info {
    flex: 1;
    min-width: 0;
}

.pt-sidebar-list__name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@supports (-webkit-line-clamp: 2) {
    .pt-sidebar-list__name {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        white-space: normal;
    }
}

.pt-sidebar-list__price {
    font-size: 14px;
    margin-top: 4px;
}

.pt-sidebar-list__price .price {
    font-weight: 700;
    color: var(--pt-primary, #2879fe);
}

/* Small stars for sidebar */
.pt-product-card__stars--sm {
    width: 60px;
    height: 10px;
}

/* ---------------------------------------------------------------
   20e. Compact list
   --------------------------------------------------------------- */
.pt-compact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pt-compact-list__item {
    border-bottom: 1px solid var(--pt-border, #e0e0e0);
}

.pt-compact-list__item:last-child {
    border-bottom: 0;
}

.pt-compact-list__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    text-decoration: none;
    color: inherit;
}

.pt-compact-list__link:hover {
    text-decoration: none;
}

.pt-compact-list__link:hover .pt-compact-list__name {
    color: var(--pt-primary, #2879fe);
}

.pt-compact-list__image {
    flex-shrink: 0;
    width: 50px;
}

.pt-compact-list__image img {
    width: 100%;
    height: auto;
    display: block;
}

.pt-compact-list__info {
    flex: 1;
    min-width: 0;
}

.pt-compact-list__name {
    display: block;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pt-compact-list__price {
    font-size: 13px;
    margin-top: 2px;
}

.pt-compact-list__price .price {
    font-weight: 700;
    color: var(--pt-primary, #2879fe);
}

/* ===================================================================
   21. MEGA MENU — DROPDOWN STYLES  (PORTO-031)
   ===================================================================
   Works alongside mega-menu.js (PORTO-004). The JS adds is-open /
   is-active classes; CSS handles all layout and visual appearance.
   =================================================================== */

/* ---------------------------------------------------------------
   21a. Navigation container
   --------------------------------------------------------------- */
.pt-megamenu {
    position: relative;
}

.pt-nav__list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.pt-nav__item {
    position: relative;
}

.pt-nav__link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    height: var(--pt-nav-height, 48px);
    font-size: 14px;
    font-weight: 600;
    color: var(--pt-text, #333);
    text-decoration: none;
    white-space: nowrap;
    background: none;
    border: 0;
    cursor: pointer;
    transition: color 0.15s ease;
}

.pt-nav__link:hover,
.pt-nav__item.is-active > .pt-nav__link {
    color: var(--pt-primary, #2879fe);
}

.pt-nav__link--dropdown::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 4px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform 0.15s ease;
}

.pt-nav__item.is-active > .pt-nav__link--dropdown::after {
    transform: rotate(180deg);
}

/* ---------------------------------------------------------------
   21b. Dropdown containers
   --------------------------------------------------------------- */
.pt-megamenu__dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    background: var(--pt-white, #fff);
    border: 1px solid var(--pt-border, #e0e0e0);
    border-top: 3px solid var(--pt-primary, #2879fe);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    min-width: 200px;
}

.pt-megamenu__dropdown.is-open {
    display: block;
}

/* Full-width dropdown */
.pt-megamenu__dropdown--fullwidth {
    left: 0;
    right: 0;
    width: 100%;
}

/* Static/fixed-width dropdown — width set via data-width or CSS var */
.pt-megamenu__dropdown--static {
    /* width is set inline by JS from data-width attribute */
}

/* Classic dropdown */
.pt-megamenu__dropdown--classic {
    min-width: 220px;
}

/* ---------------------------------------------------------------
   21c. Classic dropdown — simple list
   --------------------------------------------------------------- */
.pt-megamenu__dropdown--classic ul {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.pt-megamenu__dropdown--classic ul li {
    position: relative;
}

.pt-megamenu__dropdown--classic ul a {
    display: block;
    padding: 8px 20px;
    font-size: 14px;
    color: var(--pt-text, #333);
    text-decoration: none;
    transition: background 0.1s ease, color 0.1s ease;
}

.pt-megamenu__dropdown--classic ul a:hover {
    background: var(--pt-bg-light, #f5f5f5);
    color: var(--pt-primary, #2879fe);
}

/* Nested list inside classic */
.pt-megamenu__dropdown--classic ul ul {
    position: absolute;
    top: 0;
    left: 100%;
    display: none;
    min-width: 200px;
    background: var(--pt-white, #fff);
    border: 1px solid var(--pt-border, #e0e0e0);
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.1);
}

.pt-megamenu__dropdown--classic ul li:hover > ul {
    display: block;
}

/* ---------------------------------------------------------------
   21d. Column layout — fullwidth / static types
   --------------------------------------------------------------- */
.pt-megamenu__top {
    padding: 16px 20px;
    border-bottom: 1px solid var(--pt-border, #e0e0e0);
}

.pt-megamenu__content {
    display: flex;
    padding: 20px;
    gap: 20px;
}

.pt-megamenu__aside {
    flex-shrink: 0;
    width: 200px;
}

.pt-megamenu__columns {
    display: flex;
    flex: 1;
    gap: 16px;
    flex-wrap: wrap;
}

.pt-megamenu__column {
    flex: 1;
    min-width: 140px;
}

.pt-megamenu__column-title {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--pt-border, #e0e0e0);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pt-megamenu__column-title a {
    color: var(--pt-text, #333);
    text-decoration: none;
}

.pt-megamenu__column-title a:hover {
    color: var(--pt-primary, #2879fe);
}

.pt-megamenu__links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pt-megamenu__links a {
    font-size: 13px;
    color: var(--pt-text-muted, #666);
    text-decoration: none;
    transition: color 0.15s ease;
}

.pt-megamenu__links a:hover {
    color: var(--pt-primary, #2879fe);
}

/* ---------------------------------------------------------------
   21e. Category icon
   --------------------------------------------------------------- */
.pt-nav__icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

/* ---------------------------------------------------------------
   21f. Label badges (new / hot / sale)
   --------------------------------------------------------------- */
.pt-megamenu__label {
    display: inline-block;
    padding: 1px 5px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border-radius: 2px;
    line-height: 1.4;
    vertical-align: middle;
    color: #fff;
}

.pt-megamenu__label--new  { background: #4caf50; }
.pt-megamenu__label--hot  { background: #f44336; }
.pt-megamenu__label--sale { background: var(--pt-primary, #2879fe); }

/* ---------------------------------------------------------------
   21g. Mobile — off-canvas panel (managed by mega-menu.js)
   --------------------------------------------------------------- */
.pt-megamenu--mobile {
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    width: min(320px, 90vw);
    background: var(--pt-white, #fff);
    z-index: 10000;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
}

.pt-megamenu--mobile.is-open {
    transform: translateX(0);
}

.pt-megamenu--mobile .pt-nav__list {
    flex-direction: column;
}

.pt-megamenu--mobile .pt-nav__item {
    border-bottom: 1px solid var(--pt-border, #e0e0e0);
}

.pt-megamenu--mobile .pt-nav__link {
    height: auto;
    padding: 14px 20px;
    justify-content: space-between;
    font-size: 15px;
}

.pt-megamenu--mobile .pt-megamenu__dropdown {
    position: static;
    border: 0;
    box-shadow: none;
    background: var(--pt-bg-light, #f5f5f5);
    padding: 0;
    min-width: 0;
    width: 100%;
    border-top: 1px solid var(--pt-border, #e0e0e0);
}

.pt-megamenu--mobile .pt-megamenu__content {
    flex-direction: column;
    padding: 12px 20px;
    gap: 12px;
}

.pt-megamenu--mobile .pt-megamenu__columns {
    flex-direction: column;
}

.pt-megamenu--mobile .pt-megamenu__column-title {
    font-size: 13px;
}

.pt-megamenu--mobile .pt-megamenu__aside {
    width: 100%;
}

@media (prefers-reduced-motion: reduce) {
    .pt-megamenu--mobile {
        transition: none;
    }
}


/* ===================================================================
   Section 22 — Header Type 2: Centered Logo, Nav Below
   Applied when body has class .pt-header--type-2
   Layout: Row 1 topbar | Row 2 left-tools + center-logo + right-tools | Row 3 nav centered
=================================================================== */

.pt-header--type-2 .pt-header {
    border-bottom: 1px solid var(--pt-border-color, #eee);
}

.pt-header--type-2 .pt-header__inner {
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Centered logo: position in the middle via flex order */
.pt-header--type-2 .pt-header__logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    order: 2;
}

/* Left tools group: phone + account */
.pt-header--type-2 .pt-header__tools {
    order: 3;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Move search to a left pseudo-group before logo */
.pt-header--type-2 .pt-header__search {
    order: 1;
    max-width: 280px;
}

/* Centered nav links on the nav row */
.pt-header--type-2 .pt-megamenu .pt-nav__list {
    justify-content: center;
}

/* Mobile: restore normal left layout */
@media (max-width: 991px) {
    .pt-header--type-2 .pt-header__logo {
        position: static;
        transform: none;
        order: 1;
    }
    .pt-header--type-2 .pt-header__search {
        order: 0;
    }
}


/* ===================================================================
   Section 23 — Header Type 3: Compact Single-Row (Logo Left, Nav Center, Tools Right)
   Applied when body has class .pt-header--type-3
   No topbar, single row ~70px, clean minimal look
=================================================================== */

/* Hide topbar for type 3 */
.pt-header--type-3 .pt-topbar {
    display: none;
}

/* Single-row compact header */
.pt-header--type-3 .pt-header {
    height: 70px;
    padding: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.pt-header--type-3 .pt-header__inner {
    height: 70px;
    display: flex;
    align-items: center;
    gap: 0;
}

/* Logo: shrink slightly for compact feel */
.pt-header--type-3 .pt-header__logo img {
    height: 38px;
    width: auto;
}

/* Search bar: reduce max-width for compact row */
.pt-header--type-3 .pt-header__search {
    flex: 1;
    max-width: 340px;
    margin: 0 24px;
}

/* Nav: integrated inline, centered via flex-grow */
.pt-header--type-3 .pt-megamenu {
    flex: 1;
}

.pt-header--type-3 .pt-nav__list {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
    gap: 0;
}

/* Remove separate nav row background/border for compact */
.pt-header--type-3 .pt-megamenu {
    background: transparent;
    border-top: none;
    box-shadow: none;
}

/* Tools: compact gap */
.pt-header--type-3 .pt-header__tools {
    gap: 8px;
}

/* Mobile: standard hamburger */
@media (max-width: 991px) {
    .pt-header--type-3 .pt-header {
        height: 60px;
    }
    .pt-header--type-3 .pt-header__inner {
        height: 60px;
    }
}


/* ===================================================================
   Section 24 — Header Type 4: Dark Header + Vertical Category Sidebar
   Applied when body has class .pt-header--type-4
   Dark background, white text/icons; homepage shows 260px left sidebar
=================================================================== */

/* Dark header background */
.pt-header--type-4 .pt-topbar,
.pt-header--type-4 .pt-header,
.pt-header--type-4 .pt-megamenu {
    background: var(--pt-bg-dark, #1a1a2e);
    color: #fff;
    border-color: rgba(255,255,255,.1);
}

/* White text/icons inside dark header */
.pt-header--type-4 .pt-topbar,
.pt-header--type-4 .pt-header a,
.pt-header--type-4 .pt-header .pt-header__tool-icon,
.pt-header--type-4 .pt-header .pt-header__tool-text {
    color: rgba(255,255,255,.85);
}

.pt-header--type-4 .pt-header a:hover,
.pt-header--type-4 .pt-header .pt-header__tool-item:hover .pt-header__tool-icon {
    color: #fff;
}

/* Dark nav links */
.pt-header--type-4 .pt-nav__link {
    color: rgba(255,255,255,.85);
}
.pt-header--type-4 .pt-nav__link:hover,
.pt-header--type-4 .pt-nav__item--active > .pt-nav__link {
    color: #fff;
    background: rgba(255,255,255,.08);
}

/* Dark search bar */
.pt-header--type-4 .pt-header__search-inner {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.15);
}
.pt-header--type-4 .pt-header__search-input,
.pt-header--type-4 .pt-header__search-cat {
    color: #fff;
    background: transparent;
}
.pt-header--type-4 .pt-header__search-input::placeholder {
    color: rgba(255,255,255,.5);
}

/* Hamburger lines — white */
.pt-header--type-4 .pt-header__hamburger-line {
    background: #fff;
}

/* ---- Vertical Category Sidebar (homepage only) ---- */
/* Sidebar is visible on homepage via .cms-index-index body class */
.pt-header--type-4.cms-index-index .pt-page-wrapper {
    display: flex;
    align-items: flex-start;
}

.pt-category-sidebar {
    display: none; /* hidden by default */
    width: 260px;
    flex-shrink: 0;
    background: var(--pt-bg-dark, #1a1a2e);
    min-height: calc(100vh - 200px);
    padding: 20px 0;
}

.pt-header--type-4.cms-index-index .pt-category-sidebar {
    display: block;
}

.pt-category-sidebar__title {
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255,255,255,.5);
    border-bottom: 1px solid rgba(255,255,255,.08);
    margin-bottom: 8px;
}

.pt-category-sidebar__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pt-category-sidebar__item a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: rgba(255,255,255,.8);
    font-size: 14px;
    transition: background .15s, color .15s;
}

.pt-category-sidebar__item a:hover {
    background: rgba(255,255,255,.06);
    color: #fff;
}

.pt-category-sidebar__item a::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--pt-primary, #0088cc);
    flex-shrink: 0;
}

/* Sidebar content area next to sidebar */
.pt-header--type-4.cms-index-index .pt-main-content {
    flex: 1;
    min-width: 0;
}

@media (max-width: 991px) {
    .pt-header--type-4.cms-index-index .pt-page-wrapper {
        display: block;
    }
    .pt-header--type-4.cms-index-index .pt-category-sidebar {
        display: none; /* hide on mobile */
    }
    .pt-header--type-4 .pt-topbar,
    .pt-header--type-4 .pt-header,
    .pt-header--type-4 .pt-megamenu {
        background: var(--pt-bg-dark, #1a1a2e);
    }
}


/* ===================================================================
   Section 25 — Header Type 5: Full-Width Header + All Categories Dropdown
   Applied when body has class .pt-header--type-5
   Row 3 nav: prominent "ALL CATEGORIES ▼" button (260px left) + nav links right
=================================================================== */

/* Wide search on Row 2 */
.pt-header--type-5 .pt-header__search {
    flex: 1;
    max-width: 560px;
}

/* Nav row layout: categories button + nav links */
.pt-header--type-5 .pt-megamenu .pt-nav__list {
    position: relative;
    padding-left: 0;
}

/* ALL CATEGORIES button */
.pt-cat-dropdown {
    display: none; /* shown only for type-5 */
    position: relative;
}

.pt-header--type-5 .pt-cat-dropdown {
    display: flex;
    align-items: center;
}

.pt-cat-dropdown__btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
    height: 46px;
    background: var(--pt-primary, #0088cc);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    width: 260px;
    justify-content: space-between;
    transition: background .2s;
}

.pt-cat-dropdown__btn:hover {
    background: var(--pt-primary-dark, #006fa3);
}

.pt-cat-dropdown__btn-arrow {
    font-size: 10px;
    transition: transform .2s;
}

.pt-cat-dropdown[aria-expanded="true"] .pt-cat-dropdown__btn-arrow {
    transform: rotate(180deg);
}

/* Category vertical dropdown panel */
.pt-cat-dropdown__panel {
    position: absolute;
    top: 100%;
    left: 0;
    width: 260px;
    background: #fff;
    border: 1px solid var(--pt-border-color, #e8e8e8);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    z-index: 200;
    display: none;
    padding: 8px 0;
}

.pt-cat-dropdown[aria-expanded="true"] .pt-cat-dropdown__panel {
    display: block;
}

.pt-cat-dropdown__panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pt-cat-dropdown__panel li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 20px;
    font-size: 14px;
    color: var(--pt-text, #333);
    transition: background .15s, color .15s;
}

.pt-cat-dropdown__panel li a:hover {
    background: var(--pt-bg-light, #f8f8f8);
    color: var(--pt-primary, #0088cc);
}

/* Nav row flex layout for type 5 */
.pt-header--type-5 .pt-megamenu > .pt-container,
.pt-header--type-5 .pt-megamenu {
    display: flex;
    align-items: center;
}

.pt-header--type-5 .pt-megamenu .pt-nav__list {
    flex: 1;
    justify-content: flex-start;
    padding-left: 16px;
}

@media (max-width: 991px) {
    .pt-header--type-5 .pt-cat-dropdown {
        display: none;
    }
}


/* ===================================================================
   Section 26 — Sticky Header Behavior (PORTO-044)
   Configurable scroll-direction-aware sticky header.
   JS (sticky-header.js) adds/removes .pt-header--sticky-visible on <body>.
   Enabled when body has class .pt-sticky-header.
   Compact sticky: 54px height, logo + nav + cart only.
=================================================================== */

/* Sticky header container: always fixed, hidden by default */
.pt-sticky-header .pt-sticky-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    height: 54px;
    display: flex;
    align-items: center;
    transform: translateY(-100%);
    transition: transform .2s ease;
    will-change: transform;
}

/* Slide in when JS adds this class */
.pt-sticky-header.pt-header--sticky-visible .pt-sticky-bar {
    transform: translateY(0);
}

.pt-sticky-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 20px;
    max-width: var(--pt-container-max, 1200px);
    margin: 0 auto;
    gap: 16px;
}

/* Show logo in sticky when .pt-sticky-logo is on body */
.pt-sticky-bar__logo {
    display: none;
}
.pt-sticky-logo .pt-sticky-bar__logo {
    display: block;
    flex-shrink: 0;
}
.pt-sticky-bar__logo img {
    height: 32px;
    width: auto;
}

/* Compact nav in sticky bar */
.pt-sticky-bar__nav {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
}

.pt-sticky-bar__nav-link {
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--pt-text, #333);
    white-space: nowrap;
    border-radius: 4px;
    transition: background .15s, color .15s;
}
.pt-sticky-bar__nav-link:hover {
    background: var(--pt-bg-light, #f5f5f5);
    color: var(--pt-primary, #0088cc);
}

/* Cart icon in sticky */
.pt-sticky-bar__cart {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--pt-text, #333);
    flex-shrink: 0;
}
.pt-sticky-bar__cart:hover {
    color: var(--pt-primary, #0088cc);
}

/* Dark header type 4 sticky override */
.pt-header--type-4 .pt-sticky-bar {
    background: var(--pt-bg-dark, #1a1a2e);
    color: #fff;
}
.pt-header--type-4 .pt-sticky-bar__nav-link {
    color: rgba(255,255,255,.85);
}
.pt-header--type-4 .pt-sticky-bar__nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,.08);
}
.pt-header--type-4 .pt-sticky-bar__cart {
    color: rgba(255,255,255,.85);
}

/* Mobile sticky: only when .pt-mobile-sticky on body */
@media (max-width: 991px) {
    .pt-sticky-header .pt-sticky-bar {
        display: none; /* hidden on mobile by default */
    }
    .pt-mobile-sticky .pt-sticky-header .pt-sticky-bar,
    .pt-mobile-sticky.pt-sticky-header .pt-sticky-bar {
        display: flex;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pt-sticky-header .pt-sticky-bar {
        transition: none;
    }
}

/* =================================================================
   Section 27 — Quick View Modal (PORTO-050)
   Data-attribute driven; no AJAX needed.
   JS inserts modal HTML once; product data from data-quick-view attr.
=================================================================== */

/* Backdrop */
.pt-quickview-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 1100;
    cursor: pointer;
}
.pt-quickview-backdrop.pt-is-open {
    display: block;
}

/* Modal container */
.pt-quickview-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(.95);
    z-index: 1101;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .2);
    width: min(960px, calc(100vw - 32px));
    max-height: calc(100vh - 64px);
    overflow: hidden;
    transition: transform .22s ease, opacity .22s ease;
    opacity: 0;
}
.pt-quickview-modal.pt-is-open {
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Close button */
.pt-quickview__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: none;
    border: 1px solid var(--pt-border, #e8e8e8);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pt-text-light, #666);
    transition: background .15s, color .15s;
    z-index: 1;
}
.pt-quickview__close:hover {
    background: var(--pt-bg-light, #f5f5f5);
    color: var(--pt-text, #333);
}

/* Body layout */
.pt-quickview__body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    overflow-y: auto;
    flex: 1;
}

/* Left — image */
.pt-quickview__image {
    background: var(--pt-bg-light, #f9f9f9);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
    padding: 24px;
}
.pt-quickview__image img {
    max-width: 100%;
    max-height: 440px;
    object-fit: contain;
}
.pt-quickview__image-placeholder {
    width: 100%;
    height: 320px;
    background: var(--pt-bg-light, #f5f5f5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pt-text-light, #aaa);
}

/* Right — info */
.pt-quickview__info {
    padding: 40px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.pt-quickview__name {
    font-size: 1.375rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}
.pt-quickview__name a {
    color: inherit;
    text-decoration: none;
}
.pt-quickview__name a:hover {
    color: var(--pt-primary, #0088cc);
}

/* Price */
.pt-quickview__price {
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.pt-quickview__price-final {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pt-price, #333);
}
.pt-quickview__price-regular {
    font-size: 1rem;
    color: var(--pt-text-light, #999);
    text-decoration: line-through;
}
.pt-quickview__price-discount {
    font-size: 0.85rem;
    background: var(--pt-sale, #e74c3c);
    color: #fff;
    padding: 2px 7px;
    border-radius: 3px;
    font-weight: 600;
}

/* Short description */
.pt-quickview__desc {
    font-size: 0.9rem;
    color: var(--pt-text-light, #666);
    line-height: 1.6;
    margin: 0;
    max-height: 96px;
    overflow: hidden;
}

/* ATC area */
.pt-quickview__atc {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: auto;
    flex-wrap: wrap;
}
.pt-quickview__atc-btn {
    flex: 1;
    min-width: 140px;
}
.pt-quickview__view-link {
    font-size: 0.85rem;
    color: var(--pt-text-light, #888);
    text-decoration: underline;
    white-space: nowrap;
}
.pt-quickview__view-link:hover {
    color: var(--pt-primary, #0088cc);
}

/* Responsive */
@media (max-width: 767px) {
    .pt-quickview__body {
        grid-template-columns: 1fr;
    }
    .pt-quickview__image {
        min-height: 240px;
    }
    .pt-quickview__info {
        padding: 24px 20px 20px;
    }
}

/* =================================================================
   Section 28 — AJAX Add to Cart Toast Notification (PORTO-051)
   Slides in from the top-right on successful cart add.
   Controlled by pt-is-visible class toggled by ajax-cart.js.
=================================================================== */

.pt-atc-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1200;
    background: #fff;
    border: 1px solid var(--pt-border, #e8e8e8);
    border-left: 4px solid var(--pt-success, #27ae60);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 340px;
    width: calc(100vw - 48px);
    transform: translateY(calc(-100% - 32px));
    opacity: 0;
    transition: transform .28s cubic-bezier(.22, 1, .36, 1), opacity .22s ease;
    pointer-events: none;
}
.pt-atc-toast.pt-is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* Check icon */
.pt-atc-toast__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: var(--pt-success, #27ae60);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

/* Message text */
.pt-atc-toast__text {
    flex: 1;
    min-width: 0;
}
.pt-atc-toast__msg {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--pt-text, #333);
}
.pt-atc-toast__name {
    display: block;
    font-size: 12px;
    color: var(--pt-text-light, #666);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* View Cart link */
.pt-atc-toast__link {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--pt-primary, #0088cc);
    white-space: nowrap;
    text-decoration: none;
}
.pt-atc-toast__link:hover {
    text-decoration: underline;
}

/* Close button */
.pt-atc-toast__close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: var(--pt-text-light, #aaa);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pt-atc-toast__close:hover {
    color: var(--pt-text, #333);
}

/* ATC button loading state */
.pt-product-card__cart.pt-loading,
.pt-quickview__atc-btn.pt-loading {
    opacity: 0.65;
    cursor: not-allowed;
    pointer-events: none;
}

/* =============================================================
 * Section 29 — Newsletter Popup Modal (PORTO-054)
 * ============================================================= */

/* Backdrop */
.pt-newsletter-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 10000;
}
.pt-newsletter-backdrop.pt-is-open {
    display: block;
}

/* Modal */
.pt-newsletter-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001;
    background: #fff;
    border-radius: 6px;
    width: 90%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.22);
}
.pt-newsletter-modal.pt-is-open {
    display: block;
}

/* Close button */
.pt-newsletter__close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    color: var(--pt-text-light, #aaa);
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}
.pt-newsletter__close:hover {
    color: var(--pt-text, #333);
}

/* Body: two-column layout (image + info) */
.pt-newsletter__body {
    display: flex;
    align-items: stretch;
}
.pt-newsletter__image {
    flex: 0 0 200px;
    background: var(--pt-primary, #0088cc) no-repeat center/cover;
    border-radius: 6px 0 0 6px;
    min-height: 260px;
}
.pt-newsletter__image:empty {
    display: none; /* hide when no image configured */
}
.pt-newsletter__info {
    flex: 1;
    padding: 40px 32px 32px;
}

/* Heading */
.pt-newsletter__title {
    font-family: var(--pt-font-heading, 'Poppins', sans-serif);
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--pt-heading-color, #222);
    padding-right: 24px; /* clear X button */
}
.pt-newsletter__subtitle {
    font-size: 0.9rem;
    color: var(--pt-text-light, #777);
    margin: 0 0 20px;
}

/* Form */
.pt-newsletter__form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pt-newsletter__email {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--pt-border, #ddd);
    border-radius: 4px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.pt-newsletter__email:focus {
    border-color: var(--pt-primary, #0088cc);
}
.pt-newsletter__submit {
    width: 100%;
}

/* "Don't show again" row */
.pt-newsletter__dismiss {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--pt-text-light, #888);
}
.pt-newsletter__dismiss-check {
    margin: 0;
    accent-color: var(--pt-primary, #0088cc);
}

/* Responsive: stack image above on mobile */
@media (max-width: 560px) {
    .pt-newsletter__body {
        flex-direction: column;
    }
    .pt-newsletter__image {
        flex: 0 0 140px;
        border-radius: 6px 6px 0 0;
        min-height: 140px;
    }
    .pt-newsletter__info {
        padding: 28px 20px 24px;
    }
}

/* =============================================================
 * Section 30 — Countdown Timer Widget (PORTO-055)
 * ============================================================= */

.pt-countdown {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.pt-countdown__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 56px;
    background: var(--pt-primary, #0088cc);
    color: #fff;
    border-radius: 4px;
    padding: 8px 10px 6px;
    text-align: center;
}

.pt-countdown__item span:first-child {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
    font-family: var(--pt-font-heading, 'Poppins', sans-serif);
    display: block;
}

.pt-countdown__item span:last-child {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.85;
    margin-top: 3px;
    display: block;
}

/* Separator colons between items */
.pt-countdown__sep {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--pt-primary, #0088cc);
    padding-top: 6px;
    line-height: 1;
}

@media (max-width: 480px) {
    .pt-countdown__item {
        min-width: 46px;
        padding: 6px 8px 5px;
    }
    .pt-countdown__item span:first-child {
        font-size: 1.3rem;
    }
}

/* =============================================================
 * Section 31 — LAZY IMAGE LOADING (PORTO-056)
 * IntersectionObserver fade-in for product card images,
 * banners, and slide images. JS adds .pt-lazy on DOMReady,
 * then adds .pt-loaded when the image enters the viewport.
 * Image containers show a light placeholder while loading.
 * ============================================================= */

/**
 * Hidden state: images start invisible when JS assigns .pt-lazy.
 * Transition is on the initial state so the animation is present
 * when .pt-loaded is added and .pt-lazy is removed simultaneously.
 * Images without .pt-lazy are unaffected.
 */
.pt-lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/**
 * Loaded state: smooth fade-in once image is in viewport and loaded.
 * Removing .pt-lazy in markLoaded() prevents CSS re-hiding the image.
 */
.pt-loaded {
    opacity: 1;
}

/**
 * Placeholder background for image containers while loading.
 */
.pt-banner,
.pt-slide {
    background-color: var(--pt-bg-light, #f5f5f5);
}

/** Disable lazy-fade transition for users who prefer reduced motion.
 *  Also reveal images immediately so they are never invisible. */
@media (prefers-reduced-motion: reduce) {
    .pt-lazy {
        opacity: 1;
        transition: none;
    }
    .pt-loaded {
        transition: none;
    }
}

/* =============================================================
 * Section 32 — HOVER SWAP IMAGE (PORTO-058)
 * Reveals a second product image on card hover.
 * The hover image (.pt-product-card__img-hover) is positioned
 * absolutely over the primary image and transitions in on hover.
 * JS (lazy-images.js) excludes hover images from its selector
 * so .pt-lazy/.pt-loaded never interfere with hover-swap opacity.
 * Only activates on devices with a precise pointer (desktop) to
 * avoid confusing double-tap behaviour on touch screens.
 * ============================================================= */

/** Hover image: stacked over the primary image, hidden by default.
 *  .pt-product-card__image already has position:relative + overflow:hidden
 *  from Section 9a — no need to redeclare here. */
.pt-product-card__img-hover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.35s ease;
    /* pointer-events off so hover-action buttons are always clickable */
    pointer-events: none;
    z-index: 1;
}

/** Hover-swap only on devices with fine pointer (mouse/trackpad, not touch) */
@media (hover: hover) and (pointer: fine) {
    .pt-product-card:hover .pt-product-card__img-hover {
        opacity: 1;
    }
    /** Fade out the primary image slightly to make the swap feel natural */
    .pt-product-card:hover .pt-product-card__image > a > img:not(.pt-product-card__img-hover) {
        opacity: 0.15;
        transition: opacity 0.35s ease;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pt-product-card__img-hover {
        transition: none;
    }
}

/* =============================================================
 * Section 33 — Product Grid Type Variations (PORTO-059)
 *
 * Ten CSS-only card layout variants applied via .pt-grid-type-{N}
 * on the .pt-product-grid wrapper. Same HTML for all types.
 *
 * Type 1 — Default (Image top, info below, actions on hover)
 *   Already covered by base .pt-product-card styles. No overrides.
 *
 * Type 2 — Info Overlay (info slides up from bottom on card hover)
 * Type 3 — Side Info (horizontal card: image left, info right)
 * Type 4 — Minimal (image + name + price only; actions hidden)
 * Type 5 — Detailed (description, persistent actions, larger card)
 * Type 6 — Centered (text center-aligned, full-width ATC button)
 * Type 7 — Boxed (bordered card, padded image, prominent badges)
 * Type 8 — Wide (50/50 horizontal card, designed for 2-col grid)
 * Type 9 — Compact (small dense card, 5+ per row)
 * Type 10 — Magazine (first item spans 2 cols, rest are normal)
 * ============================================================= */

/* ── Type 2: Info Overlay ─────────────────────────────────── */
.pt-grid-type-2 .pt-product-card__image {
    position: relative;
    overflow: hidden;
}

.pt-grid-type-2 .pt-product-card__info {
    position: absolute;
    inset: auto 0 0 0;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 3;
}

.pt-grid-type-2 .pt-product-card:hover .pt-product-card__info,
.pt-grid-type-2 .pt-product-card:focus-within .pt-product-card__info {
    transform: translateY(0);
}

.pt-grid-type-2 .pt-product-card__name a,
.pt-grid-type-2 .pt-product-card__price {
    color: #fff;
}

/* Keep the card as a positioned container; overflow:hidden clips __info slide-up.
 * translateZ(0) forces GPU layer on iOS Safari where clip can break without it. */
.pt-grid-type-2 .pt-product-card {
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

/* ── Type 3: Side Info ────────────────────────────────────── */
.pt-grid-type-3 .pt-product-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}

.pt-grid-type-3 .pt-product-card__image {
    flex: 0 0 45%;
    min-width: 0;
}

.pt-grid-type-3 .pt-product-card__info {
    flex: 1 1 0;
    padding: 0.75rem 0.75rem 0.75rem 1rem;
}

/* Actions bar always visible in side layout */
.pt-grid-type-3 .pt-product-card__actions {
    position: static;
    opacity: 1;
    transform: none;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

/* ── Type 4: Minimal ──────────────────────────────────────── */
.pt-grid-type-4 .pt-product-card__rating,
.pt-grid-type-4 .pt-product-card__actions,
.pt-grid-type-4 form[data-role="tocart-form"] {
    display: none;
}

.pt-grid-type-4 .pt-product-card__info {
    padding: 0.5rem 0;
}

/* ── Type 5: Detailed ─────────────────────────────────────── */
.pt-grid-type-5 .pt-product-card__actions {
    position: static;
    opacity: 1;
    transform: none;
    flex-direction: row;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Reserve space for description excerpt (added via CSS content trick) */
.pt-grid-type-5 .pt-product-card__info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.pt-grid-type-5 .pt-product-card {
    height: 100%;
}

/* Override the default "hide description in grid mode" rule so Type 5 shows it.
 * Base rule specificity: (.pt-product-grid:not(...) .pt-product-card__description) = (0,3,0).
 * This selector (.pt-grid-type-5.pt-product-grid .pt-product-card__description) = (0,3,0)
 * and appears later in the file, so it wins unambiguously regardless of source order changes. */
.pt-grid-type-5.pt-product-grid .pt-product-card__description {
    /* Use -webkit-box model for line-clamp; this value also serves as display:block fallback */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.8rem;
    color: var(--pt-text-light, #888);
    line-height: 1.5;
    margin: 0;
}

/* ── Type 6: Centered ─────────────────────────────────────── */
.pt-grid-type-6 .pt-product-card__info {
    text-align: center;
}

.pt-grid-type-6 .pt-product-card__rating {
    justify-content: center;
}

.pt-grid-type-6 .pt-product-card__cart {
    width: 100%;
}

.pt-grid-type-6 .pt-product-card__actions {
    left: 50%;
    right: auto; /* reset base right:-50px so left:50% + translateX(-50%) centres correctly */
    transform: translateX(-50%) translateY(4px);
    width: auto;
}

.pt-grid-type-6 .pt-product-card:hover .pt-product-card__actions {
    transform: translateX(-50%) translateY(0);
}

/* ── Type 7: Boxed ────────────────────────────────────────── */
.pt-grid-type-7 .pt-product-card {
    border: 1px solid var(--pt-border, #e0e0e0);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.25s ease;
}

.pt-grid-type-7 .pt-product-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.pt-grid-type-7 .pt-product-card__image {
    padding: 0.75rem;
    background: var(--pt-bg-light, #f8f8f8);
}

.pt-grid-type-7 .pt-product-card__info {
    padding: 0.75rem;
}

.pt-grid-type-7 .pt-badge {
    font-size: 0.75rem;
    padding: 0.3em 0.6em;
}

/* ── Type 8: Wide (50/50 horizontal, for 2-col grid) ─────── */
.pt-grid-type-8 .pt-product-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.pt-grid-type-8 .pt-product-card__image {
    flex: 0 0 50%;
}

.pt-grid-type-8 .pt-product-card__info {
    flex: 1 1 0;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pt-grid-type-8 .pt-product-card__actions {
    position: static;
    opacity: 1;
    transform: none;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

/* ── Type 9: Compact ──────────────────────────────────────── */
.pt-grid-type-9 .pt-product-card__image img {
    max-height: 160px;
    object-fit: cover;
    width: 100%;
}

.pt-grid-type-9 .pt-product-card__name {
    font-size: 0.8rem;
    margin: 0.25rem 0;
}

.pt-grid-type-9 .pt-product-card__price {
    font-size: 0.85rem;
}

.pt-grid-type-9 .pt-product-card__rating {
    display: none;
}

.pt-grid-type-9 .pt-product-card__cart {
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
}

/* Use more columns for compact type (override grid-cols via auto-fill) */
@media (min-width: 992px) {
    .pt-grid-type-9.pt-product-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* ── Type 10: Magazine (first item spans 2 cols) ──────────── */
@media (min-width: 768px) {
    .pt-grid-type-10 .pt-product-grid__item:first-child {
        grid-column: span 2;
        grid-row: span 2;
    }

    .pt-grid-type-10 .pt-product-grid__item:first-child .pt-product-card__image img {
        max-height: 100%;
        height: 100%;
        object-fit: cover;
    }

    .pt-grid-type-10 .pt-product-grid__item:first-child .pt-product-card {
        height: 100%;
    }

    .pt-grid-type-10 .pt-product-grid__item:first-child .pt-product-card__info {
        padding: 1.25rem;
    }

    .pt-grid-type-10 .pt-product-grid__item:first-child .pt-product-card__name {
        font-size: 1.25rem;
    }
}

/* ===================================================================
   PORTO-061. CMS Pages — About, Contact, FAQ, 404
   =================================================================== */

/* ── CMS page base ──────────────────────────────────────────── */
.pt-cms-page .page-main {
    padding-top: 0;
}

.pt-container--narrow {
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--pt-gutter);
    padding-right: var(--pt-gutter);
}

/* ── About — Values grid ────────────────────────────────────── */
.pt-about-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.pt-about-values__item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--pt-bg-light);
    border-radius: var(--pt-radius);
}

.pt-about-values__icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.pt-about-values__item h3 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
    color: var(--pt-heading);
}

.pt-about-values__item p {
    font-size: 0.9rem;
    color: var(--pt-text);
    margin: 0;
}

/* ── About — Team grid ──────────────────────────────────────── */
.pt-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.pt-team-card {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--pt-bg);
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius);
    transition: box-shadow var(--pt-transition);
}

.pt-team-card:hover {
    box-shadow: var(--pt-shadow);
}

.pt-team-card__avatar {
    font-size: 3.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.pt-team-card__name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    color: var(--pt-heading);
}

.pt-team-card__role {
    font-size: 0.875rem;
    color: var(--pt-text-light);
    margin: 0;
}

/* ── Contact layout ─────────────────────────────────────────── */
.pt-contact-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 768px) {
    .pt-contact-layout {
        grid-template-columns: 1fr;
    }
}

.pt-contact-form-wrap .fieldset {
    margin-bottom: 1.5rem;
}

.pt-contact-info__card {
    background: var(--pt-bg-light);
    border-radius: var(--pt-radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.pt-contact-info__card h3 {
    margin: 0 0 1.25rem;
    color: var(--pt-heading);
}

.pt-contact-info__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.pt-contact-info__list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--pt-text);
}

.pt-contact-info__icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.pt-contact-map-placeholder {
    background: var(--pt-bg-light);
    border: 1px dashed var(--pt-border);
    border-radius: var(--pt-radius);
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--pt-text-light);
    gap: 0.5rem;
}

.pt-contact-map-placeholder p {
    margin: 0;
    font-size: 0.875rem;
}

/* ── FAQ — accordion ────────────────────────────────────────── */
.pt-faq-group {
    margin-bottom: 2.5rem;
}

.pt-faq-group__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--pt-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--pt-primary);
}

.pt-accordion__item {
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius);
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.pt-accordion__trigger {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--pt-heading);
    background: var(--pt-bg);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background var(--pt-transition);
}

.pt-accordion__trigger:hover {
    background: var(--pt-bg-light);
}

.pt-accordion__trigger::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--pt-primary);
    transition: transform var(--pt-transition);
    flex-shrink: 0;
    font-weight: 300;
}

details[open] > .pt-accordion__trigger::after {
    transform: rotate(45deg);
}

.pt-accordion__trigger::-webkit-details-marker {
    display: none;
}

.pt-accordion__content {
    padding: 0 1.25rem 1rem;
    font-size: 0.9rem;
    color: var(--pt-text);
    line-height: 1.7;
    background: var(--pt-bg);
}

.pt-accordion__content p {
    margin: 0;
}

/* ── 404 page ───────────────────────────────────────────────── */
.pt-404-number {
    font-size: clamp(6rem, 20vw, 12rem);
    font-weight: 800;
    color: var(--pt-border);
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: var(--pt-font-heading);
}

.pt-404-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--pt-heading);
    margin: 0 0 1rem;
}

.pt-404-subtitle {
    font-size: 1.05rem;
    color: var(--pt-text-light);
    max-width: 480px;
    margin: 0 auto;
}

.pt-404-search {
    margin-top: 2rem;
}

/* ===================================================================
   Cart Page
   =================================================================== */

/* ── Cart layout ────────────────────────────────────────────── */
.pt-cart-page .cart-container {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 991px) {
    .pt-cart-page .cart-container {
        grid-template-columns: 1fr;
    }
}

/* ── Cart table ─────────────────────────────────────────────── */
.pt-cart-page .cart.table-wrapper {
    background: var(--pt-bg);
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius);
    overflow: hidden;
}

.pt-cart-page .cart thead th {
    background: var(--pt-bg-light);
    padding: 0.875rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--pt-text-dark);
    border-bottom: 1px solid var(--pt-border);
}

.pt-cart-page .cart tbody tr {
    border-bottom: 1px solid var(--pt-border-light);
}

.pt-cart-page .cart tbody tr:last-child {
    border-bottom: none;
}

.pt-cart-page .cart td {
    padding: 1.25rem 1rem;
    vertical-align: middle;
}

.pt-cart-page .product-item-photo .product-image-photo {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--pt-radius-sm);
}

.pt-cart-page .product-item-name a {
    font-weight: 600;
    color: var(--pt-heading);
    text-decoration: none;
}

.pt-cart-page .product-item-name a:hover {
    color: var(--pt-primary);
}

.pt-cart-page .input-text.qty {
    width: 60px;
    text-align: center;
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius-sm);
    padding: 0.5rem;
    font-size: 0.9rem;
}

.pt-cart-page .action.action-delete::before {
    content: '×';
    font-size: 1.25rem;
    color: var(--pt-text-light);
    font-weight: 300;
}

.pt-cart-page .action.action-delete:hover::before {
    color: var(--pt-danger);
}

/* ── Cart actions ───────────────────────────────────────────── */
.pt-cart-page .cart.main.actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* ── Cart totals sidebar ────────────────────────────────────── */
.pt-cart-page .cart-summary {
    background: var(--pt-bg);
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius);
    padding: 1.5rem;
    position: sticky;
    top: calc(var(--pt-header-height) + 1rem);
}

.pt-cart-page .cart-summary > .title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--pt-heading);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--pt-border);
}

.pt-cart-page .cart-totals .totals th,
.pt-cart-page .cart-totals .totals td {
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.pt-cart-page .cart-totals .grand .mark,
.pt-cart-page .cart-totals .grand .amount {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--pt-heading);
    border-top: 1px solid var(--pt-border);
    padding-top: 0.75rem;
}

.pt-cart-page .checkout-methods-items .action.primary.checkout {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    margin-top: 1rem;
}

/* ── Empty cart ─────────────────────────────────────────────── */
.pt-cart-page .cart-empty {
    text-align: center;
    padding: 4rem 2rem;
}

.pt-cart-page .cart-empty::before {
    content: '🛒';
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
}

@media (max-width: 767px) {
    .pt-cart-page .cart thead {
        display: none;
    }

    .pt-cart-page .cart td {
        display: block;
        padding: 0.5rem 1rem;
    }

    .pt-cart-page .cart tr {
        display: block;
        padding: 1rem 0;
    }
}

/* ===================================================================
   Checkout Page
   =================================================================== */

/* ── Layout ─────────────────────────────────────────────────── */
.pt-checkout-page .checkout-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 991px) {
    .pt-checkout-page .checkout-container {
        grid-template-columns: 1fr;
    }
    .pt-checkout-page .opc-sidebar {
        order: -1;
    }
}

/* ── Progress steps ─────────────────────────────────────────── */
.pt-checkout-page .opc-progress-bar {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    counter-reset: step;
}

.pt-checkout-page .opc-progress-bar-item {
    flex: 1;
    text-align: center;
    position: relative;
}

.pt-checkout-page .opc-progress-bar-item::before {
    counter-increment: step;
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--pt-border);
    color: var(--pt-text-light);
    font-weight: 700;
    font-size: 0.85rem;
    margin: 0 auto 0.5rem;
    position: relative;
    z-index: 1;
}

.pt-checkout-page .opc-progress-bar-item._active::before,
.pt-checkout-page .opc-progress-bar-item._complete::before {
    background: var(--pt-primary);
    color: #fff;
}

.pt-checkout-page .opc-progress-bar-item > span {
    font-size: 0.8rem;
    color: var(--pt-text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pt-checkout-page .opc-progress-bar-item._active > span {
    color: var(--pt-primary);
}

.pt-checkout-page .opc-progress-bar-item + .opc-progress-bar-item::after {
    content: '';
    position: absolute;
    top: 1rem;
    right: 50%;
    left: -50%;
    height: 2px;
    background: var(--pt-border);
    z-index: 0;
}

/* ── Form fields ────────────────────────────────────────────── */
.pt-checkout-page .field .control input,
.pt-checkout-page .field .control select,
.pt-checkout-page .field .control textarea {
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius-sm);
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    transition: border-color var(--pt-transition);
    width: 100%;
}

.pt-checkout-page .field .control input:focus,
.pt-checkout-page .field .control select:focus {
    border-color: var(--pt-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.15);
}

/* ── Step titles ────────────────────────────────────────────── */
.pt-checkout-page .step-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--pt-heading);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--pt-border);
}

/* ── Shipping methods ───────────────────────────────────────── */
.pt-checkout-page .table-checkout-shipping-method tbody tr {
    cursor: pointer;
}

.pt-checkout-page .table-checkout-shipping-method tbody td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--pt-border-light);
}

.pt-checkout-page .table-checkout-shipping-method .radio {
    accent-color: var(--pt-primary);
}

/* ── Order summary sidebar ──────────────────────────────────── */
.pt-checkout-page .opc-sidebar .opc-block-summary {
    background: var(--pt-bg-light);
    border-radius: var(--pt-radius);
    padding: 1.5rem;
    position: sticky;
    top: calc(var(--pt-header-height) + 1rem);
}

.pt-checkout-page .opc-block-summary .title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--pt-heading);
}

.pt-checkout-page .minicart-items .product-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--pt-border-light);
}

.pt-checkout-page .minicart-items .product-item-photo {
    flex-shrink: 0;
}

.pt-checkout-page .minicart-items .product-image-photo {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--pt-radius-sm);
}

/* ── Trust badges ───────────────────────────────────────────── */
.pt-checkout-trust {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--pt-border-light);
    font-size: 0.8rem;
    color: var(--pt-text-light);
}

.pt-checkout-trust span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* ── Navigation buttons ─────────────────────────────────────── */
.pt-checkout-page .button.action.continue.primary {
    background: var(--pt-primary);
    color: #fff;
    padding: 0.875rem 2rem;
    font-weight: 600;
}

.pt-checkout-page .action-show-popup > span::before,
.pt-checkout-page .action.secondary {
    color: var(--pt-primary);
}

/* ===================================================================
   Customer Account Pages
   =================================================================== */

.pt-account-page .account-nav {
    background: var(--pt-bg);
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius);
    overflow: hidden;
}

.pt-account-page .account-nav .title {
    padding: 1rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--pt-text-light);
    background: var(--pt-bg-light);
    border-bottom: 1px solid var(--pt-border);
}

.pt-account-page .account-nav-item a,
.pt-account-page .account-nav-item strong {
    display: block;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    color: var(--pt-text-dark);
    text-decoration: none;
    border-bottom: 1px solid var(--pt-border-light);
    transition: color var(--pt-transition), background var(--pt-transition);
}

.pt-account-page .account-nav-item a:hover {
    color: var(--pt-primary);
    background: var(--pt-bg-light);
}

.pt-account-page .account-nav-item.current a,
.pt-account-page .account-nav-item.current strong {
    color: var(--pt-primary);
    font-weight: 700;
    border-left: 3px solid var(--pt-primary);
    padding-left: calc(1.25rem - 3px);
}

.pt-account-page .block-dashboard-info,
.pt-account-page .block-dashboard-addresses,
.pt-account-page .block-dashboard-orders {
    background: var(--pt-bg);
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.pt-account-page .block-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--pt-border-light);
}

.pt-account-page .block-title strong {
    font-size: 1rem;
    font-weight: 700;
    color: var(--pt-heading);
}

.pt-account-page .orders-history .table-wrapper {
    border-radius: var(--pt-radius);
    overflow: hidden;
    border: 1px solid var(--pt-border);
}

.pt-account-page .orders-history thead th {
    background: var(--pt-bg-light);
    padding: 0.75rem 1rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: var(--pt-text-dark);
}

.pt-account-page .orders-history tbody td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--pt-border-light);
    font-size: 0.875rem;
}

.pt-account-page .orders-history .order-status {
    display: inline-block;
    padding: 0.2em 0.6em;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--pt-bg-light);
    color: var(--pt-text);
}

.pt-account-page .block-addresses-list .items.addresses {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.pt-account-page .block-addresses-list .item.address {
    background: var(--pt-bg-light);
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius);
    padding: 1.25rem;
}

@media (max-width: 767px) {
    .pt-account-page .sidebar.sidebar-main {
        order: -1;
    }
}

/* ===================================================================
   Search Results Page
   =================================================================== */

.pt-search-results-page .page-title-wrapper .page-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--pt-heading);
    margin-bottom: 0.5rem;
}

.pt-search-results-page .search.found {
    color: var(--pt-text-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.pt-search-results-page .search.found strong {
    color: var(--pt-primary);
}

.pt-search-results-page .search-no-result {
    text-align: center;
    padding: 3rem 1rem;
}

.pt-search-results-page .search-no-result::before {
    content: '🔍';
    font-size: 3.5rem;
    display: block;
    margin-bottom: 1rem;
}

.pt-search-results-page .search-no-result .message {
    font-size: 1.1rem;
    color: var(--pt-text);
    margin-bottom: 0.5rem;
}

.pt-search-results-page .search-no-result ul {
    list-style: none;
    padding: 0;
    color: var(--pt-text-light);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.pt-search-results-page .search-no-result ul li::before {
    content: '→ ';
    color: var(--pt-primary);
}

/* ===================================================================
   Cross-Browser Compatibility Fixes
   =================================================================== */

/* IE11 has <1% market share; we intentionally do not support it. */

/* ── Safari: text-size-adjust ───────────────────────────────── */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* ── Firefox: input[type=number] spinner removal ────────────── */
input[type='number'] {
    -moz-appearance: textfield;
}

input[type='number']::-webkit-inner-spin-button,
input[type='number']::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ── Safari: sticky position ────────────────────────────────── */
.pt-sticky-header {
    position: -webkit-sticky; /* old Safari */
    position: sticky;
}

/* ── Swiper: touch-action for iOS scroll ────────────────────── */
.swiper {
    touch-action: pan-y;
}

/* ── iOS Safari: avoid 100vh ────────────────────────────────── */
.pt-hero--fullscreen {
    min-height: 90vh;
}

/* ── Print: hide UI chrome ──────────────────────────────────── */
@media print {
    .pt-header,
    .pt-footer,
    .pt-newsletter-popup,
    .pt-sticky-header,
    .swiper-button-prev,
    .swiper-button-next {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    a[href]::after {
        content: ' (' attr(href) ')';
        font-size: 0.8em;
        color: #555;
    }
}

/* ===================================================================
   Performance — CSS hints & optimizations
   =================================================================== */

/* ── content-visibility for footer (Chrome 85+) ─────────────── */
/* Applied only to the footer: it's always below the fold and has no
   sticky children. Broader application (e.g. .pt-section) breaks
   sticky positioning via the implied CSS containment boundary. */
.pt-footer {
    content-visibility: auto;
    contain-intrinsic-size: 0 400px;
}

/* ── will-change: applied via JS just before animation starts ── */
/* Permanent will-change promotes every matching element to its own
   compositing layer unconditionally, wasting GPU memory.
   JS adds/removes it around the transform animation instead. */

/* ── Reduce motion ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .pt-hero-slider,
    .pt-brand-slider {
        animation: none !important;
    }
}

/* ── High-contrast mode support ─────────────────────────────── */
@media (prefers-contrast: more) {
    :root {
        --pt-border: #767676;
        --pt-text-light: #595959;
    }

    .pt-btn {
        border: 2px solid currentColor;
    }
}
