/* ==========================================================================
   THE TELEPHONE SHOP - LUXURY MODERN DESIGN SYSTEM (Red, Obsidian Black, Crisp White)
   ========================================================================== */

:root {
    --tts-font-heading: 'Outfit', 'Inter', sans-serif;
    --tts-font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

    /* Primary Accent Palette */
    --tts-red: #E50914;
    --tts-red-hover: #b91c1c;
    --tts-red-dark: #990000;
    --tts-red-light: #fef2f2;
    --tts-red-subtle: #fee2e2;
    --tts-red-glow: rgba(229, 9, 20, 0.35);

    /* Obsidian Dark & Slate Palette */
    --tts-black: #0B0F17;
    --tts-dark: #111827;
    --tts-dark-card: #161F30;
    --tts-slate-900: #0f172a;
    --tts-slate-800: #1e293b;
    --tts-slate-700: #334155;
    --tts-gray-dark: #1F2937;
    --tts-gray-medium: #4B5563;
    --tts-gray-light: #9CA3AF;
    --tts-gray-subtle: #F1F5F9;
    --tts-bg-light: #F8FAFC;
    --tts-white: #FFFFFF;

    --bs-primary: #E50914;
    --bs-primary-rgb: 229, 9, 20;
}

/* Global Font & Body Overrides */
body {
    font-family: var(--tts-font-body) !important;
    color: #334155;
    background-color: #FFFFFF;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6,
.title_text, .big_title, .item_title, .footer-heading, .contact_title, .section_title, .area_title {
    font-family: var(--tts-font-heading) !important;
    letter-spacing: -0.02em;
    font-weight: 700;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--tts-red);
}

/* ==========================================================================
   BUTTONS (Luxury Pill, Glow & Hover Styling)
   ========================================================================== */
.btn_primary,
.btn-primary,
button.btn_primary,
a.btn_primary {
    background: linear-gradient(135deg, #E50914 0%, #C80812 100%) !important;
    border: none !important;
    color: #FFFFFF !important;
    font-family: var(--tts-font-heading) !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    padding: 13px 28px !important;
    border-radius: 50px !important;
    box-shadow: 0 8px 20px rgba(229, 9, 20, 0.3) !important;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    text-decoration: none !important;
}

.btn_primary:hover,
.btn-primary:hover,
button.btn_primary:hover,
a.btn_primary:hover {
    background: #0B0F17 !important;
    color: #FFFFFF !important;
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 12px 28px rgba(11, 15, 23, 0.35) !important;
}

.btn_secondary,
.btn-secondary {
    background: #111827 !important;
    border: none !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    border-radius: 50px !important;
    padding: 13px 26px !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
}

.btn_secondary:hover,
.btn-secondary:hover {
    background: #E50914 !important;
    color: #FFFFFF !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(229, 9, 20, 0.25) !important;
}

.btn_border {
    border: 2px solid #E50914 !important;
    color: #E50914 !important;
    background: transparent !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
    padding: 12px 26px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
}

.btn_border:hover {
    background: #E50914 !important;
    color: #FFFFFF !important;
    box-shadow: 0 8px 20px rgba(229, 9, 20, 0.25) !important;
    transform: translateY(-2px) !important;
}

.btn_dark,
.btn-dark {
    background: #111827 !important;
    border-color: #111827 !important;
    color: #FFFFFF !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
}

.btn_dark:hover,
.btn-dark:hover {
    background: #E50914 !important;
    border-color: #E50914 !important;
    color: #FFFFFF !important;
    box-shadow: 0 8px 20px rgba(229, 9, 20, 0.3) !important;
    transform: translateY(-2px) !important;
}

/* ==========================================================================
   NAVIGATION & FLOATING HEADER
   ========================================================================== */
.header_section {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05) !important;
}

.modern-search-box {
    background: #F3F4F6 !important;
    border: 1.5px solid #E5E7EB !important;
    border-radius: 50px !important;
    transition: all 0.3s ease !important;
}

