
/* ========================================================
   PHILIPS LIGHTING MODERN BRAND STYLING & SEO ENHANCEMENT
   Colors: #0066A1 (Philips Blue), #003B64 (Deep Blue), #FFAE00 (LED Amber)
   ======================================================== */

:root {
  --philips-blue: #0066A1;
  --philips-dark: #003B64;
  --philips-deep: #00223D;
  --philips-cyan: #00A3E0;
  --philips-gold: #FFAE00;
  --philips-bg: #F8FAFC;
  --philips-card-bg: #FFFFFF;
  --philips-text: #1E293B;
  --philips-muted: #64748B;
  --philips-border: #E2E8F0;
  --philips-radius: 8px;
  --philips-shadow: 0 4px 16px rgba(0, 59, 100, 0.08);
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif !important;
  color: var(--philips-text) !important;
  background-color: var(--philips-bg) !important;
  line-height: 1.6;
}

/* Header & Navigation */
.header, #header {
  background: #FFFFFF !important;
  box-shadow: 0 2px 12px rgba(0, 34, 61, 0.08) !important;
  border-bottom: 3px solid var(--philips-blue) !important;
}

.hcontent {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 10px 0 !important;
}

/* Menu styling */
.ddsmoothmenu, #menu, .mainmenu {
  background: var(--philips-dark) !important;
  border-radius: var(--philips-radius) var(--philips-radius) 0 0;
}

.ddsmoothmenu ul li a, #menu ul li a {
  color: #FFFFFF !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  text-transform: uppercase !important;
  padding: 12px 16px !important;
  transition: all 0.25s ease !important;
}

.ddsmoothmenu ul li a:hover, #menu ul li a:hover,
.ddsmoothmenu ul li.selected a {
  background: var(--philips-blue) !important;
  color: #FFFFFF !important;
}

/* Product Cards */
.product, .product_item, .box_product, .item_pro {
  background: var(--philips-card-bg) !important;
  border: 1px solid var(--philips-border) !important;
  border-radius: var(--philips-radius) !important;
  box-shadow: var(--philips-shadow) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  padding: 14px !important;
  position: relative;
  overflow: hidden;
}

.product:hover, .product_item:hover, .box_product:hover, .item_pro:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 10px 24px rgba(0, 102, 161, 0.16) !important;
  border-color: var(--philips-cyan) !important;
}

.product .title, .product_item .pro_name, .box_product h3 a {
  color: var(--philips-dark) !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  text-decoration: none !important;
  line-height: 1.4 !important;
}

.product .title:hover, .product_item .pro_name:hover, .box_product h3 a:hover {
  color: var(--philips-blue) !important;
}

/* Price & CTA */
.price, .price_pro, .pro_price {
  color: #D97706 !important;
  font-weight: 700 !important;
  font-size: 16px !important;
}

.btn, .button, .btn_detail, .btn_buy {
  background: linear-gradient(135deg, var(--philips-blue) 0%, var(--philips-dark) 100%) !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 8px 16px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  display: inline-block !important;
  text-decoration: none !important;
  transition: opacity 0.2s ease !important;
}

.btn:hover, .button:hover, .btn_detail:hover, .btn_buy:hover {
  opacity: 0.9 !important;
  color: #FFFFFF !important;
}

/* Footer Styling */
.footer, #footer {
  background: var(--philips-deep) !important;
  color: #CBD5E1 !important;
  border-top: 4px solid var(--philips-blue) !important;
  padding: 40px 0 20px 0 !important;
}

.footer a, #footer a {
  color: #E2E8F0 !important;
  text-decoration: none !important;
}

.footer a:hover, #footer a:hover {
  color: var(--philips-gold) !important;
}

/* ==========================================================================
   PHILIPS PRODUCTS GRID - EXACT 3 PRODUCTS PER ROW (APPLE CLEAN STYLE)
   ========================================================================== */
