/* --- GLOBAL FONT & RESET --- */
body {
    font-family: "Century Gothic", Arial, Helvetica, Tahoma, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: #fff;
}

/* --- HEADER --- */
header {
    background-color: white;
    padding: 1rem 0;
}
header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
header .d-flex.align-items-center {
    display: flex;
    align-items: center;
}
header h1,
header p,
header a {
    font-family: Arial, Helvetica, Verdana, sans-serif !important;
    font-weight: bold;
    letter-spacing: 0.5px;
    margin-bottom: 0;
}
header h1 {
    color: black;
    margin-bottom: 0;
    font-size: 2.5rem;
    line-height: 1.1;
}
header p {
    margin-bottom: 0;
    white-space: nowrap;
}
header p i {
    font-size: 1.5rem;
    color: black;
}
header p a {
    color: black;
    font-size: 1.25rem;
    text-decoration: none;
}

/* --- ITALIAN FLAG CIRCLES --- */
.italia-circles {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 0;
}
.italiagreen, .italiawhite, .italiared {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: inline-block;
    border: 2px solid black;
    vertical-align: middle;
    margin-right: 0.3rem;
}
.italiared { margin-right: 0; }
.italiagreen { background-color: #008c45; }
.italiawhite { background-color: #ffffff; }
.italiared { background-color: #cd212a; }
.ItaliaHeading {
    margin-left: 10px;
    display: inline-block;
    vertical-align: middle;
}

/* --- LOCATION INFO (COUNTRY & FLAG) --- */
#location-info {
    display: flex;
    align-items: center;
    gap: 0.3em;
    font-size: 1rem;
    margin-left: 1rem;
    white-space: nowrap;
}
#location-info img {
    vertical-align: middle;
    margin-right: 0.3em;
    width: 24px;
    height: 18px;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.07);
}

/* --- NAVBAR --- */
.navbar {
    background-color: #dce0e3 !important;
    font-family: "Century Gothic", Arial, Helvetica, Tahoma, Verdana, sans-serif;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
}
.navbar-nav {
    justify-content: center;
    width: 100%;
    display: flex;
}
.navbar .nav-link {
    margin: 0 2.5rem;
    color: #000 !important;
    transition: background 0.2s, color 0.2s;
    border-radius: 0.3em;
    padding: 0.3em 0.7em;
}
.navbar .nav-link:last-child {
    margin-right: 0;
}
.navbar .nav-link:hover,
.navbar .nav-link:focus {
    background: #ffc107 !important;
    color: #000 !important;
    text-decoration: none;
}
.navbar .navbar-brand {
    color: #000 !important;
}

/* --- CART ICON --- */
.cart-link {
    position: relative;
    color: #000;
    font-size: 1.5rem;
    margin-left: 1.5rem;
    text-decoration: none;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
}
.cart-link:hover,
.cart-link:focus {
    color: #ffc107;
}
.cart-count {
    background: #ffc107;
    color: #000;
    border-radius: 50%;
    padding: 0.1em 0.5em;
    font-size: 0.9rem;
    position: absolute;
    top: -10px;
    right: -15px;
    font-weight: bold;
}

/* --- SHOP DETAILS & LINKS --- */
.shop-details {
    width: 100%;
    background: #f8f9fa;
    border-bottom: 1px solid #ccc;
    margin: 0;
    padding: 0;
}
.shop-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    padding: 1.2rem 0 1rem 0;
}
.shop-link {
    font-size: 1.1rem;
    color: #222 !important;
    text-decoration: none !important;
    font-weight: 600;
    padding: 0.3em 0.7em;
    border-radius: 0.3em;
    transition: background 0.2s, color 0.2s;
    background: transparent;
    display: inline-block;
    border: none;
    outline: none;
}
.shop-link:hover,
.shop-link:focus {
    background: #ffc107;
    color: #000 !important;
    text-decoration: none !important;
}

