/* Digital Direct UK - Stylesheet
   Purple/magenta e-commerce theme inspired by mid-2000s design
   Modernized for functionality while keeping the aesthetic
*/

/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  color: #333;
  background: #e8e8e8;
  line-height: 1.5;
}

a { color: #0066cc; text-decoration: none; }
a:hover { text-decoration: underline; color: #cc0066; }

img { border: 0; }

ul { list-style: none; }

/* ===== LAYOUT ===== */
.page-wrapper {
  width: 960px;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
}

/* ===== TOP BAR ===== */
.top-bar {
  background: #4a1a4f;
  color: #ccc;
  height: 24px;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
}

.top-bar a {
  color: #d4a0d8;
  margin-left: 15px;
}
.top-bar a:hover { color: #fff; }

.top-bar .top-links a:first-child { margin-left: 0; }

.top-bar .basket-info {
  color: #d4a0d8;
}
.top-bar .basket-info a { color: #fff; margin: 0 5px; }

/* ===== HEADER ===== */
.header {
  background: linear-gradient(180deg, #6b2470 0%, #4a1a4f 100%);
  padding: 12px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #fff;
  letter-spacing: -1px;
}
.logo .dd-orange { color: #f5a623; }
.logo .dd-tagline {
  font-size: 10px;
  font-weight: normal;
  color: #d4a0d8;
  letter-spacing: 0;
  display: block;
  margin-top: -2px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 6px;
}
.search-box label {
  color: #d4a0d8;
  font-size: 11px;
}
.search-box input[type="text"] {
  width: 200px;
  padding: 5px 8px;
  border: 1px solid #ccc;
  font-size: 12px;
}
.search-box .search-btn {
  background: #f5a623;
  color: #fff;
  border: none;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  text-transform: uppercase;
}
.search-box .search-btn:hover { background: #e69500; }

/* ===== NAVIGATION BAR ===== */
.nav-bar {
  background: #3d1442;
  display: flex;
  height: 36px;
}

.nav-bar a {
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 0 16px;
  text-transform: uppercase;
  border-right: 1px solid #5a2560;
  text-decoration: none;
  transition: background 0.15s;
}
.nav-bar a:hover {
  background: #5a2560;
  text-decoration: none;
}
.nav-bar a.active {
  background: #6b2470;
}

/* ===== MAIN CONTENT AREA ===== */
.main-content {
  display: flex;
  gap: 0;
}

.content-area {
  flex: 1;
  padding: 15px;
  min-width: 0;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: 200px;
  background: #f4f0f5;
  padding: 12px;
  border-left: 1px solid #ddd;
  flex-shrink: 0;
}

.sidebar-box {
  margin-bottom: 16px;
}

.sidebar-box h3 {
  background: #4a1a4f;
  color: #fff;
  font-size: 11px;
  padding: 6px 10px;
  text-transform: uppercase;
  margin-bottom: 0;
}

.sidebar-box ul {
  border: 1px solid #ddd;
  border-top: none;
  background: #fff;
}
.sidebar-box ul li {
  padding: 5px 10px;
  border-bottom: 1px solid #eee;
  font-size: 11px;
}
.sidebar-box ul li:last-child { border-bottom: none; }
.sidebar-box ul li a { font-size: 11px; }

/* Top 10 bestsellers */
.top10 li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.top10 .rank {
  display: inline-block;
  width: 18px;
  height: 18px;
  background: #4a1a4f;
  color: #fff;
  text-align: center;
  line-height: 18px;
  font-weight: bold;
  font-size: 10px;
  margin-right: 4px;
}
.top10 .prod-name { font-size: 11px; }
.top10 .prod-price { color: #cc0066; font-weight: bold; font-size: 11px; }

/* Trust badges */
.trust-badges {
  text-align: center;
  padding: 8px;
}
.trust-badges img { margin: 4px auto; max-width: 120px; }

/* ===== FEATURED PRODUCT ===== */
.featured-product {
  border: 2px solid #4a1a4f;
  background: #faf5fb;
  margin-bottom: 15px;
  padding: 0;
  overflow: hidden;
}

.featured-product .fp-header {
  background: #4a1a4f;
  color: #fff;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.featured-product .fp-header .cat-name {
  font-size: 11px;
  font-weight: normal;
  color: #d4a0d8;
}

.featured-product .fp-body {
  display: flex;
  padding: 12px;
  gap: 15px;
}

.featured-product .fp-image {
  width: 200px;
  flex-shrink: 0;
  text-align: center;
}
.featured-product .fp-image img {
  max-width: 200px;
  max-height: 160px;
}

.featured-product .fp-info {
  flex: 1;
}
.featured-product .fp-info h2 {
  font-size: 16px;
  color: #333;
  margin-bottom: 6px;
}
.featured-product .fp-info p {
  font-size: 12px;
  color: #555;
  margin-bottom: 10px;
}

.featured-product .fp-pricing {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 8px;
}
.featured-product .tsp {
  font-size: 12px;
  color: #999;
  text-decoration: line-through;
}
.featured-product .dd-price {
  font-size: 22px;
  color: #cc0066;
  font-weight: bold;
}
.featured-product .dd-price-label {
  font-size: 10px;
  color: #999;
  text-transform: uppercase;
}

.btn-info, .btn-basket {
  display: inline-block;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: bold;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
}
.btn-info {
  background: #4a1a4f;
  color: #fff;
}
.btn-info:hover { background: #6b2470; text-decoration: none; color: #fff; }
.btn-basket {
  background: #f5a623;
  color: #fff;
}
.btn-basket:hover { background: #e69500; text-decoration: none; color: #fff; }

/* ===== PROMO BANNERS ===== */
.promo-banners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 15px;
}
.promo-banner {
  display: block;
  height: 70px;
  border-radius: 4px;
  color: #fff;
  text-align: center;
  padding: 12px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}
.promo-banner:hover { opacity: 0.85; text-decoration: none; color: #fff; }
.promo-banner.end-of-line { background: linear-gradient(135deg, #c0392b, #e74c3c); }
.promo-banner.freeview { background: linear-gradient(135deg, #2980b9, #3498db); }
.promo-banner.finance { background: linear-gradient(135deg, #27ae60, #2ecc71); }
.promo-banner.clearance { background: linear-gradient(135deg, #d35400, #e67e22); }

/* ===== SECTION HEADING ===== */
.section-heading {
  background: #4a1a4f;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  padding: 6px 12px;
  text-transform: uppercase;
  margin-bottom: 0;
}

/* ===== PRODUCT GRID ===== */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 15px;
}

.product-card {
  border: 1px solid #ddd;
  background: #fff;
  overflow: hidden;
}

.product-card .pc-header {
  background: #f4f0f5;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: bold;
  color: #4a1a4f;
  border-bottom: 1px solid #ddd;
}
.product-card .pc-header .pc-model {
  color: #999;
  font-weight: normal;
  font-size: 11px;
}

.product-card .pc-body {
  display: flex;
  padding: 8px;
  gap: 10px;
}

.product-card .pc-image {
  width: 100px;
  flex-shrink: 0;
  text-align: center;
}
.product-card .pc-image img {
  max-width: 100px;
  max-height: 80px;
}

.product-card .pc-info {
  flex: 1;
  font-size: 11px;
}
.product-card .pc-info p {
  color: #666;
  margin-bottom: 6px;
}

.product-card .pc-footer {
  background: #f9f9f9;
  padding: 6px 8px;
  border-top: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.product-card .pc-footer .prices {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.product-card .pc-footer .tsp {
  font-size: 11px;
  color: #999;
  text-decoration: line-through;
}
.product-card .pc-footer .dd-price {
  font-size: 16px;
  color: #cc0066;
  font-weight: bold;
}
.product-card .pc-footer .actions {
  display: flex;
  gap: 4px;
}

/* ===== PAGE TITLE ===== */
.page-title {
  background: #4a1a4f;
  color: #fff;
  padding: 8px 15px;
  font-size: 16px;
  font-weight: bold;
}

.breadcrumb {
  padding: 6px 15px;
  font-size: 11px;
  color: #999;
  background: #f4f0f5;
  border-bottom: 1px solid #ddd;
}
.breadcrumb a { color: #4a1a4f; }

/* ===== CONTENT PAGE STYLES ===== */
.content-page {
  padding: 20px;
}
.content-page h1 {
  font-size: 20px;
  color: #4a1a4f;
  margin-bottom: 12px;
  border-bottom: 2px solid #4a1a4f;
  padding-bottom: 6px;
}
.content-page h2 {
  font-size: 15px;
  color: #4a1a4f;
  margin: 15px 0 8px;
}
.content-page p {
  margin-bottom: 10px;
  font-size: 12px;
  line-height: 1.7;
}
.content-page ul.bullet-list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 12px;
}
.content-page ul.bullet-list li {
  font-size: 12px;
  margin-bottom: 4px;
}
.content-page table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
}
.content-page table th {
  background: #4a1a4f;
  color: #fff;
  padding: 6px 10px;
  text-align: left;
  font-size: 11px;
}
.content-page table td {
  padding: 6px 10px;
  border-bottom: 1px solid #ddd;
  font-size: 12px;
}
.content-page table tr:nth-child(even) td {
  background: #f9f5fa;
}

/* ===== CONTACT FORM ===== */
.contact-form {
  width: 100%;
  max-width: 500px;
}
.contact-form .form-group {
  margin-bottom: 12px;
}
.contact-form label {
  display: block;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 4px;
  color: #4a1a4f;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #ccc;
  font-size: 12px;
  font-family: Arial, sans-serif;
}
.contact-form textarea { height: 100px; resize: vertical; }
.contact-form .submit-btn {
  background: #f5a623;
  color: #fff;
  border: none;
  padding: 8px 20px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  text-transform: uppercase;
}
.contact-form .submit-btn:hover { background: #e69500; }

/* ===== BRANDS GRID ===== */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 15px 0;
}
.brand-card {
  border: 1px solid #ddd;
  background: #fff;
  padding: 15px;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  color: #4a1a4f;
}
.brand-card:hover { border-color: #4a1a4f; background: #f4f0f5; }

/* ===== JARGON/GLOSSARY ===== */
.glossary dl {
  margin-bottom: 8px;
}
.glossary dt {
  font-weight: bold;
  color: #4a1a4f;
  font-size: 12px;
  margin-top: 8px;
}
.glossary dd {
  margin-left: 15px;
  font-size: 12px;
  color: #555;
  margin-bottom: 4px;
}

/* ===== BASKET TABLE ===== */
.basket-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
}
.basket-table th {
  background: #4a1a4f;
  color: #fff;
  padding: 8px 10px;
  text-align: left;
  font-size: 12px;
}
.basket-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #ddd;
  font-size: 12px;
}
.basket-table tr:nth-child(even) td { background: #f9f5fa; }
.basket-table .qty-input {
  width: 40px;
  padding: 3px;
  border: 1px solid #ccc;
  text-align: center;
}
.basket-totals {
  width: 100%;
  max-width: 300px;
  margin-left: auto;
  margin-bottom: 15px;
}
.basket-totals td {
  padding: 5px 10px;
  font-size: 12px;
}
.basket-totals .total-row td {
  font-size: 16px;
  font-weight: bold;
  color: #cc0066;
  border-top: 2px solid #4a1a4f;
  padding-top: 8px;
}

/* ===== FOOTER ===== */
.footer {
  background: #3d1442;
  color: #aaa;
  padding: 15px;
  text-align: center;
  font-size: 11px;
}
.footer .payment-icons {
  margin-bottom: 8px;
}
.footer .payment-icons span {
  display: inline-block;
  background: #fff;
  border-radius: 3px;
  padding: 2px 8px;
  margin: 0 3px;
  font-size: 10px;
  font-weight: bold;
  color: #333;
}
.footer .footer-links {
  margin-bottom: 8px;
}
.footer .footer-links a {
  color: #d4a0d8;
  margin: 0 8px;
}
.footer .footer-links a:hover { color: #fff; }
.footer .copyright {
  color: #888;
  font-size: 10px;
}

/* ===== UTILITY ===== */
.clearfix::after { content: ""; display: table; clear: both; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.mt-10 { margin-top: 10px; }
.mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; }

/* Info box */
.info-box {
  background: #fffde7;
  border: 1px solid #f0e68c;
  padding: 12px;
  margin: 15px 0;
  font-size: 12px;
  border-radius: 4px;
}
.info-box strong { color: #cc0066; }

/* Newsletter signup */
.newsletter-box {
  background: #4a1a4f;
  color: #fff;
  padding: 20px;
  text-align: center;
  margin: 15px 0;
}
.newsletter-box h2 { color: #fff; margin-bottom: 8px; }
.newsletter-box input[type="email"] {
  padding: 6px 10px;
  width: 250px;
  border: 1px solid #ccc;
  font-size: 12px;
}
.newsletter-box .submit-btn {
  background: #f5a623;
  color: #fff;
  border: none;
  padding: 7px 20px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  margin-left: 5px;
  text-transform: uppercase;
}

/* Product detail page */
.product-detail {
  display: flex;
  gap: 20px;
  padding: 15px;
}
.product-detail .pd-image {
  width: 350px;
  flex-shrink: 0;
}
.product-detail .pd-image img {
  max-width: 350px;
  border: 1px solid #ddd;
}
.product-detail .pd-image .thumbs {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.product-detail .pd-image .thumbs img {
  width: 60px;
  height: 50px;
  border: 1px solid #ddd;
  cursor: pointer;
}
.product-detail .pd-info h1 {
  font-size: 18px;
  color: #333;
  margin-bottom: 8px;
}
.product-detail .pd-info .pd-model {
  color: #999;
  font-size: 12px;
  margin-bottom: 10px;
}
.product-detail .pd-info .pd-desc {
  font-size: 12px;
  color: #555;
  margin-bottom: 15px;
  line-height: 1.7;
}
.product-detail .pd-info .pd-specs {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
}
.product-detail .pd-info .pd-specs th {
  background: #f4f0f5;
  color: #4a1a4f;
  padding: 5px 8px;
  text-align: left;
  font-size: 11px;
  width: 35%;
  border-bottom: 1px solid #ddd;
}
.product-detail .pd-info .pd-specs td {
  padding: 5px 8px;
  font-size: 11px;
  border-bottom: 1px solid #ddd;
}
.product-detail .pd-pricing {
  background: #faf5fb;
  border: 1px solid #ddd;
  padding: 12px;
  margin-bottom: 15px;
}
.product-detail .pd-pricing .tsp {
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
  display: block;
  margin-bottom: 4px;
}
.product-detail .pd-pricing .dd-price {
  font-size: 28px;
  color: #cc0066;
  font-weight: bold;
}
.product-detail .pd-pricing .save-amount {
  display: inline-block;
  background: #27ae60;
  color: #fff;
  padding: 2px 8px;
  font-size: 12px;
  border-radius: 3px;
  margin-left: 10px;
}