ul.products-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 24px 0 !important;
    padding: 0 !important;
    list-style: none !important;
    box-sizing: border-box !important;
    float: none !important;
}

ul.products-grid::after,
ul.products-grid::before {
    display: none !important;
}

ul.products-grid li.item {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    float: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 14px !important;
    transition: all 0.25s ease !important;
    position: relative !important;
    box-shadow: 0 2px 8px rgba(0,20,50,0.04) !important;
}

ul.products-grid li.item:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 24px rgba(0,75,135,0.12) !important;
    border-color: #004b87 !important;
}

ul.products-grid .product-image {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 190px !important;
    margin: 0 0 10px 0 !important;
    overflow: hidden !important;
    background: #ffffff !important;
    border-radius: 8px !important;
}

ul.products-grid .product-image img {
    max-width: 100% !important;
    max-height: 190px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    margin: 0 auto !important;
    border: none !important;
    transition: transform 0.3s ease !important;
}

ul.products-grid li.item:hover .product-image img {
    transform: scale(1.05) !important;
}

ul.products-grid .product-name {
    margin: 6px 0 8px 0 !important;
    padding: 0 !important;
    font-size: 13.5px !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    text-align: left !important;
    height: 38px !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
}

ul.products-grid .product-name a {
    color: #1e293b !important;
    text-decoration: none !important;
    font-size: 13.5px !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-align: left !important;
}

ul.products-grid .product-name a:hover {
    color: #004b87 !important;
    text-decoration: none !important;
}

ul.products-grid .product-price {
    font-size: 15.5px !important;
    font-weight: 700 !important;
    color: #004b87 !important;
    margin: 4px 0 !important;
    text-align: left !important;
}

ul.products-grid .product-old-price {
    font-size: 12px !important;
    color: #94a3b8 !important;
    text-decoration: line-through !important;
    margin: 0 !important;
    min-height: 14px !important;
}

ul.products-grid .actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    margin-top: auto !important;
    padding: 8px 0 0 0 !important;
}

ul.products-grid .actions .btn-circle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: #004b87 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

ul.products-grid .actions .btn-circle:hover {
    background: #003366 !important;
    transform: scale(1.08) !important;
}

ul.products-grid .actions .btn-circle i {
    font-size: 14px !important;
    color: #ffffff !important;
}

/* Tablet & Mobile Responsiveness */
@media (max-width: 768px) {
    ul.products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }
    ul.products-grid .product-image {
        height: 150px !important;
    }
}

@media (max-width: 480px) {
    ul.products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }
    ul.products-grid li.item {
        padding: 8px !important;
        border-radius: 10px !important;
    }
    ul.products-grid .product-image {
        height: 130px !important;
    }
    ul.products-grid .product-name {
        font-size: 12px !important;
        height: 34px !important;
    }
    ul.products-grid .product-price {
        font-size: 13.5px !important;
    }
}

/* ==========================================================================
   TRIAD POINTER-EVENTS & SMOOTH NAVIGATION ACCELERATION
   ========================================================================== */
.ddsmoothmenu,
#ddsmoothmenu,
.ddsmoothmenu ul,
#ddsmoothmenu ul,
.ddsmoothmenu ul li,
#ddsmoothmenu ul li,
.ddsmoothmenu ul li ul,
#ddsmoothmenu ul li ul,
.ddsmoothmenu ul li ul li,
#ddsmoothmenu ul li ul li,
.ddsmoothmenu ul li a,
#ddsmoothmenu ul li a,
.ddsmoothmenu ul li ul li a,
#ddsmoothmenu ul li ul li a,
.ddsmoothmenu ul li ul li a *,
#ddsmoothmenu ul li ul li a * {
    pointer-events: auto !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
    cursor: pointer !important;
}

.ddsmoothmenu ul li ul {
    will-change: opacity, visibility;
    transition: opacity 0.2s ease, visibility 0.2s ease !important;
}