/* --- HERO SECTION --- */
.hero-section,
.hero-img-banner {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: #fff;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-img-full {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* --- BRAND GRID: Clean, Responsive, Professional --- */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
    justify-items: center;
    align-items: stretch;
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 991.98px) {
    .brand-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
}
@media (max-width: 575.98px) {
    .brand-grid {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }
}
.brand-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 1.1rem 0.5rem 0.9rem 0.5rem;
    text-decoration: none;
    color: #222;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    transition: box-shadow 0.18s, border-color 0.18s;
    min-width: 0;
}
.brand-tile:hover,
.brand-tile:focus {
    border-color: #ffc107;
    box-shadow: 0 4px 16px rgba(255,193,7,0.10);
    text-decoration: none;
    color: #000;
}
.brand-tile img {
    width: 100%;
    max-width: 110px;
    height: 60px;
    object-fit: contain;
    border-radius: 2px;
    margin-bottom: 0.5rem;
    background: #fff;
    box-shadow: none;
    border: none;
}
.brand-label {
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.15rem;
    text-align: center;
    color: #222;
    letter-spacing: 0.01em;
}
.brand-stock {
    font-size: 0.97rem;
    color: #198754;
    background: none;
    border-radius: 0.3em;
    padding: 0.1em 0.5em;
    margin-top: 0.1em;
    font-weight: 500;
    border: 1px solid #e0e0e0;
    display: inline-block;
}

/* --- BRAND LOGO THUMBNAILS FOR CONSISTENT SIZE --- */
.card-img-top {
  width: 120px;
  height: 120px;
  max-width: 120px;
  max-height: 120px;
  margin: 0 auto;
  display: block;
  object-fit: contain;
  background: #fff;
  padding: 10px;
}

/* --- PRODUCT PRICES --- */
.price {
    font-weight: 600;
    font-size: 1.1em;
    color: #198754;
    margin-top: 0.2rem;
    margin-left: 0.3em;
    text-align: center;
}

/* VAT label styling - smaller and red */
.vat-label {
    font-size: 0.75em;
    color: #dc3545;
    font-weight: normal;
}

/* --- AVAILABILITY LABELS --- */
.availability {
    font-weight: bold;
    padding: 0.2em 0.7em;
    border-radius: 0.3em;
    margin-left: 0.5em;
    display: inline-block;
    font-size: 1em;
}
.out-of-stock {
    background: #f8d7da;
    color: #721c24;
}
.awaiting-delivery {
    background: #fff3cd;
    color: #856404;
}
.sold {
    background: #f8d7da;
    color: #d90429;
}
.no-longer-available {
    background: #e2e3e5;
    color: #6c757d;
}

/* --- PRODUCT LIST/DETAILS (EXAMPLES) --- */
.product {
    margin-bottom: 1.2em;
    font-size: 1.1em;
}

/* --- FRAMES STATUS BAR --- */
.frames-status-bar {
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    font-size: 1.15rem;
    font-family: "Century Gothic", Arial, Helvetica, Tahoma, Verdana, sans-serif;
    font-weight: 400;
    color: #000;
    background: #e9ecef;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    border-radius: 0;
    padding: 0.7em 0.5em;
    margin-bottom: 1.5em;
    box-sizing: border-box;
}
.frames-status-bar .status-item {
    flex: 1 1 0;
    min-width: 120px;
    padding: 0.2em 0.5em;
    color: #000;
    font-family: inherit;
    font-weight: 400;
    border-radius: 0.3em;
    transition: background 0.2s, color 0.2s;
}
.frames-status-bar .status-item:hover,
.frames-status-bar .status-item:focus {
    background: #ffc107;
    color: #000;
    cursor: pointer;
    text-decoration: none;
}
@media (max-width: 600px) {
    .frames-status-bar {
        flex-direction: column;
        gap: 0.7rem;
        font-size: 1rem;
        padding: 0.5em 0.2em;
    }
}

/* --- UNIFIED STATUS BAR SYSTEM --- */
/* Universal status bar for all pages: bicycles, frames, components, wheels */
.universal-status-bar {
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    font-size: 1.15rem;
    font-family: "Century Gothic", Arial, Helvetica, Tahoma, Verdana, sans-serif;
    font-weight: 400;
    color: #000;
    background: #e9ecef;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    border-radius: 0;
    padding: 0.7em 0.5em;
    margin-bottom: 1.5em;
    box-sizing: border-box;
}

