@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Poppins:wght@500;600;700;800&display=swap');

:root {
  /* Typography Tokens */
  --pd-font-heading: "Poppins", "Inter", sans-serif;
  --pd-font-body: "Inter", Arial, sans-serif;
  --pd-font-weight-regular: 400;
  --pd-font-weight-medium: 500;
  --pd-font-weight-semibold: 600;
  --pd-font-weight-bold: 700;
  --pd-font-weight-extrabold: 800;

  /* Primary and Secondary Colors */
  --primary-color: #004080;
  /* Dark blue - conveys reliability and professionalism */
  --primary-light-color: #34495e;
  /* Slightly lighter shade of primary color */
  --primary-dark-color: #1a252f;
  /* Darker shade of primary color */
  --secondary-color: #fd8311;
  /* Orange - often associated with construction and safety */
  --secondary-light-color: #f39c12;
  /* Lighter shade of secondary color */
  --secondary-dark-color: #e68a00;
  /* Darker shade of secondary color */

  /* Accent Colors */
  --accent-color: #f1c40f;
  /* Yellow - highlights and calls to action */
  --accent-light-color: #f7dc6f;
  /* Lighter shade of accent color */
  --accent-dark-color: #f39c12;
  /* Darker shade of accent color */

  /* Background Colors */
  --background-color: #ffffff;
  /* Main background color - white for clean look */
  --background-light-color: #ecf0f1;
  /* Light grey for sections */
  --background-dark-color: #bdc3c7;
  /* Dark grey for contrast sections */

  /* Text Colors */
  --text-color: #333333;
  /* Main text color - dark grey for readability */
  --text-light-color: #555555;
  /* Lighter text color for less emphasis */
  --text-dark-color: #111111;
  /* Darker text color for headings */

  /* Border Colors */
  --border-color: #dddddd;
  /* Default border color - light grey */
  --border-light-color: #eeeeee;
  /* Lighter border color */
  --border-dark-color: #cccccc;
  /* Darker border color */

  /* Header and Footer Colors */
  --header-bg-color: var(--primary-color);
  /* Header background color */
  --header-text-color: #ffffff;
  /* Header text color */
  --footer-bg-color: var(--primary-dark-color);
  /* Footer background color */
  --footer-text-color: #ffffff;
  /* Footer text color */

  /* Button Colors */
  --button-bg-color: var(--secondary-color);

  /* Button second background color */
  --button-sec-bg-color: #007bff;
  --button-sec-hover-bg-color: #005f86;
  --button-sec-hover-text-color: #fff;

  /* Button text color */
  --button-hover-bg-color: var(--secondary-dark-color);
  /* Button hover background color */
  --button-hover-text-color: #ffffff;
  /* Button hover text color */
}