.modern-search-box:focus-within {
    background: #FFFFFF !important;
    border-color: #E50914 !important;
    box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.1) !important;
}

.modern-search-box button {
    color: #E50914 !important;
}

/* ==========================================================================
   HERO SLIDER MODERN ENHANCEMENTS
   ========================================================================== */
.slider_section {
    position: relative;
    background: radial-gradient(circle at 85% 45%, #1e293b 0%, #0B0F17 100%) !important;
    padding: 70px 0 !important;
    overflow: hidden;
}

.slider_section::before {
    content: '';
    position: absolute;
    top: -15%;
    right: 10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(229, 9, 20, 0.22) 0%, rgba(229, 9, 20, 0) 70%);
    filter: blur(60px);
    pointer-events: none;
}

.slider_section .slider_content .small_title {
    color: #E50914 !important;
    font-weight: 800 !important;
    font-size: 13px !important;
    letter-spacing: 2.5px !important;
    text-transform: uppercase !important;
    display: inline-block;
    padding: 6px 16px;
    background: rgba(229, 9, 20, 0.12);
    border-radius: 30px;
    border: 1px solid rgba(229, 9, 20, 0.35);
    margin-bottom: 16px;
}

.slider_section .slider_content .big_title {
    color: #FFFFFF !important;
    font-size: 48px !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
    margin-bottom: 16px !important;
    letter-spacing: -1px;
}

.slider_section .slider_content p {
    color: #9CA3AF !important;
    font-size: 16px !important;
    line-height: 1.6;
}

.slider_section .item_price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.slider_section .item_price .sale_price {
    color: #FFFFFF !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, #FFFFFF 0%, #E2E8F0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.slider_section .item_price del {
    color: #64748B !important;
    font-size: 18px !important;
}

.slider_section .slider_image img {
    filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.6));
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 440px;
    object-fit: contain;
}

.slider_section .slider_image:hover img {
    transform: scale(1.05) rotate(-1deg);
}

/* ==========================================================================
   POLICY / VALUE PROPOSITIONS BAR
   ========================================================================== */
.policy_section {
    background: #FFFFFF !important;
    border: none !important;
    border-radius: 20px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06) !important;
    margin: -35px auto 40px !important;
    max-width: 1240px;
    position: relative;
    z-index: 10;
    padding: 24px 20px !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 16px !important;
    border-bottom: 3px solid #E50914 !important;
}

.policy_item {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 10px 16px !important;
    border-right: 1px solid #F1F5F9;
    transition: all 0.3s ease;
}

.policy_item:last-child {
    border-right: none;
}

.policy_item .item_icon {
    width: 50px;
    height: 50px;
    background: var(--tts-red-light);
    color: var(--tts-red) !important;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--tts-red-subtle);
}

.policy_item:hover .item_icon {
    background: var(--tts-red);
    color: #FFFFFF !important;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(229, 9, 20, 0.3);
}

.policy_item .item_content .item_title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin-bottom: 2px !important;
}

.policy_item .item_content p {
    font-size: 12px !important;
    color: #64748B !important;
    margin: 0 !important;
}

/* ==========================================================================
   CAROUSEL NAVIGATION BUTTONS
   ========================================================================== */