.universal-status-bar .status-item {
    flex: 1 1 auto;
    min-width: 120px;
    max-width: 180px;
    padding: 0.5em 1em;
    color: #1a4d8f;
    font-family: inherit;
    font-weight: 500;
    background: white;
    border: 2px solid #1a4d8f;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.universal-status-bar .status-item:hover,
.universal-status-bar .status-item:focus {
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    text-decoration: none;
    color: #1a4d8f;
}

.universal-status-bar .status-item.active {
    background: #1a4d8f;
    color: white;
    font-weight: 600;
    text-decoration: none;
}

.universal-status-bar .status-item.active:hover {
    background: #164080;
    transform: translateY(-1px);
    color: white;
}

@media (max-width: 768px) {
    .universal-status-bar {
        flex-direction: column;
        gap: 0.8rem;
        font-size: 1rem;
        padding: 0.5em 0.3em;
    }
    .universal-status-bar .status-item {
        min-width: 140px;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .universal-status-bar {
        gap: 0.6rem;
        font-size: 0.9rem;
    }
    .universal-status-bar .status-item {
        min-width: 120px;
        padding: 0.4em 0.8em;
    }
}

/* --- FOOTER --- */
footer {
    background-color: #dce0e3;
    color: #000;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    padding: 1rem 0;
    text-align: center;
    font-family: Arial, Helvetica, Verdana, sans-serif !important;
    font-weight: normal;
    letter-spacing: 0.5px;
}
.footer-flex-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.5rem 0;
}
.footer-social {
    display: flex;
    align-items: center;
    gap: 1.3rem;
}
.footer-logo-link {
    display: flex;
    align-items: center;
}
.footer-logo {
    max-height: 32px; /* IMPROVED: larger logo for visibility */
    width: auto;
    vertical-align: middle;
    display: inline-block;
    margin-right: 8px;
}
.footer-social a i,
.footer-ebay i {
    font-size: 2rem; /* IMPROVED: larger icons for visibility */
    vertical-align: middle;
    line-height: 1;
}
.footer-ebay {
    color: #e53238; /* IMPROVED: eBay brand color */
    font-size: 2rem;
    transition: color 0.2s;
}
.footer-ebay:hover,
.footer-ebay:focus {
    color: #ffc107;
}
.footer-social a {
    color: #000;
    font-size: 2rem; /* IMPROVED: larger icons for visibility */
    transition: color 0.2s;
    display: inline-block;
    margin-right: 8px;
}
.footer-social a:last-child {
    margin-right: 0;
}
.footer-social a:hover,
.footer-social a:focus {
    color: #ffc107;
}
.footer-social a[href*="wa.me"]:hover i,
.footer-social a[href*="whatsapp.com"]:hover i,
.footer-social a[href*="wa.me"]:focus i,
.footer-social a[href*="whatsapp.com"]:focus i {
    color: #25d366 !important;
}
.footer-business-details-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-top: 1.5rem;
    font-size: 0.97rem;
    color: #333;
    opacity: 0.85;
    flex-wrap: wrap;
}
.footer-business-col {
    flex: 1 1 0;
    min-width: 220px;
    max-width: 350px;
    text-align: left;
    margin-bottom: 1rem;
}
.footer-business-col a {
    color: #333;
    text-decoration: underline;
    margin-bottom: 0.3em;
    display: inline-block;
    font-weight: normal;
}
.footer-business-col a:hover {
    color: #25d366;
}
.footer-business-col strong {
    display: inline;
    margin-top: 0;
    margin-bottom: 0;
    font-weight: bold;
    color: #222;
    margin-right: 0.3em;
}
.footer-business-details-extra {
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 0.5rem;
    opacity: 0.85;
    text-align: left;
    font-weight: normal;
}
.footer-business-details-extra a {
    color: #333;
    text-decoration: underline;
    font-weight: normal;
}
.footer-business-details-extra a:hover {
    color: #ffc107;
}