/* Times New Roman Regular */
@font-face {
  font-family: "Times New Roman";
  src: url("fonts/times new roman.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Times New Roman Bold */
@font-face {
  font-family: "Times New Roman";
  src: url("fonts/times new roman bold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

/* Times New Roman Italic */
@font-face {
  font-family: "Times New Roman";
  src: url("fonts/times new roman italic.ttf") format("truetype");
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

/* Times New Roman Bold Italic */
@font-face {
  font-family: "Times New Roman";
  src: url("fonts/times new roman bold italic.ttf") format("truetype");
  font-weight: bold;
  font-style: italic;
  font-display: swap;
}

/* --- Global Resets & Box-Sizing for better layout control --- */
*,
*::before,
*::after {
  box-sizing: border-box; /* Ensures padding and border are included in element's total width/height */
}

html,
body {
  height: 100%;
  font-family: var(--pd-font-body);
  font-weight: var(--pd-font-weight-regular);
  line-height: 1.6;
  letter-spacing: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body {
  background-color: #f8f8f8;
}

body,
input,
textarea,
select,
button {
  font-family: var(--pd-font-body);
}


/* --- Base Text Styles --- */
p,
li {
  font-size: 16px;
  color: #333;
  line-height: 1.6;
  font-weight: var(--pd-font-weight-regular);
  margin: 0 0 1em;
}

span {
  font-size: inherit;
  color: inherit;
  line-height: inherit;
  font-weight: inherit;
  margin: 0;
}

a {
  font-size: inherit;
  line-height: inherit;
  font-weight: var(--pd-font-weight-medium);
  text-decoration: none;
}

a {
  color: #007bff; /* Kept */
  transition: color 0.3s ease-in-out; 
  margin: 0px;
}

a:hover,
a:focus {
  color: #0056b3; /* Slightly darker blue on hover for better interaction feedback */
  text-decoration: underline; /* Standard underline on hover for links */
  outline: none; /* Remove default focus outline for better aesthetics, but ensure custom focus styling if needed for accessibility */
}

/* --- Emphasized Text within Paragraphs and List Items --- */
p span,
li span {
  color: #27ae60; /* Kept */
  font-style: italic; /* Kept */
  font-weight: bold; /* Kept */
}

strong {
  font-weight: bold; /* Ensures text is bold - kept */
  color: #000; /* Set the color of the text to black (or any color you prefer) - kept */
}

/* --- List Styles --- */
ul,
ol {
  font-size: 16px; /* Kept */
  color: #333; /* Kept */
  line-height: 1.6; /* Consistent line-height with paragraphs */
  margin: 1em 0; /* Consistent vertical margins */
  padding-left: 1.5em; /* Adjusted padding for better visual spacing of list markers */
}

li {
  margin-bottom: 0.5em; /* Spacing between list items */
}

/* --- Global Heading Styles --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--pd-font-heading);
  margin: 0; /* Reset default margins */
  padding: 0; /* Reset default padding */
  font-weight: var(--pd-font-weight-bold);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-dark-color, #2c3e50); /* Used fallback color if var is not defined, for robustness */
  text-rendering: optimizeLegibility; /* Improves text rendering for headings */
}

/* --- Specific Heading Sizes and Spans --- */
h1 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  margin-bottom: 0em; /* Adjusted spacing below heading */
  font-weight: var(--pd-font-weight-extrabold);
}

h1 span {
  font-size: 1em; /* Span within H1 takes on H1's font-size, then specific color/weight */
  font-weight: 800; /* Kept */
  color: #ff6900; /* Brand color - kept */
}

h2 {
  font-size: clamp(1.75rem, 2.5vw, 2rem);
  margin: 1.2em 0 0.8em; /* Top margin, no left/right, bottom margin */
  font-weight: var(--pd-font-weight-bold);
}

h2 span {
  font-size: 1em; /* Span within H2 takes on H2's font-size, then specific color/weight */
  font-weight: 800; /* Kept */
  color: #ff6900; /* Brand color - kept */
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.5rem);
  margin: 1em 0 0.6em; /* Top margin, no left/right, bottom margin */
  font-weight: var(--pd-font-weight-semibold);
}

h4 {
  font-size: clamp(1.15rem, 1.6vw, 1.3rem);
  margin: 1em 0 0.5em;
  font-weight: var(--pd-font-weight-semibold);
}

h5 {
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  margin: 0.8em 0 0.4em;
  font-weight: var(--pd-font-weight-semibold);
}

h6 {
  font-size: 1rem;
  margin-bottom: 0.5em;
  font-weight: var(--pd-font-weight-semibold);
}

/* Typography hierarchy for commerce UI */
.product-title,
.product-title a,
.mobile-product-title,
.mobile-product-title a,
.related-mobile-product-title,
.related-mobile-product-title a,
.na-name,
.na-name a,
.view-all-btn,
.na-btn,
.pd-hero-btn,
.best-mobile-button,
.cart-count,
.pro-tags span,
.sold-out span,
.coming-soon-badge span,
.out-of-stock-badge {
  font-family: var(--pd-font-body);
}

.product-title a,
.mobile-product-title a,
.related-mobile-product-title a,
.na-name a {
  font-weight: var(--pd-font-weight-regular);
  line-height: 1.4;
}

.product-title,
.mobile-product-title,
.related-mobile-product-title,
.na-name,
h1.product_title,
h2.product-title,
h3.product-title,
.product-summary .product_title {
  font-weight: var(--pd-font-weight-regular);
}

/* Single product page title stays bold for hierarchy */
.product-summary .product-title,
.p-page-container .product-title {
  font-weight: var(--pd-font-weight-bold);
}

.product-price,
.product-price span,
.mobile-product-price,
.mobile-product-price span,
.single-product-price,
.r-product-price,
.new-price,
.r-sale-price,
.sale-price,
.na-price,
.na-price--new {
  font-family: var(--pd-font-body);
  font-weight: var(--pd-font-weight-extrabold);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.old-price,
.regular-price,
.r-regular-price,
.na-price--old,
.na-price--na,
.no-price {
  font-family: var(--pd-font-body);
  font-weight: var(--pd-font-weight-medium);
  color: #8a8a8a;
  line-height: 1.45;
}

.pro-tags span,
.sold-out span,
.coming-soon-badge span,
.out-of-stock-badge {
  font-weight: var(--pd-font-weight-bold);
}

/* --- Accessibility Enhancements (Optional but Recommended for Professionalism) --- */
/* Focus styles for keyboard navigation - crucial for accessibility */
:focus-visible {
  outline: 2px solid #007bff; /* Consistent focus indicator */
  outline-offset: 2px; /* Small gap between element and outline */
  border-radius: 3px; /* Slightly rounded corners for aesthetics */
}


/* Out of Stock Badge */
.out-of-stock-badge {
  background-color: #555; /* Dark grey for the out of stock badge */
  color: white !important;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  left: 10px;
  border-radius: 0px 20px 20px 0px;
  z-index: 10;
  margin: 0px;
}

    /* Main container for sidebar and content */
    .user_container {
      display: flex;
      flex-wrap: nowrap;
  }

  /* Sidebar Styling */
  .user_sidebar {
      width: 220px;
      background-color: #2c3e50;
      color: white;
      padding: 20px;
      height: 100vh;
  }

  /* Sidebar Links Styling */
  .user_sidebar a {
      display: block;
      color: white;
      text-decoration: none;
      margin: 10px 0;
      padding: 10px;
      background: #34495e;
      border-radius: 5px;
  }

  .user_sidebar a:hover {
      background: #1abc9c;
  }

  /* Content Area Styling */
  .user_content {
      margin-left: 20px;
      padding: 30px;
      background-color: #f9f9f9;
      flex-grow: 1;
      min-height: 100vh;
  }

  /* Dashboard Stats Section */
  .dashboard-stats {
      display: flex;
      gap: 20px;
      margin-bottom: 30px;
  }

  /* Stat Cards Styling */
  .stat-card {
      background: white;
      border-radius: 8px;
      padding: 20px;
      box-shadow: 0 0 10px #ccc;
      flex: 1;
  }

  .stat-card h4 {
      margin-top: 0;
      font-size: 24px;
      color: #333;
  }

  .username {
      color: #fff;
  }
  
  .pro-tags span {
    display: inline-block;
    position: absolute;
    top: 15px;
    right: 15px;
    background: #FF0000;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: bold;
    margin: 0px;
  }
  
  .sold-out span {
    background: #BDBDBD;
    position: absolute;
    top: 15px;
    right: 15px;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: bold;
    display: inline-block;
    margin: 0px;
  }
  
  .p-note {
    font-style: italic;
    color: #000;
    background-color: #f0f9ff;
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    margin: 20px;
    border-radius: 8px;
    text-align: center;
}
/* Responsive Adjustments */
@media (max-width: 1024px) {
  h1 { font-size: clamp(1.9rem, 3.6vw, 2.3rem); }
  h2 { font-size: clamp(1.6rem, 3vw, 1.9rem); }
  h3 { font-size: clamp(1.2rem, 2.3vw, 1.4rem); }
  p,
  li { font-size: 15.5px; }
}

/* --- Media Query for Smaller Screens (max-width: 768px) --- */
@media (max-width: 768px) {
  h1 {
    font-size: 20px; /* Specific size for small screens */
  }

  h1 span {
    font-size: 20px; /* Span within H1 should match H1's size */
  }

  h2 {
    font-size: 20px; /* Specific size for small screens */
  }

  h2 span {
    font-size: 20px; /* Span within H2 should match H2's size */
  }

  h3 {
    font-size: 18px; /* Specific size for small screens */
  }

  h4 {
    font-size: 16px; /* Specific size for small screens */
  }

  h5 {
    font-size: 17px; /* Specific size for small screens */
  }

  h6 {
    font-size: 16px; /* Specific size for small screens */
  }

  p,
  li {
    font-size: 15px; /* Specific size for small screens */
    letter-spacing: 0.1px; /* Added letter-spacing */
    margin: 10px 0px; /* Adjusted margin for smaller screens */
  }

  /* Optional: Adjust list padding for smaller screens if needed */
  ul, ol {
    padding-left: 1em; /* Slightly less padding for lists on smaller screens */
  }

.ad-container {
  padding: 10px;
}

.pro-tags span {
  right: 10px;
  top: 10px;
}
.sold-out span {
  right: 10px;
  top: 10px;
}

.faq-item {
  padding: 5px 0px;
  margin: 5px 0px;
}

h3.faq-question {
  font-size: 15px;
}
}

@media (max-width: 480px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.15rem; }
  p,
  li { font-size: 14px; }
}

.faq-item {
  border-bottom: 1px solid #ddd;
  padding: 10px 0;
  margin: 10px 0px;
}

.faq-question {
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #004080;
}

.faq-answer {
  display: none;
  font-size: 16px;
  padding: 10px 0;
  color: #444;
}

.faq-question::after {
  content: "+";
  font-size: 20px;
  font-weight: bold;
}

.faq-question.active::after {
  content: "-";
}

.ad-container {
  text-align: center;
  padding: 20px;
  background-color: #f8f9fa;
}

/* ── PhonesDukan Branded Scrollbar ── */
html {
  scrollbar-width: thin;
  scrollbar-color: #f7d117 #111111;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #111111;
  border-radius: 0;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ffe65a 0%, #f7d117 60%, #d4af00 100%);
  border-radius: 999px;
  border: 2px solid #111111;
  min-height: 40px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ffe87a 0%, #f9d93a 60%, #c9a800 100%);
}

@media (max-width: 768px) {
  html {
    scrollbar-width: none;
  }

  ::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }
}