.carousel_nav button,
.tc_left_arrow, .tc_right_arrow,
.hdc_left_arrow, .hdc_right_arrow,
.bsc_left_arrow, .bsc_right_arrow,
.cc2_left_arrow, .cc2_right_arrow,
.cc3_left_arrow, .cc3_right_arrow,
.npc_left_arrow, .npc_right_arrow,
.vpc_left_arrow, .vpc_right_arrow,
.vs4i_left_arrow, .vs4i_right_arrow,
.slick-prev, .slick-next {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: #FFFFFF !important;
    border: 1.5px solid #E2E8F0 !important;
    color: #111827 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.carousel_nav button:hover,
.tc_left_arrow:hover, .tc_right_arrow:hover,
.hdc_left_arrow:hover, .hdc_right_arrow:hover,
.bsc_left_arrow:hover, .bsc_right_arrow:hover,
.cc2_left_arrow:hover, .cc2_right_arrow:hover,
.cc3_left_arrow:hover, .cc3_right_arrow:hover,
.npc_left_arrow:hover, .npc_right_arrow:hover,
.vpc_left_arrow:hover, .vpc_right_arrow:hover,
.vs4i_left_arrow:hover, .vs4i_right_arrow:hover,
.slick-prev:hover, .slick-next:hover {
    background: #E50914 !important;
    border-color: #E50914 !important;
    color: #FFFFFF !important;
    transform: scale(1.1) !important;
    box-shadow: 0 8px 20px rgba(229, 9, 20, 0.35) !important;
}

/* ==========================================================================
   BREADCRUMB SECTION
   ========================================================================== */
.breadcrumb_section {
    background: #F8FAFC !important;
    padding: 24px 0 !important;
    border-bottom: 1px solid #E2E8F0;
}

.breadcrumb_nav {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
}

.breadcrumb_nav li a {
    color: #64748B;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb_nav li a:hover {
    color: #E50914;
}

.breadcrumb_nav li:not(:last-child)::after {
    content: '/';
    margin-left: 10px;
    color: #CBD5E1;
}

.breadcrumb_nav li:last-child {
    color: #111827;
    font-weight: 700;
}

/* ==========================================================================
   SHOP SIDEBAR & FILTERS
   ========================================================================== */
.sidebar_section {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.sb_widget {
    margin-bottom: 30px;
}

.sb_widget:last-child {
    margin-bottom: 0;
}

.sb_widget_title, .area_title {
    font-size: 17px !important;
    font-weight: 800 !important;
    color: #111827 !important;
    padding-bottom: 12px;
    border-bottom: 2px solid #F1F5F9;
    margin-bottom: 16px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sb_widget_title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #E50914;
    border-radius: 2px;
}

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

.sb_category_list li {
    margin-bottom: 8px;
}

.sb_category_list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 8px;
    color: #4B5563;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
}

.sb_category_list li a:hover {
    background: #FEF2F2;
    color: #E50914;
    transform: translateX(4px);
}

.sb_category_list li a.fw-bold.text-primary,
.sb_category_list li a.active {
    background: #E50914 !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.25);
}

.filter_topbar {
    background: #FFFFFF;
    border-radius: 14px;
    padding: 16px 20px;
    border: 1px solid #E2E8F0;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.layout_btns button {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #E2E8F0;
    background: #F8FAFC;
    color: #64748B;
    transition: all 0.25s ease;
}

.layout_btns button.active,
.layout_btns button:hover {
    background: #111827;
    color: #FFFFFF;
    border-color: #111827;
}

/* ==========================================================================
   PRODUCT DETAILS LUXURY STYLING
   ========================================================================== */
.product_details {
    background: #FFFFFF;
}

.main-image-holder {
    background: #F8FAFC;
    border-radius: 20px !important;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #E2E8F0 !important;
    position: relative;
    min-height: 400px;
}

.main-image-holder img {
    max-height: 380px;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.zoom-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: all 0.3s ease;
}

.zoom-btn:hover {
    background: #E50914;
    color: #FFFFFF;
    border-color: #E50914;
}

.thumbnail-box {
    border-radius: 12px !important;
    overflow: hidden;
    background: #F8FAFC;
    border: 2px solid #E2E8F0 !important;
    padding: 6px !important;
    transition: all 0.3s ease;
}

.thumbnail-box:hover,
.thumbnail-box.border-primary {
    border-color: #E50914 !important;
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.2);
}

.color-click-box {
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    background: #FFFFFF;
}

.color-click-box:hover,
.color-click-box.active {
    border-color: #E50914;
    background: #FEF2F2;
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.15);
}

/* ==========================================================================
   CART & CHECKOUT MODERN STYLING
   ========================================================================== */