/* --- FRAMES MOSAIC BANNER --- */
.frames-mosaic-banner {
    width: 100vw;
    min-width: 100vw;
    max-width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    border: none;
    height: 110px;
    display: flex;
    padding: 0;
    background: #222;
}
.frames-mosaic-banner .banner-img {
    width: 20vw;
    min-width: 20vw;
    max-width: 20vw;
    height: 110px;
    object-fit: cover;
    display: block;
    border: none;
    margin: 0;
    padding: 0;
}
@media (max-width: 767px) {
    .frames-mosaic-banner, .frames-mosaic-banner .banner-img {
        height: 60px;
    }
}

/* --- FRAMES HEADING --- */
.frames-heading {
    font-size: 2.3rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #198754;
    margin-top: 1.5rem;
    margin-bottom: 1.2rem;
}

/* --- FILTER BUTTONS: Modern Tab Style --- */
.frames-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    margin-bottom: 1.2em;
    background: #f4f6f8;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    padding: 0.2em 0.2em;
    box-shadow: 0 1px 4px #0001;
}
.frames-filters .filter-btn {
    display: inline-block;
    background: transparent;
    color: #222;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    padding: 0.7em 2.1em 0.5em 2.1em;
    font-size: 1.08em;
    font-weight: 500;
    margin: 0;
    transition: 
        color 0.18s,
        border-bottom 0.18s,
        background 0.18s;
    text-decoration: none;
    cursor: pointer;
    outline: none;
    box-shadow: none;
    position: relative;
}
.frames-filters .filter-btn:not(:last-child) {
    border-right: 1px solid #e0e0e0;
}
.frames-filters .filter-btn .count {
    background: #e9f5ee;
    color: #198754;
    border-radius: 1em;
    padding: 0.1em 0.7em;
    margin-left: 0.5em;
    font-size: 0.92em;
    font-weight: 600;
}
.frames-filters .filter-btn.active,
.frames-filters .filter-btn:hover,
.frames-filters .filter-btn:focus {
    color: #198754;
    background: #fff;
    border-bottom: 3px solid #198754;
    z-index: 1;
}

/* --- BRAND BREAKDOWN CHIPS --- */
.brand-breakdown {
    font-size: 1.08em;
    color: #444;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5em;
    margin-bottom: 1.5em;
}
.brand-chip {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 1.5em;
    padding: 0.3em 1.1em;
    margin: 0.1em 0.2em;
    font-weight: 500;
    color: #198754;
    display: inline-block;
}
.brand-chip .count {
    background: #198754;
    color: #fff;
    border-radius: 1em;
    padding: 0.1em 0.7em;
    margin-left: 0.5em;
    font-size: 0.95em;
    font-weight: 700;
}

/* --- MODEL CHIPS (for model filtering) --- */
.model-chip {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 1.5em;
    padding: 0.3em 1.1em;
    margin: 0.1em 0.2em;
    font-weight: 500;
    color: #198754;
    display: inline-block;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
    user-select: none;
}
.model-chip.active {
    background: #198754;
    color: #fff;
    border-color: #198754;
}

/* --- RESPONSIVE --- */
@media (max-width: 1100px) {
    header p {
        font-size: 1rem;
    }
}
@media (max-width: 1020px) {
    .hero-img-banner {
        border-radius: 0;
    }
    .hero-img-full {
        max-width: 100%;
    }
}
@media (max-width: 900px) {
    .hero-img-banner {
        width: 100%;
        max-width: 100%;
    }
}
@media (max-width: 900px) {
    .frame-card-row {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 0.5rem 0.5rem 0.5rem;
    }
    .frame-card-img {
        max-width: 100%;
        margin-bottom: 1rem;
    }
}
@media (max-width: 768px) {
    header .container {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem;
    }
    header .d-flex.align-items-center {
        width: 100%;
        justify-content: center !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    .italia-circles {
        margin-bottom: 0.2rem;
    }
    .italiagreen, .italiawhite, .italiared {
        width: 1.5rem;
        height: 1.5rem;
        margin-right: 0.2rem;
    }
    .italiared {
        margin-right: 0;
    }
    .ItaliaHeading {
        margin-left: 0;
        margin-top: 0.5rem;
        text-align: left;
        font-size: 2rem;
    }
    header p {
        margin-top: 0.5rem;
        font-size: 1rem;
        width: 100%;
        text-align: center;
    }
    .footer-flex-split {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .footer-social {
        margin-top: 0.5rem;
        justify-content: flex-start;
        width: 100%;
    }
    .hero-img-banner {
        margin: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
    }
    .hero-img-full {
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 60vw;
    }
    .footer-business-details-row {
        flex-direction: column;
        gap: 0.5rem;
    }
    .footer-business-col {
        max-width: 100%;
        min-width: 0;
        text-align: left;
    }
    .footer-business-details-extra {
        text-align: left;
    }
    .frames-mosaic-banner, .frames-mosaic-banner .banner-img {
        height: 60px;
    }
    .frames-filters .filter-btn {
        padding: 0.7em 1em 0.5em 1em;
        font-size: 1em;
    }
    .brand-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.2rem;
    }
}
@media (max-width: 575.98px) {
    .frames-main-inner {
        padding-left: 4px;
        padding-right: 4px;
    }
    .brand-grid {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }
}

/* --- UTILITY CLASSES --- */
.text-success {
    color: #198754 !important;
}
.fs-4 {
    font-size: 1.5rem !important;
}

/* --- GLightbox Custom Styles --- */
.glightbox-clean .gslide-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}
.glightbox-clean .gslide-title {
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 0.5em;
  color: #222;
  text-align: center;
}
.glightbox-clean .gslide-desc {
  color: #555;
  font-size: 1rem;
  text-align: center;
  margin-bottom: 0.5em;
}
.glightbox-clean .gprev, .glightbox-clean .gnext {
  background: rgba(0,0,0,0.5) !important;
  border-radius: 50% !important;
  width: 44px !important;
  height: 44px !important;
  top: 50% !important;
  transform: translateY(-50%);
}
.glightbox-clean .gclose {
  background: rgba(0,0,0,0.7) !important;
  border-radius: 50% !important;
  width: 44px !important;
  height: 44px !important;
  top: 24px !important;
  right: 24px !important;
}
.glightbox-clean .gclose svg,
.glightbox-clean .gprev svg,
.glightbox-clean .gnext svg {
  width: 24px !important;
  height: 24px !important;
}
.glightbox-container {
  background: rgba(0,0,0,0.92) !important;
}

/* --- FRAME CARD & MODAL GALLERY STYLES --- */
.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.gallery-grid a {
  flex: 1 0 30%;
  max-width: 30%;
  min-width: 120px;
}
.gallery-grid img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.demo-frame-card {
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.2rem 1rem 1rem 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  margin-bottom: 1.5rem;
  text-align: center;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.demo-frame-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}
.demo-frame-card:hover,
.demo-frame-card:focus-within {
  border-color: #ffc107;
  box-shadow: 0 4px 16px rgba(255,193,7,0.12);
}
.frame-details-grid dt {
  font-weight: bold;
  color: #222;
}
.frame-details-grid dd {
  margin-bottom: 0.5em;
  color: #333;
}

/* --- PRODUCT GRID IMAGE WRAPPER FOR PERFECT BALANCE --- */
.product-card-img-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 260px;
  background: #fff;
  border-radius: 6px 6px 0 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  overflow: hidden;
  margin-bottom: 0.5em;
}
@media (max-width: 991.98px) {
  .product-card-img-wrapper {
    height: 180px;
  }
}
@media (max-width: 575.98px) {
  .product-card-img-wrapper {
    height: 110px;
  }
}
.card-img-top.responsive-product-img {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  height: auto !important;
  object-fit: contain !important;
  background: transparent;
  display: block;
  margin: 0 auto;
  padding: 0 !important;
  border-radius: 0;
  box-shadow: none;
}
/* Center and balance the product title row */
.product-card-title-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.5em;
  margin-bottom: 0.25em;
  text-align: center;
  font-size: 1.08rem;
  font-weight: 600;
}

.product-card-title-row .card-title,
.product-card-title-row .text-muted.ms-2 {
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
  padding: 0;
}