.cart_table table,
.checkout_table table {
    border-collapse: separate;
    border-spacing: 0 10px;
}

.cart_table thead th,
.checkout_table thead th {
    background: #111827 !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    padding: 16px 20px !important;
    border: none !important;
    font-size: 13px !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase;
}

.cart_table thead th:first-child,
.checkout_table thead th:first-child {
    border-radius: 12px 0 0 12px;
}

.cart_table thead th:last-child,
.checkout_table thead th:last-child {
    border-radius: 0 12px 12px 0;
}

.cart_table tbody tr,
.checkout_table tbody tr {
    background: #FFFFFF;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    transition: transform 0.2s ease;
}

.cart_table tbody td,
.checkout_table tbody td {
    padding: 16px 20px;
    vertical-align: middle;
    border-top: 1px solid #F1F5F9;
    border-bottom: 1px solid #F1F5F9;
}

.cart_table tbody td:first-child,
.checkout_table tbody td:first-child {
    border-left: 1px solid #F1F5F9;
    border-radius: 12px 0 0 12px;
}

.cart_table tbody td:last-child,
.checkout_table tbody td:last-child {
    border-right: 1px solid #F1F5F9;
    border-radius: 0 12px 12px 0;
}

.remove_btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #FEF2F2;
    color: #E50914;
    border: 1px solid #FECACA;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    cursor: pointer;
}

.remove_btn:hover {
    background: #E50914;
    color: #FFFFFF;
    border-color: #E50914;
    transform: scale(1.1);
}

.checkout_widget {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    margin-bottom: 30px;
}

.checkout_widget_title {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #111827 !important;
    margin-bottom: 24px !important;
    padding-bottom: 12px;
    border-bottom: 2px solid #F1F5F9;
}

.checkout_payment_method {
    background: #F8FAFC;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid #E2E8F0;
}

.checkout_payment_method .radio_item {
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.checkout_payment_method .radio_item:hover,
.checkout_payment_method .radio_item:has(input:checked) {
    border-color: #E50914;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.1);
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON (Direct Kandy Customer Support)
   ========================================================================== */
.tts-floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #25D366;
    color: #FFFFFF !important;
    padding: 12px 22px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.tts-floating-whatsapp:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 14px 30px rgba(37, 211, 102, 0.5);
    color: #FFFFFF !important;
}

.tts-floating-whatsapp i {
    font-size: 22px;
}

@media (max-width: 768px) {
    .tts-floating-whatsapp span {
        display: none;
    }
    .tts-floating-whatsapp {
        padding: 14px;
        border-radius: 50%;
        bottom: 20px;
        right: 20px;
    }
}

/* ==========================================================================
   CATEGORY DROPDOWN & HEADER OVERRIDES
   ========================================================================== */
.header_section {
    position: relative;
    z-index: 1050;
}

.header_nav_area {
    position: relative;
    z-index: 1050;
}

.modern-categories {
    position: relative;
    z-index: 1060;
}

.allcategories_collapse {
    position: absolute !important;
    top: calc(100% + 4px) !important;
    left: 0 !important;
    min-width: 290px !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18) !important;
    z-index: 99999 !important;
    overflow: hidden !important;
}

.allcategories_list {
    background-color: #ffffff !important;
    background: #ffffff !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 6px 0 !important;
}

.allcategories_list li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.allcategories_list li:last-child {
    border-bottom: none !important;
}

.allcategories_list li a {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 20px !important;
    color: #334155 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    background: #ffffff !important;
}

.allcategories_list li a i {
    color: #E50914 !important;
    font-size: 15px !important;
    width: 22px !important;
    text-align: center !important;
    transition: transform 0.2s ease !important;
}

.allcategories_list li a:hover {
    background: #FEF2F2 !important;
    color: #E50914 !important;
    padding-left: 24px !important;
}

.allcategories_list li a:hover i {
    transform: scale(1.15) !important;
}