/* --- Add to Cart Button --- */
.add-to-cart-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.55em 1.5em;
    font-size: 1.08rem;
    font-weight: 600;
    color: #fff;
    background: #198754;
    border: none;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: background 0.18s, box-shadow 0.18s;
    cursor: pointer;
    text-align: center;
    letter-spacing: 0.5px;
}
.add-to-cart-btn:hover,
.add-to-cart-btn:focus {
    background: #145c32;
    box-shadow: 0 4px 16px rgba(25,135,84,0.12);
    color: #fff;
    text-decoration: none;
    outline: none;
}
@media (max-width: 600px) {
    .add-to-cart-btn {
        width: 100%;
        font-size: 1rem;
        padding: 0.7em 0;
    }
}

/* --- FRAME CARD MODERN LAYOUT --- */
.frame-card-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    margin: 0 auto 1.5rem auto;
    padding: 1.2rem 1.2rem 0.8rem 1.2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    max-width: 900px;
}
.frame-card-img {
    flex: 0 0 220px;
    max-width: 220px;
    width: 100%;
    text-align: center;
}
.frame-card-img img {
    width: 100%;
    max-width: 210px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    background: #fff;
}
.frame-card-details {
    flex: 1 1 0;
    min-width: 220px;
    color: #222;
}
.frame-card-details h5 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
    color: #222;
    text-align: left;
}
.frame-card-details .frame-fields {
    font-size: 1.05rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}
.frame-card-details .frame-fields span {
    display: inline-block;
    min-width: 120px;
    font-weight: 500;
    color: #444;
}
.frame-card-details .frame-fields .field-group {
    margin-bottom: 0.2em;
}
.frame-card-details .price {
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 0.7rem;
    margin-bottom: 0.2rem;
    display: inline-block;
}
@media (max-width: 900px) {
    .frame-card-row {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 0.5rem 0.5rem 0.5rem;
    }
    .frame-card-img {
        max-width: 100%;
        margin-bottom: 1rem;
    }
}

/* --- FRAME SUMMARY CARD LAYOUT --- */
.frames-thumbnails-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  margin-bottom: 2em;
}
@media (max-width: 575.98px) {
  .frames-thumbnails-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }
}
.frame-summary-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 2px 8px #0001;
  padding: 1.1rem 1rem 0.9rem 1rem;
  margin-bottom: 1.5rem;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.frame-summary-header {
  font-size: 1.13rem;
  font-weight: 700;
  color: #198754;
  margin-bottom: 0.5em;
  letter-spacing: 0.01em;
}
.frame-summary-img-row {
  margin-bottom: 0.7em;
}
.frame-summary-img {
  width: 120px;
  height: 80px;
  object-fit: contain;
  border-radius: 4px;
  background: #f8f9fa;
  box-shadow: 0 1px 4px #0001;
  border: none;
}
.frame-summary-details {
  font-size: 1.01rem;
  color: #444;
  margin-bottom: 0.5em;
}
.frame-summary-price-row {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 1.2em;
  margin-bottom: 0.2em;
}
.frame-summary-price-row .price {
  font-size: 1.13rem;
  font-weight: 700;
  color: #198754;
}
.frame-summary-price-row .frame-id {
  font-size: 0.98rem;
  color: #888;
  font-weight: 500;
}

/* --- Remove bubble style from .brand-chip .count and .filter-btn .count --- */
.brand-chip .count,
.frames-filters .filter-btn .count {
    background: none;
    color: inherit;
    border-radius: 0;
    padding: 0 0.3em;
    margin-left: 0.4em;
    font-size: 0.95em;
    font-weight: 500;
    border: none;
}
/* --- End of styles.css --- */

/* --- FRAMES.PHP LAYOUT FIXES AND ENHANCEMENTS --- */

/* Banner Row */
.frames-banner-row {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  overflow-x: auto;
  background: #e5e5e5;
  border-bottom: 2px solid #1a4d8f;
  min-height: 180px;
  justify-content: center;
  align-items: center;
  padding: 0;
}
.frames-banner-img {
  height: 180px;
  width: auto;
  object-fit: cover;
  margin-right: 0;
  border-right: 1px solid #fff;
  background: #fff;
  flex: 1 1 0;
  min-width: 0;
}
.frames-banner-img:last-child {
  border-right: none;
}

/* Brand Bar */
.frames-brand-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin-bottom: 1.2em;
  align-items: center;
}
.brand-link {
  background: #f3f3f3;
  color: #1a4d8f;
  border-radius: 16px;
  padding: 0.3em 1em;
  font-size: 1em;
  border: 1px solid #1a4d8f;
  margin-bottom: 0.2em;
  transition: background 0.2s, color 0.2s;
  display: inline-block;
}
.brand-link.active-brand, .brand-link:hover, .brand-link:focus {
  background: #1a4d8f;
  color: #fff;
  text-decoration: none;
}
.show-all-link {
  font-weight: 600;
  border: 2px solid #e67e22;
  color: #e67e22;
  background: #fff;
}
.show-all-link.active-brand, .show-all-link:hover, .show-all-link:focus {
  background: #e67e22;
  color: #fff;
  border-color: #e67e22;
}

/* Frames Grid */
.frames-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.frame-list-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  box-shadow: 0 2px 8px #0001;
  padding: 1.1rem 1rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.2s, border 0.2s;
  cursor: pointer;
  min-height: 370px;
  outline: none;
}
.frame-list-card:focus, .frame-list-card:hover {
  border: 1.5px solid #e67e22;
  box-shadow: 0 4px 16px #e67e2240;
}
.frame-thumb {
  width: 100%;
  max-width: 220px;
  height: 140px;
  object-fit: contain;
  border-radius: 8px;
  background: #f8f8f8;
  margin-bottom: 0.7em;
  border: 1px solid #e5e5e5;
}
.frame-list-details {
  width: 100%;
  text-align: left;
  padding: 0.2em 0.1em 0 0.1em;
}
.frame-list-title {
  font-size: 1.1em;
  font-weight: 600;
  color: #1a4d8f;
  margin-bottom: 0.2em;
}
.frame-list-material, .frame-list-seat, .frame-list-finish, .frame-list-id {
  font-size: 0.98em;
  color: #444;
  margin-bottom: 0.1em;
}
.frame-list-price {
  font-size: 1.08em;
  font-weight: 600;
  color: #e67e22;
  margin-top: 0.3em;
  text-align: left;
  display: block;
  margin-left: 0;
}
.vat-label {
  font-size: 0.75em;
  color: #dc3545;
  margin-left: 0.5em;
}

/* Table for Workshop/Preparation/Chrome/Paint */
.frames-list-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px #0001;
}
.frames-list-table th, .frames-list-table td {
  padding: 0.7em 1em;
  border-bottom: 1px solid #e5e5e5;
  text-align: left;
}
.frames-list-table th {
  background: #1a4d8f;
  color: #fff;
  font-weight: 600;
  font-size: 1.05em;
}
.frames-list-table tr:last-child td {
  border-bottom: none;
}
.frames-list-table tr:hover {
  background: #f7f7f7;
}

/* Modal */
.modal-content {
  border-radius: 14px;
}
#frameDetailModalBody {
  min-height: 300px;
}

/* Responsive for frames.php */
@media (max-width: 991px) {
  .frames-list-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.1rem;
  }
}
@media (max-width: 600px) {
  .frames-banner-img {
    height: 120px;
  }
  .frames-list-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }
  .frame-list-card {
    min-height: 320px;
    padding: 0.7rem 0.5rem 0.7rem 0.5rem;
  }
  .frame-thumb {
    max-width: 100%;
    height: 90px;
  }
  .frames-list-table th, .frames-list-table td {
    padding: 0.5em 0.5em;
    font-size: 0.98em;
  }
}

/* --- VAT LABEL STYLING --- */
.vat-label {
  font-weight: normal;
  color: #dc3545;
  font-size: 0.75em;
}

/* --- CART ITEM STYLING --- */
.cart-item {
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.cart-item:hover {
    background-color: #f8f9fa;
}

.quantity-controls {
    min-width: 120px;
}

.quantity-controls .btn {
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-controls input {
    max-width: 60px;
    text-align: center;
}

.cart-item-info h6 {
    margin-bottom: 4px;
    font-weight: 600;
}

.price-display {
    text-align: center;
}

.unique-item-badge {
    background-color: #ffc107 !important;
    color: #000;
    font-size: 0.75rem;
    padding: 2px 6px;
}

.cart-item .col-md-1,
.cart-item .col-md-2 {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}